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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin62
RA = 179.884, Dec = 29.2448
tmin = 255398401, tmax = 255657601
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='230427', job_status='RUN', time_executed='2021-09-04 19:06:39.370366', time_epoch_executed='1630807599.37' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='62'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230427

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230427/ft1_4FGL_J1159.5+2914_daily_bin62.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230427/ft1_4FGL_J1159.5+2914_daily_bin62.fits outfile=/scratch/kocevski/230427/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin62.fits ra=179.884 dec=29.2448 rad=12.0 tmin=255398401.0 tmax=255657601.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.84
user 1.63
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230427/ft1_filtered_4FGL_J1159.5+2914_daily_bin62.fits" evtable="EVENTS" scfile=/scratch/kocevski/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits sctable="SC_DATA" outfile=/scratch/kocevski/230427/ltcube_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.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/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits
.....................!
real 12.42
user 12.03
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230427/ft1_filtered_4FGL_J1159.5+2914_daily_bin62.fits evtable="EVENTS" scfile=/scratch/kocevski/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits sctable="SC_DATA" expcube=/scratch/kocevski/230427/ltcube_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.fits outfile=/scratch/kocevski/230427/expmap_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.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/230427/ltcube_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.fits
.....................!
real 192.69
user 187.33
sys 4.83

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/230427/ft1_filtered_4FGL_J1159.5+2914_daily_bin62.fits scfile=/scratch/kocevski/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits outfile=/scratch/kocevski/230427/cmap_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.884 yref=29.2448 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230427/ft1_filtered_4FGL_J1159.5+2914_daily_bin62.fits scfile=/scratch/kocevski/230427/ft2_4FGL_J1159.5+2914_daily_bin62.fits outfile=/scratch/kocevski/230427/cmap_HighResolution_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.6459       1.0000         .10000E-03   10000.    
     2 'norm      '    20.145       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5235       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .75427       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.139       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0194       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.3257       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .13821E-01   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.462       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6103       1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.8564       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.6995       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.9741       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.8289       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.5576       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .30777       1.0000         .10000E-03   10000.    
    27 'norm      '    .86235E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.859       1.0000         .10000E-03   10000.    
    29 'Prefactor '    125.87       1.0000         .10000E-03   10000.    
    30 'Normalizat'    .91380       1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.0676       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=   7684.722     FROM MIGRAD    STATUS=CONVERGED    829 CALLS     4220 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.6474        3.2648        .12001E-07    .98647E-05
   2  norm          20.153        13.903       -.21868E-06   -.54940E-04
   3  norm          6.5236        7.9196        .48842E-06    .33192E-04
   4  Prefactor     .10000E-03    22.405       -.12772E-05** at limit **
   5  Prefactor     .75225        1.8542        .11788E-05    .57131E-03
   6  Prefactor     20.167        30.482       -.58486E-05   -.33231E-04
   7  Prefactor     .10000E-03    5.0238       -.59398E-07** at limit **
   8  norm          .10000E-03    1.2014        .41502E-06** at limit **
   9  Prefactor     .10000E-03    8.2975       -.76683E-07** at limit **
  10  Prefactor     3.0229        4.1082        .20466E-05   -.16735E-03
  11  norm          .10000E-03    .30915       -.85358E-07** at limit **
  12  Prefactor     .10000E-03    39.112       -.17487E-05** at limit **
  13  Prefactor     8.3252        7.9764        .40883E-07    .47256E-04
  14  Prefactor     .44450E-01    .66002       -.46176E-08   -.13179E-03
  15  Prefactor     23.481        23.609       -.22515E-05    .41040E-04
  16  Prefactor     .10000E-03    20.301        .10690E-05** at limit **
  17  norm          1.6102        .98637        .62467E-07    .31740E-03
  18  Prefactor     4.8551        3.6492        .18057E-06    .14743E-03
  19  Prefactor     .10000E-03    11.328        .32704E-06** at limit **
  20  Prefactor     .10000E-03    1.1376       -.17536E-06** at limit **
  21  norm          3.7000        2.4114       -.32927E-08    .45722E-04
  22  Prefactor     1.9757        4.0224        .35861E-05   -.97115E-04
  23  Prefactor     1.8291        1.6512       -.12312E-07    .13826E-04
  24  Prefactor     4.5600        2.3046        .96760E-07    .17051E-03
  25  Prefactor     .10000E-03    1.8359       -.34357E-07** at limit **
  26  norm          .30798        .19197        .17188E-07    .25525E-03
  27  norm          .10000E-03    1.6685        .39548E-06** at limit **
  28  Prefactor     15.863        7.6418        .59375E-07    .47826E-04
  29  Prefactor     125.94        90.430       -.64603E-05    .61731E-04
  30  Normalizat    .91348        .16334       -.10141E-05    .13698E-03
  31  Prefactor     1.0675        .17503        .15204E-05    .18811E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.64737
  norm       = 20.1535
  norm       = 6.52358
  Prefactor  = 0.0001
  Prefactor  = 0.752251
  Prefactor  = 20.1671
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.02293
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.32518
  Prefactor  = 0.0444499
  Prefactor  = 23.4805
  Prefactor  = 0.0001
  norm       = 1.61022
  Prefactor  = 4.85513
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.70003
  Prefactor  = 1.97568
  Prefactor  = 1.82905
  Prefactor  = 4.56001
  Prefactor  = 0.0001
  norm       = 0.307978
  norm       = 0.000100003
  Prefactor  = 15.863
  Prefactor  = 125.939
  Normalizat = 0.913482
  Prefactor  = 1.06754
 **********
 **   18 **HESSE 
 **********

 FCN=   7684.722     FROM HESSE     STATUS=OK           636 CALLS     4856 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.6474        3.2596        .14420E-03   -1.5326    
   2  norm          20.153        13.893        .89239E-04   -1.4810    
   3  norm          6.5236        7.9196        .78564E-03   -1.5197    
   4  Prefactor     .10000E-03    22.930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .75225        1.7760        .16225E-03   -1.5535    
   6  Prefactor     20.167        30.213        .89251E-04   -1.4810    
   7  Prefactor     .10000E-03    5.0368        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.2351        .18720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.3730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0229        4.0819        .97354E-03   -1.5360    
  11  norm          .10000E-03    .56288        .94612E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.072        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.3252        7.9677        .13894E-03   -1.5131    
  14  Prefactor     .44450E-01    8.8070        .13463E-02   -1.5666    
  15  Prefactor     23.481        23.658        .82696E-04   -1.4738    
  16  Prefactor     .10000E-03    20.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6102        .97688        .64903E-04   -1.5454    
  18  Prefactor     4.8551        3.6370        .13594E-03   -1.5267    
  19  Prefactor     .10000E-03    11.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1695        .18243E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7000        2.4053        .10146E-03   -1.5323    
  22  Prefactor     1.9757        4.0352        .12270E-02   -1.5427    
  23  Prefactor     1.8291        1.6594        .99645E-04   -1.5437    
  24  Prefactor     4.5600        2.2915        .87618E-04   -1.5281    
  25  Prefactor     .10000E-03    1.8431        .11591E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .30798        .18783        .28706E-04   -1.5597    
  27  norm          .10000E-03    7.8934        .21547E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     15.863        7.6363        .10057E-03   -1.4911    
  29  Prefactor     125.94        89.851        .17940E-03   -1.3459    
  30  Normalizat    .91348        .18988        .25116E-03   -.95988    
  31  Prefactor     1.0675        .20645        .27021E-03   -.90511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96867e-08
