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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin740
RA = 179.884, Dec = 29.2448
tmin = 431136001, tmax = 431395201
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='234852', job_status='RUN', time_executed='2021-09-04 19:20:40.660433', time_epoch_executed='1630808440.66' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/234852

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/234852/ft1_4FGL_J1159.5+2914_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/234852/ft2_4FGL_J1159.5+2914_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/234852/ft1_4FGL_J1159.5+2914_daily_bin740.fits outfile=/scratch/kocevski/234852/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin740.fits ra=179.884 dec=29.2448 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.59
user 5.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/234852/ft1_filtered_4FGL_J1159.5+2914_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/234852/ft2_4FGL_J1159.5+2914_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/234852/ltcube_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.fits outfile=/scratch/kocevski/234852/expmap_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.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/234852/ltcube_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.fits
.....................!
real 191.92
user 186.76
sys 4.47

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/234852/ft1_filtered_4FGL_J1159.5+2914_daily_bin740.fits scfile=/scratch/kocevski/234852/ft2_4FGL_J1159.5+2914_daily_bin740.fits outfile=/scratch/kocevski/234852/cmap_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/234852/ft1_filtered_4FGL_J1159.5+2914_daily_bin740.fits scfile=/scratch/kocevski/234852/ft2_4FGL_J1159.5+2914_daily_bin740.fits outfile=/scratch/kocevski/234852/cmap_HighResolution_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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      '    20.178       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5375       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    14.421       1.0000         .10000E-03   10000.    
     8 'norm      '    3.3239       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4731       1.0000         .10000E-03   10000.    
    11 'norm      '    7.2941       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0287       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9156       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.0629       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13194E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.258       1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.3372       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.1271       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.5000       1.0000         .10000E-03   10000.    
    27 'norm      '    .12372E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.3851       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .68721       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=   5079.496     FROM MIGRAD    STATUS=CONVERGED    831 CALLS     3553 TOTAL
                     EDM=   .65E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.2009        .12710E-07** at limit **
   2  norm          20.178        14.942        .37520E-07   -.55757E-05
   3  norm          6.5379        15.625        .34493E-05   -.30307E-03
   4  Prefactor     .10000E-03    13.556       -.29175E-05** at limit **
   5  Prefactor     .10000E-03    1.2732        .49471E-07** at limit **
   6  Prefactor     .10001E-03    25.962       -.30812E-05** at limit **
   7  Prefactor     14.422        14.685       -.82780E-07   -.20161E-04
   8  norm          3.3236        3.6445        .13191E-06   -.90136E-04
   9  Prefactor     .10000E-03    6.7662       -.26277E-07** at limit **
  10  Prefactor     6.4732        5.0518       -.13263E-06   -.21574E-03
  11  norm          7.2942        2.1599        .23394E-07   -.23492E-04
  12  Prefactor     5.0229        28.829        .10093E-05    .24315E-04
  13  Prefactor     7.9160        11.215        .12287E-06    .13114E-05
  14  Prefactor     5.0629        2.9777       -.68090E-08   -.57456E-04
  15  Prefactor     .10000E-03    24.323        .16874E-06** at limit **
  16  Prefactor     .10000E-03    36.453        .18217E-05** at limit **
  17  norm          .10000E-03    1.1167        .13247E-06** at limit **
  18  Prefactor     .10000E-03    3.2033       -.17156E-09** at limit **
  19  Prefactor     .10000E-03    18.562        .11183E-05** at limit **
  20  Prefactor     .10000E-03    2.7826       -.40125E-06** at limit **
  21  norm          14.257        6.1261       -.66778E-07   -.19747E-03
  22  Prefactor     5.3371        9.5247        .28014E-06   -.43617E-04
  23  Prefactor     2.1271        4.0604        .22537E-06   -.23952E-03
  24  Prefactor     .10000E-03    1.2066        .20207E-08** at limit **
  25  Prefactor     .10000E-03    7.7513        .23482E-06** at limit **
  26  norm          2.4998        .53299        .13210E-07   -.46463E-03
  27  norm          .10002E-03    5.1771        .12196E-05** at limit **
  28  Prefactor     .10000E-03    11.748        .14222E-05** at limit **
  29  Prefactor     .10000E-03    168.26       -.83260E-06** at limit **
  30  Normalizat    1.3853        .23247       -.77967E-06   -.12036E-03
  31  Prefactor     .68687        .24118       -.38418E-06   -.11895E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 20.1781
  norm       = 6.53785
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 14.4217
  norm       = 3.3236
  Prefactor  = 0.0001
  Prefactor  = 6.47324
  norm       = 7.29422
  Prefactor  = 5.02294
  Prefactor  = 7.91598
  Prefactor  = 5.06285
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 14.2568
  Prefactor  = 5.33715
  Prefactor  = 2.12711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.4998
  norm       = 0.000100022
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 1.38528
  Prefactor  = 0.686874
 **********
 **   18 **HESSE 
 **********

 FCN=   5079.496     FROM HESSE     STATUS=OK           614 CALLS     4167 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.2032        .76276E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          20.178        14.940        .89166E-04   -1.4809    
   3  norm          6.5379        17.837        .78478E-03   -1.5197    
   4  Prefactor     .10000E-03    14.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.2870        .78425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    27.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     14.422        14.689        .10547E-03   -1.4948    
   8  norm          3.3236        3.6333        .13478E-03   -1.5343    
   9  Prefactor     .10000E-03    6.7775        .18103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4732        5.0608        .13687E-03   -1.5199    
  11  norm          7.2942        2.1586        .54195E-04   -1.5168    
  12  Prefactor     5.0229        28.474        .17932E-03   -1.5260    
  13  Prefactor     7.9160        11.214        .14252E-03   -1.5145    
  14  Prefactor     5.0629        2.9685        .87281E-04   -1.5258    
  15  Prefactor     .10000E-03    24.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    36.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.3207        .14323E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.2351        .12440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4728        .22342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.257        6.1223        .89781E-04   -1.4953    
  22  Prefactor     5.3371        9.5393        .17396E-03   -1.5246    
  23  Prefactor     2.1271        4.0585        .15539E-03   -1.5416    
  24  Prefactor     .10000E-03    1.2214        .76385E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    7.8950        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.4998        .53184        .22702E-04   -1.5392    
  27  norm          .10002E-03    19.312        .29460E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    12.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    168.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.3853        .27421        .25150E-03   -.81055    
  31  Prefactor     .68687        .27964        .37032E-03   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.70769e-09
