/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 2 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 = 7473
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.5+2914_daily_bin39
RA = 179.884, Dec = 29.2448
tmin = 249436801, tmax = 249696001
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='230392', job_status='RUN', time_executed='2021-09-04 19:06:32.552616', time_epoch_executed='1630807592.55' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='39'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230392

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230392/ft1_4FGL_J1159.5+2914_daily_bin39.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230392/ft1_4FGL_J1159.5+2914_daily_bin39.fits outfile=/scratch/kocevski/230392/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin39.fits ra=179.884 dec=29.2448 rad=12.0 tmin=249436801.0 tmax=249696001.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 1.42
user 1.25
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.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/230392/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin39.fits evtable="EVENTS" outfile="/scratch/kocevski/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.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.32
sys 0.16

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.fits evtable="EVENTS" scfile=/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits sctable="SC_DATA" expcube=/scratch/kocevski/230392/ltcube_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits outfile=/scratch/kocevski/230392/expmap_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.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/230392/ltcube_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits
.....................!
real 191.21
user 185.38
sys 5.33

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/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.fits scfile=/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits outfile=/scratch/kocevski/230392/cmap_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.fits scfile=/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits outfile=/scratch/kocevski/230392/cmap_HighResolution_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.fits', '/scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits', expMap='/scratch/kocevski/230392/expmap_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits', expCube='/scratch/kocevski/230392/ltcube_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/230392/Model_4FGL_J1159.5+2914_daily_bin39.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/230392/ft1_filtered_4FGL_J1159.5+2914_daily_bin39.fits
Spacecraft file(s): /scratch/kocevski/230392/ft2_4FGL_J1159.5+2914_daily_bin39.fits
Exposure map: /scratch/kocevski/230392/expmap_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits
Exposure cube: /scratch/kocevski/230392/ltcube_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/230392/Model_4FGL_J1159.5+2914_daily_bin39.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) = 5121.536331

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    11.602       1.0000         .10000E-03   10000.    
     3 'norm      '    10.462       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0774       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20383E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .61237E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.418       1.0000         .10000E-03   10000.    
     8 'norm      '    .11232E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .28730       1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.681       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.2676       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .91095       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.622       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2840       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.5682       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10339E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.7175       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.7013       1.0000         .10000E-03   10000.    
    23 'Prefactor '    5.3756       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.4582       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .83475       1.0000         .10000E-03   10000.    
    27 'norm      '    2.3990       1.0000         .10000E-03   10000.    
    28 'Prefactor '    11.083       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .14963E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92783       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .92494       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5121.414     FROM MIGRAD    STATUS=CONVERGED    840 CALLS     4252 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .95791        .43530E-07** at limit **
   2  norm          11.608        11.439       -.93638E-07   -.37348E-04
   3  norm          10.472        12.441        .28974E-06    .13799E-05
   4  Prefactor     6.0688        10.271        .96540E-07   -.20501E-04
   5  Prefactor     .10000E-03    1.7221        .38996E-06** at limit **
   6  Prefactor     .10625E-03    62.505       -.73217E-05** at limit **
   7  Prefactor     39.400        20.019        .62437E-06    .21162E-03
   8  norm          .10000E-03    1.8335        .37354E-07** at limit **
   9  Prefactor     .10000E-03    4.1413        .23000E-06** at limit **
  10  Prefactor     .10000E-03    2.8590        .39110E-06** at limit **
  11  norm          .28673        .79574        .45847E-06    .50172E-03
  12  Prefactor     12.680        22.228       -.12375E-05   -.10726E-03
  13  Prefactor     5.2646        8.8189       -.73298E-06   -.31333E-03
  14  Prefactor     .91166        2.4560        .12238E-05    .46263E-03
  15  Prefactor     .10000E-03    7.4812        .23997E-07** at limit **
  16  Prefactor     36.678        36.387       -.17244E-05   -.21135E-03
  17  norm          4.2842        1.5523        .10144E-07   -.35609E-03
  18  Prefactor     2.5670        3.8362        .13497E-06   -.97309E-04
  19  Prefactor     .10000E-03    22.095        .82703E-07** at limit **
  20  Prefactor     .10000E-03    2.0062       -.72714E-07** at limit **
  21  norm          1.7160        3.3485        .53176E-06    .12605E-03
  22  Prefactor     6.6995        8.9848       -.17601E-06   -.21301E-03
  23  Prefactor     5.3768        2.8882       -.45818E-07    .61343E-04
  24  Prefactor     7.4590        2.9962       -.21748E-07   -.85665E-04
  25  Prefactor     .10000E-03    3.0196       -.44083E-07** at limit **
  26  norm          .83480        .30008        .11682E-07   -.45268E-03
  27  norm          2.3980        3.9084        .26549E-06   -.59201E-05
  28  Prefactor     11.083        10.796        .23008E-06    .40058E-04
  29  Prefactor     .10000E-03    32.007       -.11459E-06** at limit **
  30  Normalizat    .92786        .19839       -.11101E-05   -.18248E-03
  31  Prefactor     .92482        .21508       -.46388E-06   -.13199E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 11.6078
  norm       = 10.4723
  Prefactor  = 6.06876
  Prefactor  = 0.000100001
  Prefactor  = 0.000106247
  Prefactor  = 39.3998
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.286727
  Prefactor  = 12.68
  Prefactor  = 5.26464
  Prefactor  = 0.911662
  Prefactor  = 0.0001
  Prefactor  = 36.6775
  norm       = 4.28416
  Prefactor  = 2.56704
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.71601
  Prefactor  = 6.69954
  Prefactor  = 5.37677
  Prefactor  = 7.459
  Prefactor  = 0.0001
  norm       = 0.834802
  norm       = 2.39803
  Prefactor  = 11.0834
  Prefactor  = 0.0001
  Normalizat = 0.927855
  Prefactor  = 0.924819
 **********
 **   18 **HESSE 
 **********

 FCN=   5121.414     FROM HESSE     STATUS=OK           640 CALLS     4892 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .95954        .68401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          11.608        11.433        .11761E-03   -1.5026    
   3  norm          10.472        12.457        .12387E-03   -1.5061    
   4  Prefactor     6.0688        10.266        .16286E-03   -1.5215    
   5  Prefactor     .10000E-03    2.6381        .17302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10625E-03    39.210        .13096       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     39.400        20.067        .63842E-04   -1.4452    
   8  norm          .10000E-03    1.8916        .18829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.1420        .14216E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    12.434        .22865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .28673        .81269        .10124E-02   -1.5601    
  12  Prefactor     12.680        21.867        .11249E-03   -1.4996    
  13  Prefactor     5.2646        8.9066        .17513E-03   -1.5249    
  14  Prefactor     .91166        2.4635        .15959E-03   -1.5517    
  15  Prefactor     .10000E-03    7.4864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     36.678        36.686        .66225E-04   -1.4496    
  17  norm          4.2842        1.5525        .50613E-04   -1.5294    
  18  Prefactor     2.5670        3.8076        .16128E-03   -1.5388    
  19  Prefactor     .10000E-03    22.176        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0555        .19751E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.7160        3.3408        .16291E-03   -1.5446    
  22  Prefactor     6.6995        9.0453        .15501E-03   -1.5190    
  23  Prefactor     5.3768        2.8843        .80593E-04   -1.5244    
  24  Prefactor     7.4590        2.9899        .72722E-04   -1.5162    
  25  Prefactor     .10000E-03    3.0481        .12137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .83480        .29885        .22378E-04   -1.5525    
  27  norm          2.3980        3.9039        .17394E-03   -1.5398    
  28  Prefactor     11.083        10.793        .12034E-03   -1.5042    
  29  Prefactor     .10000E-03    32.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92786        .22902        .24656E-03   -.95488    
  31  Prefactor     .92482        .24831        .28357E-03   -.95279    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.66863e-09