Minuit parameter uncertainties:
  1  3.25972
  2  13.8951
  3  7.92087
  4  9.22229e-05
  5  1.77613
  6  30.2361
  7  9.01186e-06
  8  1.41797e-05
  9  2.7873e-05
  10  4.08225
  11  2.56864e-07
  12  0.000228656
  13  7.96873
  14  1.25013
  15  23.6674
  16  4.42412e-05
  17  0.976888
  18  3.63716
  19  2.16268e-05
  20  6.87326e-06
  21  2.40536
  22  4.03575
  23  1.65948
  24  2.29156
  25  5.89376e-06
  26  0.187832
  27  0.000285725
  28  7.63677
  29  89.9485
  30  0.190019
  31  0.2066
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.610e+00  9.769e-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.068e+00  2.066e-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.135e-01  1.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.03
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 4.37e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 1.96e-05 +/- 1.19e-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) = 7684.65437184
delta logL = 0.0681199826276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7684.65316685
delta logL = 0.0693249748165

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6018       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3076       1.0000          .0000       5.0000    
     3 'Normalizat'    .90218       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0763       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=   7684.653     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6027        22.746        .83736E-02    .14094E-03
   2  alpha         2.3075        3.2716        .41307       -.29470E-04
   3  Normalizat    .90223        .74727E-01    .44929E-01    .19705E-04
   4  Prefactor     1.0763        .97105E-01    .60881E-01    .90646E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.6027
  alpha      = 2.30747
  Normalizat = 0.902229
  Prefactor  = 1.07628
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6027        .96717        .62764E-04   -1.5455    
   2  alpha         2.3075        .56350        .15119E-01   -.77089E-01
   3  Normalizat    .90223        .18049        .25254E-03   -.96382    
   4  Prefactor     1.0763        .20698        .26925E-03   -.90228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77238e-11
Minuit parameter uncertainties:
  1  0.96718
  2  0.568409
  3  0.180612
  4  0.207134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230427': 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) = 7684.6531663
delta logL = 0.0693255219903

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  1.603e+00  9.672e-01  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.307e+00  5.684e-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.076e+00  2.071e-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.022e-01  1.806e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.14
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.31 +/- 0.57
Photon Flux (Free Index): 5.14e-08 +/- 3.54e-08
Energy Flux (Free Index): 1.75e-05 +/- 1.15e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230427/cmap_HighResolution_255398401_255657601_4FGL_J1159.5+2914_daily_bin62.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.37e-08', energy_flux2='1.75e-05', photon_flux_error='2.65e-08', dlogl='6.93e-02', energy_flux='1.96e-05', photon_flux2='5.14e-08', job_status='DONE', time_completed='2021-09-04 19:22:06.012126', photon_index_error2='0.57', photon_index2='2.31', ts='5.03', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.15e-05', EG='0.91', time_epoch_completed='1630808526.01', return_code='0', job_id='230427', GAL2='1.08', EG2='0.90', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='3.54e-08', ts2='5.14', photon_index='2.10' WHERE bin_id='62' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:22:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0125>
Subject: Job 230427: <4FGL_J1159.5+2914_daily_bin62> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin62 179.884 29.2448 255398401 255657601 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 :                                   920.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             302.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