Minuit parameter uncertainties:
  1  1.05885e-06
  2  14.9432
  3  17.8511
  4  0.000536961
  5  3.945e-06
  6  0.000783575
  7  14.6926
  8  3.63354
  9  1.95953e-06
  10  5.06116
  11  2.15866
  12  23.9355
  13  11.217
  14  2.96861
  15  4.59359e-05
  16  0.000543381
  17  6.85024e-06
  18  5.09552e-06
  19  0.000238442
  20  0.00036196
  21  6.12254
  22  9.54199
  23  4.05899
  24  5.34395e-07
  25  1.92884e-05
  26  0.531838
  27  0.00130908
  28  0.000234273
  29  0.000517488
  30  0.274499
  31  0.280209
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.000e-04  6.850e-06  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:  6.869e-01  2.802e-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.385e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/234852/likelihoodResults_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.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) = 5079.49764826
delta logL = -0.00206053200418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5079.4955887
delta logL = -9.71571353148e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11376E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1570       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3853       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68704       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5079.496     FROM MIGRAD    STATUS=CONVERGED    124 CALLS      292 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    502.86        .12354E-02** at limit **
   2  alpha         2.4988        2.5726        .16661        .34391E-07
   3  Normalizat    1.3853        .75349E-01    .25150E-03    .22149E-05
   4  Prefactor     .68688        .81216E-01    .37032E-03    .23946E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.49877
  Normalizat = 1.38527
  Prefactor  = 0.686876
 **********
 **   18 **HESSE 
 **********

 FCN=   5079.496     FROM HESSE     STATUS=OK            23 CALLS      315 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.1416        .24709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4988        3.4926        .66643E-02   -.49216E-03
   3  Normalizat    1.3853        .25677        .10060E-04   -.81055    
   4  Prefactor     .68688        .27692        .14813E-04   -1.0404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.2795e-11
Minuit parameter uncertainties:
  1  5.35624e-05
  2  91.9549
  3  0.25701
  4  0.277478
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/234852': 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) = 5079.49557835
delta logL = 9.37465392781e-06

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.000e-04  5.356e-05  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.499e+00  9.195e+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:  6.869e-01  2.775e-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.385e+00  2.570e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/234852/cmap_HighResolution_431136001_431395201_4FGL_J1159.5+2914_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-05', job_status='DONE', photon_flux_upper_limit='9.10e-08', time_completed='2021-09-04 19:33:43.727072', job_id='234852', GAL2='0.69', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630809223.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='9.37e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.10' WHERE bin_id='740' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:33:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 234852: <4FGL_J1159.5+2914_daily_bin740> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 19:20:28 2021
Job was executed on host(s) <bullet0249>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:20:30 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:20:30 2021
Terminated at Sat Sep  4 19:33:44 2021
Results reported at Sat Sep  4 19:33:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin740 179.884 29.2448 431136001 431395201 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 :                                   781.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            796 sec.

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

