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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin72
RA = 179.884, Dec = 29.2448
tmin = 257990401, tmax = 258249601
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='230442', job_status='RUN', time_executed='2021-09-04 19:10:17.768272', time_epoch_executed='1630807817.77' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='72'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230442/ft1_4FGL_J1159.5+2914_daily_bin72.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230442/ft1_4FGL_J1159.5+2914_daily_bin72.fits outfile=/scratch/kocevski/230442/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin72.fits ra=179.884 dec=29.2448 rad=12.0 tmin=257990401.0 tmax=258249601.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.41
user 1.21
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230442/ft1_filtered_4FGL_J1159.5+2914_daily_bin72.fits" evtable="EVENTS" scfile=/scratch/kocevski/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits sctable="SC_DATA" outfile=/scratch/kocevski/230442/ltcube_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.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/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits
.....................!
real 12.53
user 12.16
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230442/ft1_filtered_4FGL_J1159.5+2914_daily_bin72.fits evtable="EVENTS" scfile=/scratch/kocevski/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits sctable="SC_DATA" expcube=/scratch/kocevski/230442/ltcube_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.fits outfile=/scratch/kocevski/230442/expmap_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.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/230442/ltcube_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.fits
.....................!
real 190.39
user 185.84
sys 4.21

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/230442/ft1_filtered_4FGL_J1159.5+2914_daily_bin72.fits scfile=/scratch/kocevski/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits outfile=/scratch/kocevski/230442/cmap_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230442/ft1_filtered_4FGL_J1159.5+2914_daily_bin72.fits scfile=/scratch/kocevski/230442/ft2_4FGL_J1159.5+2914_daily_bin72.fits outfile=/scratch/kocevski/230442/cmap_HighResolution_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.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.67
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10456E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    12.394       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .97054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18731E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.413       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 '    2.8824       1.0000         .10000E-03   10000.    
    11 'norm      '    .99452       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10135E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .33585E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.7005       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.5798       1.0000         .10000E-03   10000.    
    21 'norm      '    2.5813       1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.4110       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.2601       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.4776       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .51433       1.0000         .10000E-03   10000.    
    27 'norm      '    .13673E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10402E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .92791       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0011       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=   5301.040     FROM MIGRAD    STATUS=CONVERGED    825 CALLS     3616 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.7571       -.44665E-08** at limit **
   2  norm          .10004E-03    7.3714        .14715E-05** at limit **
   3  norm          12.394        10.017       -.87561E-07   -.55996E-04
   4  Prefactor     .10000E-03    40.785        .18518E-04** at limit **
   5  Prefactor     .96515        2.2301       -.36698E-06   -.92327E-03
   6  Prefactor     .10000E-03    88.306       -.87901E-05** at limit **
   7  Prefactor     34.414        19.677       -.25285E-07   -.98273E-05
   8  norm          .10000E-03    1.3916       -.23303E-08** at limit **
   9  Prefactor     .10000E-03    5.3251        .26063E-07** at limit **
  10  Prefactor     2.8836        5.6716        .10836E-05   -.51805E-03
  11  norm          .99432        .90884       -.22148E-07   -.40664E-03
  12  Prefactor     .10000E-03    31.504       -.12694E-04** at limit **
  13  Prefactor     .10000E-03    9.0523        .40357E-05** at limit **
  14  Prefactor     .10000E-03    1.1327        .67393E-07** at limit **
  15  Prefactor     .10000E-03    8.7939       -.31999E-05** at limit **
  16  Prefactor     .10000E-03    15.308        .69200E-05** at limit **
  17  norm          4.7005        1.5491        .19675E-07    .40199E-03
  18  Prefactor     .10000E-03    2.2332        .18801E-07** at limit **
  19  Prefactor     .10000E-03    13.850       -.54334E-05** at limit **
  20  Prefactor     3.5789        2.9648        .60562E-07   -.22076E-03
  21  norm          2.5810        2.7331        .13878E-06   -.21767E-03
  22  Prefactor     7.4096        6.8177       -.78956E-07   -.48393E-04
  23  Prefactor     2.2601        2.1660       -.10749E-06   -.91520E-04
  24  Prefactor     3.4779        2.0131        .12868E-07    .10114E-03
  25  Prefactor     .10000E-03    2.7475        .11984E-07** at limit **
  26  norm          .51433        .28676       -.10567E-07   -.43982E-03
  27  norm          .10004E-03    2.0006       -.54188E-06** at limit **
  28  Prefactor     .10000E-03    2.5109       -.11882E-07** at limit **
  29  Prefactor     .10000E-03    36.010       -.23586E-05** at limit **
  30  Normalizat    .92810        .18484       -.32190E-06   -.10915E-04
  31  Prefactor     1.0010        .20569        .31933E-06   -.59000E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.000100038
  norm       = 12.3943
  Prefactor  = 0.000100001
  Prefactor  = 0.965154
  Prefactor  = 0.0001
  Prefactor  = 34.4143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.88361
  norm       = 0.994319
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.57891
  norm       = 2.58097
  Prefactor  = 7.40961
  Prefactor  = 2.26012
  Prefactor  = 3.47786
  Prefactor  = 0.0001
  norm       = 0.514328
  norm       = 0.000100041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.928097
  Prefactor  = 1.00101
 **********
 **   18 **HESSE 
 **********

 FCN=   5301.040     FROM HESSE     STATUS=OK           628 CALLS     4244 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.7784        .94213E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    26.361        .37893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          12.394        10.026        .11378E-03   -1.5004    
   4  Prefactor     .10000E-03    41.438        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .96515        2.1372        .15220E-03   -1.5511    
   6  Prefactor     .10000E-03    88.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.414        19.666        .68311E-04   -1.4534    
   8  norm          .10000E-03    1.4552        .16745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3322        .16399E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.8836        5.5528        .22071E-03   -1.5368    
  11  norm          .99432        .87523        .64101E-03   -1.5509    
  12  Prefactor     .10000E-03    31.975        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.1577        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.7795        .14973E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.8110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.7005        1.5501        .49695E-04   -1.5274    
  18  Prefactor     .10000E-03    2.2846        .21224E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.5789        2.9558        .10956E-03   -1.5330    
  21  norm          2.5810        2.7395        .10958E-03   -1.5387    
  22  Prefactor     7.4096        6.8170        .14733E-03   -1.5163    
  23  Prefactor     2.2601        2.1761        .93317E-04   -1.5407    
  24  Prefactor     3.4779        2.0078        .75075E-04   -1.5335    
  25  Prefactor     .10000E-03    2.7798        .11781E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .51433        .28189        .27361E-04   -1.5565    
  27  norm          .10004E-03    15.920        .19807E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.5127        .11267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    36.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .92810        .21307        .24035E-03   -.95480    
  31  Prefactor     1.0010        .23783        .26993E-03   -.92696    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56238e-09
