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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin76
RA = 179.884, Dec = 29.2448
tmin = 259027201, tmax = 259286401
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='230448', job_status='RUN', time_executed='2021-09-04 19:10:31.384219', time_epoch_executed='1630807831.38' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='76'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230448

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230448/ft1_4FGL_J1159.5+2914_daily_bin76.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230448/ft1_4FGL_J1159.5+2914_daily_bin76.fits outfile=/scratch/kocevski/230448/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin76.fits ra=179.884 dec=29.2448 rad=12.0 tmin=259027201.0 tmax=259286401.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.44
user 1.26
sys 0.15

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.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/230448/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin76.fits evtable="EVENTS" outfile="/scratch/kocevski/230448/ft1_filtered_4FGL_J1159.5+2914_daily_bin76.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.48
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230448/ft1_filtered_4FGL_J1159.5+2914_daily_bin76.fits" evtable="EVENTS" scfile=/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits sctable="SC_DATA" outfile=/scratch/kocevski/230448/ltcube_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.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/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits
.....................!
real 12.66
user 12.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230448/ft1_filtered_4FGL_J1159.5+2914_daily_bin76.fits evtable="EVENTS" scfile=/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits sctable="SC_DATA" expcube=/scratch/kocevski/230448/ltcube_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.fits outfile=/scratch/kocevski/230448/expmap_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.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/230448/ltcube_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.fits
.....................!
real 191.14
user 186.12
sys 4.71

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/230448/ft1_filtered_4FGL_J1159.5+2914_daily_bin76.fits scfile=/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits outfile=/scratch/kocevski/230448/cmap_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230448/ft1_filtered_4FGL_J1159.5+2914_daily_bin76.fits scfile=/scratch/kocevski/230448/ft2_4FGL_J1159.5+2914_daily_bin76.fits outfile=/scratch/kocevski/230448/cmap_HighResolution_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.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.53
user 0.38
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9465       1.0000         .10000E-03   10000.    
     2 'norm      '    .10912E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .98339E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.210       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.616       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.741       1.0000         .10000E-03   10000.    
    11 'norm      '    1.3317       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.6185       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10183E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.1391       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.6911       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.4181       1.0000         .10000E-03   10000.    
    21 'norm      '    .18174E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.2868       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.5269       1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.2023       1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.4310       1.0000         .10000E-03   10000.    
    26 'norm      '    .33019       1.0000         .10000E-03   10000.    
    27 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .13719E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10780E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .70395       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1124       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=   5360.913     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     4189 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9467        2.8453        .43818E-08   -.37943E-04
   2  norm          .10001E-03    6.2776       -.30600E-07** at limit **
   3  norm          .10008E-03    8.4637        .13666E-05** at limit **
   4  Prefactor     15.224        14.809        .18028E-07   -.52263E-04
   5  Prefactor     .10000E-03    .78639        .25972E-07** at limit **
   6  Prefactor     .10000E-03    10.724        .30874E-06** at limit **
   7  Prefactor     21.603        23.683       -.24481E-06    .31601E-03
   8  norm          .10000E-03    .81934        .33367E-07** at limit **
   9  Prefactor     .10026E-03    18.151       -.15772E-05** at limit **
  10  Prefactor     15.741        6.8430        .54806E-07    .19361E-03
  11  norm          1.3319        1.0289        .42728E-07   -.10060E-03
  12  Prefactor     .10000E-03    14.650       -.52922E-06** at limit **
  13  Prefactor     .10000E-03    3.4868        .12215E-06** at limit **
  14  Prefactor     5.6186        2.3970        .40055E-07   -.65179E-05
  15  Prefactor     .10000E-03    21.943        .22026E-05** at limit **
  16  Prefactor     .10000E-03    22.909        .10548E-05** at limit **
  17  norm          4.1395        1.3600        .19001E-07    .35837E-03
  18  Prefactor     .10000E-03    1.2232        .89175E-08** at limit **
  19  Prefactor     5.6927        28.159       -.31910E-07    .89516E-06
  20  Prefactor     1.4180        2.3701        .18554E-06   -.11915E-03
  21  norm          .10000E-03    1.8285        .60562E-07** at limit **
  22  Prefactor     5.2894        6.8693        .25398E-05   -.66492E-03
  23  Prefactor     2.5304        2.3668       -.37352E-07    .95511E-04
  24  Prefactor     9.2024        3.2223       -.10821E-07    .43013E-03
  25  Prefactor     3.4324        5.3030        .21694E-06   -.86388E-04
  26  norm          .33022        .23407        .20479E-07   -.21344E-03
  27  norm          .10000E-03    1.3231        .60972E-09** at limit **
  28  Prefactor     .10002E-03    27.551       -.62950E-05** at limit **
  29  Prefactor     .10002E-03    42.280        .61728E-05** at limit **
  30  Normalizat    .70381        .18064       -.77821E-06    .93275E-04
  31  Prefactor     1.1124        .19814       -.44128E-06    .44303E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.9467
  norm       = 0.000100007
  norm       = 0.000100081
  Prefactor  = 15.2242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.6034
  norm       = 0.0001
  Prefactor  = 0.000100259
  Prefactor  = 15.7414
  norm       = 1.33188
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.61859
  Prefactor  = 0.000100003
  Prefactor  = 0.000100001
  norm       = 4.13951
  Prefactor  = 0.0001
  Prefactor  = 5.69273
  Prefactor  = 1.41803
  norm       = 0.0001
  Prefactor  = 5.28942
  Prefactor  = 2.53039
  Prefactor  = 9.20239
  Prefactor  = 3.43238
  norm       = 0.330218
  norm       = 0.0001
  Prefactor  = 0.000100017
  Prefactor  = 0.000100022
  Normalizat = 0.703811
  Prefactor  = 1.11238
 **********
 **   18 **HESSE 
 **********

 FCN=   5360.913     FROM HESSE     STATUS=OK           632 CALLS     4821 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9467        2.8447        .10206E-03   -1.5311    
   2  norm          .10001E-03    73.752        .35712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10008E-03    59.683        .40125E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.224        14.814        .10270E-03   -1.4927    
   5  Prefactor     .10000E-03    .79578        .63357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.603        20.805        .86151E-04   -1.4778    
   8  norm          .10000E-03    .82565        .64696E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10026E-03    79.140        .50064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.741        6.8326        .10095E-03   -1.4914    
  11  norm          1.3319        1.0126        .62890E-04   -1.5477    
  12  Prefactor     .10000E-03    14.743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.4982        .13355E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.6186        2.4013        .70210E-04   -1.5234    
  15  Prefactor     .10000E-03    22.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.1395        1.3599        .47043E-04   -1.5301    
  18  Prefactor     .10000E-03    1.2285        .79042E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.6927        28.071        .16838E-03   -1.5231    
  20  Prefactor     1.4180        2.3380        .14014E-03   -1.5470    
  21  norm          .10000E-03    8.1365        .18029E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.2894        7.4731        .87402E-03   -1.5248    
  23  Prefactor     2.5304        2.3007        .10026E-03   -1.5390    
  24  Prefactor     9.2024        3.1660        .71074E-04   -1.5101    
  25  Prefactor     3.4324        5.2851        .20029E-03   -1.5337    
  26  norm          .33022        .22728        .28057E-04   -1.5593    
  27  norm          .10000E-03    1.3264        .82204E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10002E-03    30.423        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10002E-03    45.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .70381        .21129        .26965E-03   -1.0374    
  31  Prefactor     1.1124        .23269        .25687E-03   -.89072    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.34655e-09