Minuit parameter uncertainties:
  1  1.43632e-06
  2  11.4353
  3  12.4603
  4  10.2689
  5  8.59683e-05
  6  0.0313231
  7  20.0709
  8  1.64524e-05
  9  1.16611e-05
  10  3.60818e-05
  11  0.812721
  12  21.8812
  13  8.90887
  14  2.46373
  15  3.93721e-06
  16  36.7087
  17  1.55251
  18  3.80793
  19  3.97339e-05
  20  6.22763e-08
  21  3.34111
  22  9.04711
  23  2.88433
  24  2.98992
  25  1.09069e-06
  26  0.298849
  27  3.9043
  28  10.795
  29  3.00737e-05
  30  0.229259
  31  0.248615
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.284e+00  1.553e+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:  9.248e-01  2.486e-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:  9.279e-01  2.293e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 25.77
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 4.21e-08
Energy Flux (Fixed Index): 5.21e-05 +/- 1.89e-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) = 5120.79643965
delta logL = 0.617823486221

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5120.79289234
delta logL = 0.621370795629

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.0555       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5409       1.0000          .0000       5.0000    
     3 'Normalizat'    .86867       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96872       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=   5120.793     FROM MIGRAD    STATUS=CONVERGED     40 CALLS      223 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.0555        19.202        .50055E-02    .86740E-03
   2  alpha         2.5409        3.7383        .21277        .49754E-04
   3  Normalizat    .86867        .17527        .44500E-01   -.17104E-04
   4  Prefactor     .96872        .16403        .45875E-01    .42033E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.05552
  alpha      = 2.54088
  Normalizat = 0.868667
  Prefactor  = 0.968718
 **********
 **   18 **HESSE 
 **********

 FCN=   5120.793     FROM HESSE     STATUS=OK            33 CALLS      256 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.0555        1.4822        .43663E-04   -1.5305    
   2  alpha         2.5409        .40507        .89407E-02    .16355E-01
   3  Normalizat    .86867        .22037        .25317E-03   -.97570    
   4  Prefactor     .96872        .24936        .27760E-03   -.93780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75844e-11
