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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin1281
RA = 179.884, Dec = 29.2448
tmin = 571363201, tmax = 571622401
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='237628', job_status='RUN', time_executed='2021-09-04 19:33:25.970591', time_epoch_executed='1630809205.97' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='1281'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/237628

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/237628/ft1_4FGL_J1159.5+2914_daily_bin1281.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/237628/ft1_4FGL_J1159.5+2914_daily_bin1281.fits outfile=/scratch/kocevski/237628/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1281.fits ra=179.884 dec=29.2448 rad=12.0 tmin=571363201.0 tmax=571622401.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.83
user 2.62
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.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/237628/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin1281.fits evtable="EVENTS" outfile="/scratch/kocevski/237628/ft1_filtered_4FGL_J1159.5+2914_daily_bin1281.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/237628/ft1_filtered_4FGL_J1159.5+2914_daily_bin1281.fits" evtable="EVENTS" scfile=/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits sctable="SC_DATA" outfile=/scratch/kocevski/237628/ltcube_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.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/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits
.....................!
real 15.74
user 15.37
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/237628/ft1_filtered_4FGL_J1159.5+2914_daily_bin1281.fits evtable="EVENTS" scfile=/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits sctable="SC_DATA" expcube=/scratch/kocevski/237628/ltcube_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.fits outfile=/scratch/kocevski/237628/expmap_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.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/237628/ltcube_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.fits
.....................!
real 190.77
user 185.34
sys 4.93

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/237628/ft1_filtered_4FGL_J1159.5+2914_daily_bin1281.fits scfile=/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits outfile=/scratch/kocevski/237628/cmap_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/237628/ft1_filtered_4FGL_J1159.5+2914_daily_bin1281.fits scfile=/scratch/kocevski/237628/ft2_4FGL_J1159.5+2914_daily_bin1281.fits outfile=/scratch/kocevski/237628/cmap_HighResolution_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.9412       1.0000         .10000E-03   10000.    
     2 'norm      '    27.866       1.0000         .10000E-03   10000.    
     3 'norm      '    57.971       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12112E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .30281E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.285       1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.067       1.0000         .10000E-03   10000.    
    11 'norm      '    2.8761       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .47172       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.5936       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.4064       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.7630       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .14277       1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.399       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0037       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.1254       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=   3046.805     FROM MIGRAD    STATUS=CONVERGED    821 CALLS     4155 TOTAL
                     EDM=   .93E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.9357        17.702       -.21593E-06   -.35516E-04
   2  norm          27.858        59.571        .19978E-05   -.29550E-04
   3  norm          57.950        54.587        .14115E-05    .14584E-04
   4  Prefactor     .10000E-03    26.889       -.16789E-05** at limit **
   5  Prefactor     .10000E-03    11.950       -.95186E-07** at limit **
   6  Prefactor     .10000E-03    77.275        .17411E-05** at limit **
   7  Prefactor     .10002E-03    173.10        .65045E-06** at limit **
   8  norm          .10012E-03    6.5264        .40514E-05** at limit **
   9  Prefactor     24.201        34.063        .28586E-05    .46281E-05
  10  Prefactor     15.078        12.465       -.20074E-06   -.26374E-03
  11  norm          2.8752        2.2106        .28241E-06   -.62516E-04
  12  Prefactor     .10000E-03    18.680        .34712E-06** at limit **
  13  Prefactor     .10000E-03    8.9448        .86282E-07** at limit **
  14  Prefactor     .10000E-03    .98117       -.23755E-07** at limit **
  15  Prefactor     .10000E-03    29.870        .19546E-05** at limit **
  16  Prefactor     .10001E-03    127.74       -.12441E-04** at limit **
  17  norm          .47193        1.0970       -.58637E-07   -.44642E-03
  18  Prefactor     3.5948        7.4285        .44127E-05    .57036E-03
  19  Prefactor     .10000E-03    22.570        .74380E-07** at limit **
  20  Prefactor     .10000E-03    1.9872        .11393E-06** at limit **
  21  norm          .10000E-03    2.2019       -.54692E-08** at limit **
  22  Prefactor     .10000E-03    6.3838        .40467E-07** at limit **
  23  Prefactor     3.4052        2.9583        .62039E-07   -.10143E-05
  24  Prefactor     3.7630        3.5555        .13419E-06   -.57927E-05
  25  Prefactor     .10000E-03    2.7542        .14620E-07** at limit **
  26  norm          .14282        .26453        .67620E-07    .62572E-03
  27  norm          .10000E-03    1.8487        .62586E-08** at limit **
  28  Prefactor     25.399        16.309        .11665E-06   -.20452E-04
  29  Prefactor     .10000E-03    27.740       -.93271E-06** at limit **
  30  Normalizat    1.0036        .26785       -.83953E-06   -.12380E-03
  31  Prefactor     1.1255        .29656       -.16663E-05   -.88425E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.9357
  norm       = 27.8579
  norm       = 57.9495
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  norm       = 0.00010012
  Prefactor  = 24.2011
  Prefactor  = 15.0784
  norm       = 2.87524
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  norm       = 0.471927
  Prefactor  = 3.59476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.40523
  Prefactor  = 3.763
  Prefactor  = 0.0001
  norm       = 0.142821
  norm       = 0.0001
  Prefactor  = 25.3993
  Prefactor  = 0.0001
  Normalizat = 1.00356
  Prefactor  = 1.12552
 **********
 **   18 **HESSE 
 **********

 FCN=   3046.805     FROM HESSE     STATUS=OK           616 CALLS     4771 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.9357        17.671        .16474E-03   -1.5221    
   2  norm          27.858        59.278        .75892E-04   -1.4652    
   3  norm          57.950        54.570        .52691E-04   -1.4184    
   4  Prefactor     .10000E-03    26.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.303        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    77.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10002E-03    171.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10012E-03    20.294        .19946E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.201        33.825        .81286E-04   -1.4724    
  10  Prefactor     15.078        12.386        .10318E-03   -1.4931    
  11  norm          2.8752        2.1884        .67858E-04   -1.5369    
  12  Prefactor     .10000E-03    18.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    8.9515        .16126E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .98325        .53392E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10001E-03    129.45        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .47193        .94526        .85265E-03   -1.5571    
  18  Prefactor     3.5948        7.7780        .10658E-02   -1.5329    
  19  Prefactor     .10000E-03    22.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0007        .76009E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.2191        .79596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    6.4024        .13618E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     3.4052        2.9386        .83999E-04   -1.5339    
  24  Prefactor     3.7630        3.5436        .92976E-04   -1.5320    
  25  Prefactor     .10000E-03    2.7573        .89458E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .14282        .23930        .36752E-03   -1.5632    
  27  norm          .10000E-03    1.8513        .73286E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     25.399        16.309        .79486E-04   -1.4700    
  29  Prefactor     .10000E-03    27.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.0036        .31119        .26567E-03   -.92911    
  31  Prefactor     1.1255        .34628        .28629E-03   -.88655    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.81345e-09