Minuit parameter uncertainties:
  1  2.84476
  2  0.00141619
  3  0.00439383
  4  14.8174
  5  1.09226e-06
  6  4.80745e-05
  7  20.8117
  8  1.40941e-06
  9  0.00906964
  10  6.83298
  11  1.01261
  12  8.8807e-05
  13  1.10546e-05
  14  2.40138
  15  0.000494101
  16  0.000240655
  17  1.35986
  18  6.75741e-07
  19  25.3013
  20  2.3382
  21  7.12105e-07
  22  7.4744
  23  2.3008
  24  3.16608
  25  5.28583
  26  0.227279
  27  8.89282e-07
  28  0.00145959
  29  0.00198026
  30  0.211534
  31  0.232903
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.140e+00  1.360e+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:  1.112e+00  2.329e-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:  7.038e-01  2.115e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 40.39
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.12e-07 +/- 3.69e-08
Energy Flux (Fixed Index): 5.03e-05 +/- 1.65e-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) = 5359.90968163
delta logL = 1.00333555741

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5359.85634806
delta logL = 1.05666912512

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.6287       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6551       1.0000          .0000       5.0000    
     3 'Normalizat'    .74047       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0909       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=   5359.856     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.6285        1.2850        .53022E-02   -.14209E-03
   2  alpha         1.6550        .25436        .17688       -.28552E-04
   3  Normalizat    .74047        .16986        .42828E-01    .91924E-05
   4  Prefactor     1.0909        .19936        .58622E-01   -.41891E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.62851
  alpha      = 1.65501
  Normalizat = 0.740475
  Prefactor  = 1.09087
 **********
 **   18 **HESSE 
 **********

 FCN=   5359.856     FROM HESSE     STATUS=OK            33 CALLS      241 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.6285        1.4265        .46690E-04   -1.5327    
   2  alpha         1.6550        .29361        .75176E-02   -.34479    
   3  Normalizat    .74047        .19667        .26343E-03   -1.0232    
   4  Prefactor     1.0909        .23059        .25923E-03   -.89759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85007e-10
Minuit parameter uncertainties:
  1  1.42648
  2  0.294373
  3  0.196857
  4  0.230799
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230448': 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) = 5359.85634803
delta logL = 1.05666915295

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.629e+00  1.426e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.655e+00  2.944e-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:  1.091e+00  2.308e-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:  7.405e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 42.46
Ra Dec: 179.884 29.245
Photon Index (Free Index): 1.66 +/- 0.29
Photon Flux (Free Index): 7.67e-08 +/- 3.41e-08
Energy Flux (Free Index): 8.54e-05 +/- 4.88e-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/230448/cmap_HighResolution_259027201_259286401_4FGL_J1159.5+2914_daily_bin76.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.12e-07', energy_flux2='8.54e-05', photon_flux_error='3.69e-08', dlogl='1.06e+00', energy_flux='5.03e-05', photon_flux2='7.67e-08', job_status='DONE', time_completed='2021-09-04 19:22:48.910855', photon_index_error2='0.29', photon_index2='1.66', ts='40.39', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='4.88e-05', EG='0.70', time_epoch_completed='1630808568.91', return_code='0', job_id='230448', GAL2='1.09', EG2='0.74', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='3.41e-08', ts2='42.46', photon_index='2.10' WHERE bin_id='76' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 230448: <4FGL_J1159.5+2914_daily_bin76> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin76 179.884 29.2448 259027201 259286401 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 :                                   737.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             285.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            985 sec.

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

