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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin666
RA = 179.884, Dec = 29.2448
tmin = 411955201, tmax = 412214401
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='233340', job_status='RUN', time_executed='2021-09-04 19:18:12.218152', time_epoch_executed='1630808292.22' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/233340

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/233340/ft1_4FGL_J1159.5+2914_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/233340/ft2_4FGL_J1159.5+2914_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/233340/ft1_4FGL_J1159.5+2914_daily_bin666.fits outfile=/scratch/kocevski/233340/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin666.fits ra=179.884 dec=29.2448 rad=12.0 tmin=411955201.0 tmax=412214401.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.32
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/233340/ft1_filtered_4FGL_J1159.5+2914_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/233340/ft2_4FGL_J1159.5+2914_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/233340/ltcube_411955201_412214401_4FGL_J1159.5+2914_daily_bin666.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/233340/ft2_4FGL_J1159.5+2914_daily_bin666.fits
.....................!
real 12.28
user 11.91
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/233340/ft1_filtered_4FGL_J1159.5+2914_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/233340/ft2_4FGL_J1159.5+2914_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/233340/ltcube_411955201_412214401_4FGL_J1159.5+2914_daily_bin666.fits outfile=/scratch/kocevski/233340/expmap_411955201_412214401_4FGL_J1159.5+2914_daily_bin666.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/233340/ltcube_411955201_412214401_4FGL_J1159.5+2914_daily_bin666.fits
.....................!
real 191.20
user 185.74
sys 4.68

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    18.583       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .21680       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11955E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1360       1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.077       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .25144E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.1916       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.235       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.0903       1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.0447       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.7706       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.1088       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.4346       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8928       1.0000         .10000E-03   10000.    
    25 'Prefactor '    6.2436       1.0000         .10000E-03   10000.    
    26 'norm      '    3.2007       1.0000         .10000E-03   10000.    
    27 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .93278       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .88568       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=   4563.401     FROM MIGRAD    STATUS=CONVERGED    795 CALLS     4111 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.5359        .33144E-07** at limit **
   2  norm          .10000E-03    6.6560        .27789E-05** at limit **
   3  norm          18.576        16.512       -.10557E-05    .15581E-05
   4  Prefactor     .10000E-03    8.5381       -.94256E-06** at limit **
   5  Prefactor     .19474        2.1322        .11770E-05   -.16428E-02
   6  Prefactor     .10000E-03    53.278       -.26169E-04** at limit **
   7  Prefactor     .10000E-03    19.348       -.30423E-05** at limit **
   8  norm          3.1404        3.5662        .67066E-07   -.55157E-03
   9  Prefactor     15.080        18.102        .11204E-05    .21046E-04
  10  Prefactor     .10000E-03    3.5514        .38157E-07** at limit **
  11  norm          4.1915        1.5573       -.17161E-07   -.16257E-03
  12  Prefactor     .10000E-03    20.332       -.31463E-05** at limit **
  13  Prefactor     .10000E-03    6.9012       -.27614E-05** at limit **
  14  Prefactor     .10000E-03    1.3901       -.25181E-07** at limit **
  15  Prefactor     15.232        28.697       -.54515E-05   -.24494E-04
  16  Prefactor     .10000E-03    23.053        .33276E-05** at limit **
  17  norm          2.0896        1.5121        .28365E-07   -.89264E-04
  18  Prefactor     7.0428        5.2495       -.10122E-06    .12475E-04
  19  Prefactor     .10000E-03    22.082        .14382E-06** at limit **
  20  Prefactor     .10000E-03    2.4129       -.10414E-06** at limit **
  21  norm          2.7705        2.8968        .74157E-06    .23345E-05
  22  Prefactor     3.1027        11.659       -.99098E-06   -.17147E-03
  23  Prefactor     6.4340        3.8982       -.11653E-05   -.79065E-04
  24  Prefactor     3.8919        2.8224        .25782E-06   -.10380E-03
  25  Prefactor     6.2414        6.5180        .29575E-07   -.68455E-05
  26  norm          3.2003        .59404       -.12762E-07    .16056E-03
  27  norm          .10000E-03    5.5833       -.34086E-06** at limit **
  28  Prefactor     .10000E-03    8.5736        .39505E-06** at limit **
  29  Prefactor     .10000E-03    45.250        .24540E-04** at limit **
  30  Normalizat    .93304        .22244        .96742E-06   -.11519E-03
  31  Prefactor     .88563        .23852       -.18262E-06   -.54931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 18.5762
  Prefactor  = 0.0001
  Prefactor  = 0.194739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.14036
  Prefactor  = 15.0805
  Prefactor  = 0.0001
  norm       = 4.19146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.2316
  Prefactor  = 0.0001
  norm       = 2.08957
  Prefactor  = 7.04282
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.77048
  Prefactor  = 3.10273
  Prefactor  = 6.43398
  Prefactor  = 3.89194
  Prefactor  = 6.24139
  norm       = 3.20031
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.933042
  Prefactor  = 0.885628
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.401     FROM HESSE     STATUS=OK           626 CALLS     4737 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.5822        .10502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    6.6613        .17017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          18.576        16.542        .92910E-04   -1.4846    
   4  Prefactor     .10000E-03    8.5496        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .19474        14.859        .17367E-02   -1.5620    
   6  Prefactor     .10000E-03    53.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1404        3.5733        .12272E-03   -1.5354    
   9  Prefactor     15.080        18.075        .10315E-03   -1.4931    
  10  Prefactor     .10000E-03    9.3201        .24528E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.1915        1.5573        .49727E-04   -1.5298    
  12  Prefactor     .10000E-03    20.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.9172        .17329E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.2243        .15381E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.232        28.714        .10261E-03   -1.4927    
  16  Prefactor     .10000E-03    23.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.0896        1.5082        .67426E-04   -1.5419    
  18  Prefactor     7.0428        5.2471        .12836E-03   -1.5177    
  19  Prefactor     .10000E-03    22.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.4323        .10240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.7705        2.9008        .10739E-03   -1.5375    
  22  Prefactor     3.1027        11.707        .22998E-03   -1.5356    
  23  Prefactor     6.4340        3.9008        .93175E-04   -1.5201    
  24  Prefactor     3.8919        2.8153        .90838E-04   -1.5313    
  25  Prefactor     6.2414        6.5135        .16065E-03   -1.5208    
  26  norm          3.2003        .59572        .21093E-04   -1.5350    
  27  norm          .10000E-03    5.7173        .31129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    8.6188        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    45.114        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .93304        .26099        .26570E-03   -.95309    
  31  Prefactor     .88563        .28027        .30645E-03   -.96645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.42392e-08