Minuit parameter uncertainties:
  1  17.6866
  2  59.404
  3  54.6169
  4  0.000161036
  5  0.000132204
  6  0.000128264
  7  0.00396609
  8  0.00312337
  9  33.8517
  10  12.3885
  11  2.18842
  12  2.81669e-05
  13  4.08519e-06
  14  2.31577e-06
  15  0.000140171
  16  0.00231335
  17  0.945291
  18  7.78018
  19  6.40857e-06
  20  3.17767e-06
  21  1.23353e-07
  22  9.12874e-06
  23  2.9387
  24  3.54379
  25  1.50837e-06
  26  0.239299
  27  9.97131e-07
  28  16.3115
  29  7.47829e-05
  30  0.311759
  31  0.346974
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.719e-01  9.453e-01  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.126e+00  3.470e-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:  1.004e+00  3.118e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.37
Ra Dec: 179.884 29.245
Photon Flux Upper Limit: 9.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/237628/likelihoodResults_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.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): 0
logL (Free Index) = 3046.67654718
delta logL = 0.128812848815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3046.67607524
delta logL = 0.129284788897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .49205       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0097       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1182       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=   3046.676     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      197 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .49206        .84595        .11238E-02   -.14774E-02
   2  alpha         1.5759        .70790        .45385        .52310E-05
   3  Normalizat    1.0097        .25650        .46288E-01    .11501E-05
   4  Prefactor     1.1183        .29271        .64875E-01    .13481E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.492056
  alpha      = 1.57588
  Normalizat = 1.00966
  Prefactor  = 1.11825
 **********
 **   18 **HESSE 
 **********

 FCN=   3046.676     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .49206        .86613        .44953E-04   -1.5568    
   2  alpha         1.5759        .90232        .15977E-01   -.37863    
   3  Normalizat    1.0097        .29998        .26493E-03   -.92707    
   4  Prefactor     1.1183        .34203        .28696E-03   -.88885    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53636e-10
Minuit parameter uncertainties:
  1  0.86615
  2  0.926705
  3  0.30048
  4  0.342703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/237628': 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) = 3046.67607523
delta logL = 0.129284797575

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.921e-01  8.661e-01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  1.576e+00  9.267e-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.118e+00  3.427e-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:  1.010e+00  3.005e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.37
Ra Dec: 179.884 29.245

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/237628/cmap_HighResolution_571363201_571622401_4FGL_J1159.5+2914_daily_bin1281.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', job_status='DONE', photon_flux_upper_limit='9.76e-08', time_completed='2021-09-04 19:46:46.958570', job_id='237628', GAL2='1.12', fit_tolerance='1e-08', EG2='1.01', EG='1.00', time_epoch_completed='1630810006.96', return_code2='0', ts='0.37', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.29e-01', ts2='0.63', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='1281' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:46:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0276>
Subject: Job 237628: <4FGL_J1159.5+2914_daily_bin1281> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin1281> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:30:31 2021
Job was executed on host(s) <bullet0276>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:30:32 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:30:32 2021
Terminated at Sat Sep  4 19:46:47 2021
Results reported at Sat Sep  4 19:46:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin1281 179.884 29.2448 571363201 571622401 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 :                                   608.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             234.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            976 sec.

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