Minuit parameter uncertainties:
  1  1.48224
  2  0.406862
  3  0.220597
  4  0.249652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230392': 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) = 5120.79289234
delta logL = 0.621370796366

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.056e+00  1.482e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.541e+00  4.069e-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:  9.687e-01  2.497e-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.687e-01  2.206e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 27.06
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.54 +/- 0.41
Photon Flux (Free Index): 1.62e-07 +/- 6.26e-08
Energy Flux (Free Index): 4.37e-05 +/- 1.48e-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/230392/cmap_HighResolution_249436801_249696001_4FGL_J1159.5+2914_daily_bin39.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='4.37e-05', photon_flux_error='4.21e-08', dlogl='6.21e-01', energy_flux='5.21e-05', photon_flux2='1.62e-07', job_status='DONE', time_completed='2021-09-04 19:18:36.326056', photon_index_error2='0.41', photon_index2='2.54', ts='25.77', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', energy_flux_error2='1.48e-05', EG='0.93', time_epoch_completed='1630808316.33', return_code='0', job_id='230392', GAL2='0.97', EG2='0.87', return_code2='0', energy_flux_error='1.89e-05', photon_flux_error2='6.26e-08', ts2='27.06', photon_index='2.10' WHERE bin_id='39' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:18:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 230392: <4FGL_J1159.5+2914_daily_bin39> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin39> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:19 2021
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:21 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:06:21 2021
Terminated at Sat Sep  4 19:18:37 2021
Results reported at Sat Sep  4 19:18:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin39 179.884 29.2448 249436801 249696001 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 :                                   720.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            738 sec.

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