Minuit parameter uncertainties:
  1  2.26736e-07
  2  0.0019976
  3  10.0278
  4  0.000491835
  5  2.13738
  6  0.000267725
  7  19.6699
  8  1.12881e-06
  9  6.69446e-07
  10  5.55375
  11  0.87524
  12  0.000124221
  13  1.81758e-05
  14  1.05236e-05
  15  2.87118e-06
  16  1.41931e-07
  17  1.55014
  18  1.59719e-06
  19  3.35775e-06
  20  2.95594
  21  2.73966
  22  6.81773
  23  2.17621
  24  2.00783
  25  2.83675e-06
  26  0.281891
  27  0.00161817
  28  4.35523e-07
  29  1.94731e-06
  30  0.21326
  31  0.23808
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  4.700e+00  1.550e+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.001e+00  2.381e-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.281e-01  2.133e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 22.47
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.28e-07 +/- 4.21e-08
Energy Flux (Fixed Index): 5.72e-05 +/- 1.88e-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) = 5299.51099549
delta logL = 1.52938930587

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5299.51058685
delta logL = 1.52979794311

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7389       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7313       1.0000          .0000       5.0000    
     3 'Normalizat'    .85313       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0621       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=   5299.511     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      266 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7383        15.178        .52204E-02    .38693E-03
   2  alpha         2.7311        3.8508        .17778        .56904E-04
   3  Normalizat    .85317        .12937        .44300E-01    .24937E-04
   4  Prefactor     1.0621        .14583        .59490E-01    .12240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.73835
  alpha      = 2.73112
  Normalizat = 0.853172
  Prefactor  = 1.06211
 **********
 **   18 **HESSE 
 **********

 FCN=   5299.511     FROM HESSE     STATUS=OK            33 CALLS      299 TOTAL
                     EDM=   .91E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7383        1.5636        .39761E-04   -1.5321    
   2  alpha         2.7311        .40197        .76703E-02    .92580E-01
   3  Normalizat    .85317        .20978        .24894E-03   -.98126    
   4  Prefactor     1.0621        .24166        .26308E-03   -.90687    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08379e-12
Minuit parameter uncertainties:
  1  1.5636
  2  0.403739
  3  0.209978
  4  0.241906
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230442': 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) = 5299.51058636
delta logL = 1.52979843189

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.738e+00  1.564e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.731e+00  4.037e-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.062e+00  2.419e-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.532e-01  2.100e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.57
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.73 +/- 0.40
Photon Flux (Free Index): 1.81e-07 +/- 5.89e-08
Energy Flux (Free Index): 4.26e-05 +/- 1.38e-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/230442/cmap_HighResolution_257990401_258249601_4FGL_J1159.5+2914_daily_bin72.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.28e-07', energy_flux2='4.26e-05', photon_flux_error='4.21e-08', dlogl='1.53e+00', energy_flux='5.72e-05', photon_flux2='1.81e-07', job_status='DONE', time_completed='2021-09-04 19:21:50.818000', photon_index_error2='0.40', photon_index2='2.73', ts='22.47', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.38e-05', EG='0.93', time_epoch_completed='1630808510.82', return_code='0', job_id='230442', GAL2='1.06', EG2='0.85', return_code2='0', energy_flux_error='1.88e-05', photon_flux_error2='5.89e-08', ts2='25.57', photon_index='2.10' WHERE bin_id='72' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 230442: <4FGL_J1159.5+2914_daily_bin72> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin72 179.884 29.2448 257990401 258249601 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 :                                   692.36 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             239.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   926 sec.
    Turnaround time :                            928 sec.

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