Minuit parameter uncertainties:
  1  9.5689e-07
  2  8.73558e-06
  3  16.5461
  4  2.27443e-07
  5  3.40208
  6  0.000125093
  7  5.14307e-05
  8  3.57356
  9  18.0814
  10  5.21302e-05
  11  1.55727
  12  3.84605e-06
  13  6.05956e-07
  14  3.92279e-07
  15  28.7401
  16  2.69106e-07
  17  1.50821
  18  5.24746
  19  3.97008e-05
  20  8.45923e-08
  21  2.9009
  22  11.7158
  23  3.90098
  24  2.81535
  25  6.51421
  26  0.59572
  27  4.35548e-06
  28  3.51668e-06
  29  1.27911e-05
  30  0.261349
  31  0.280725
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.090e+00  1.508e+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:  8.856e-01  2.807e-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.330e-01  2.613e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 5.67e-08 +/- 4.09e-08
Energy Flux (Fixed Index): 2.54e-05 +/- 1.83e-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) = 4563.39998304
delta logL = 0.00110263718034

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4563.39995697
delta logL = 0.00112870719749

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0913       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1318       1.0000          .0000       5.0000    
     3 'Normalizat'    .93149       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88680       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=   4563.400     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      220 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0937        56.167        .71366E-02    .20071E-03
   2  alpha         2.1330        2.7211        .37262        .24504E-05
   3  Normalizat    .93142        .17968        .45303E-01    .99791E-05
   4  Prefactor     .88681        .29039        .69228E-01    .55651E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.09368
  alpha      = 2.13303
  Normalizat = 0.93142
  Prefactor  = 0.886809
 **********
 **   18 **HESSE 
 **********

 FCN=   4563.400     FROM HESSE     STATUS=OK            33 CALLS      253 TOTAL
                     EDM=   .28E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0937        1.4993        .67232E-04   -1.5419    
   2  alpha         2.1330        .61916        .13646E-01   -.14732    
   3  Normalizat    .93142        .24824        .26590E-03   -.95365    
   4  Prefactor     .88681        .27891        .30627E-03   -.96604    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75847e-12
Minuit parameter uncertainties:
  1  1.49931
  2  0.625823
  3  0.248546
  4  0.279355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/233340': 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) = 4563.39995392
delta logL = 0.00113176166178

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  2.094e+00  1.499e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.133e+00  6.258e-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:  8.868e-01  2.794e-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.314e-01  2.485e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.57
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.13 +/- 0.63
Photon Flux (Free Index): 5.82e-08 +/- 5.01e-08
Energy Flux (Free Index): 2.49e-05 +/- 2.10e-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/233340/cmap_HighResolution_411955201_412214401_4FGL_J1159.5+2914_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.67e-08', energy_flux2='2.49e-05', photon_flux_error='4.09e-08', dlogl='1.13e-03', energy_flux='2.54e-05', photon_flux2='5.82e-08', job_status='DONE', time_completed='2021-09-04 19:29:43.457510', photon_index_error2='0.63', photon_index2='2.13', ts='4.61', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='0.93', time_epoch_completed='1630808983.46', return_code='0', job_id='233340', GAL2='0.89', EG2='0.93', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='5.01e-08', ts2='4.57', photon_index='2.10' WHERE bin_id='666' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:29:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 233340: <4FGL_J1159.5+2914_daily_bin666> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin666> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sat Sep  4 19:15:51 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:15:53 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:15:53 2021
Terminated at Sat Sep  4 19:29:44 2021
Results reported at Sat Sep  4 19:29:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin666 179.884 29.2448 411955201 412214401 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 :                                   687.41 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   830 sec.
    Turnaround time :                            833 sec.

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

