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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin75
RA = 179.884, Dec = 29.2448
tmin = 258768001, tmax = 259027201
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='230446', job_status='RUN', time_executed='2021-09-04 19:10:27.294623', time_epoch_executed='1630807827.29' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230446

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230446/ft1_4FGL_J1159.5+2914_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230446/ft1_4FGL_J1159.5+2914_daily_bin75.fits outfile=/scratch/kocevski/230446/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin75.fits ra=179.884 dec=29.2448 rad=12.0 tmin=258768001.0 tmax=259027201.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.11
user 0.93
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230446/ft1_filtered_4FGL_J1159.5+2914_daily_bin75.fits" evtable="EVENTS" scfile=/scratch/kocevski/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits sctable="SC_DATA" outfile=/scratch/kocevski/230446/ltcube_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.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/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits
.....................!
real 8.88
user 8.52
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230446/ft1_filtered_4FGL_J1159.5+2914_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/230446/ltcube_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.fits outfile=/scratch/kocevski/230446/expmap_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.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/230446/ltcube_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.fits
.....................!
real 190.47
user 185.53
sys 4.51

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/230446/ft1_filtered_4FGL_J1159.5+2914_daily_bin75.fits scfile=/scratch/kocevski/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits outfile=/scratch/kocevski/230446/cmap_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230446/ft1_filtered_4FGL_J1159.5+2914_daily_bin75.fits scfile=/scratch/kocevski/230446/ft2_4FGL_J1159.5+2914_daily_bin75.fits outfile=/scratch/kocevski/230446/cmap_HighResolution_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.061       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .60534E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .50446       1.0000         .10000E-03   10000.    
     9 'Prefactor '    52.247       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14968E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .76032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.905       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70137       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    176.31       1.0000         .10000E-03   10000.    
    17 'norm      '    6.2006       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6157       1.0000         .10000E-03   10000.    
    21 'norm      '    6.8161       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.8327       1.0000         .10000E-03   10000.    
    25 'Prefactor '    1.1495       1.0000         .10000E-03   10000.    
    26 'norm      '    .56408       1.0000         .10000E-03   10000.    
    27 'norm      '    .17770E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .15768E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .90207       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .79306       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=   3277.705     FROM MIGRAD    STATUS=CONVERGED    833 CALLS     4213 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.060        5.7961        .32688E-07    .37161E-03
   2  norm          .10000E-03    10.956       -.41928E-06** at limit **
   3  norm          .10000E-03    5.1023        .29730E-07** at limit **
   4  Prefactor     .10000E-03    7.4004       -.40189E-08** at limit **
   5  Prefactor     .10000E-03    1.4106       -.12406E-07** at limit **
   6  Prefactor     .10000E-03    21.565       -.44056E-05** at limit **
   7  Prefactor     .10001E-03    124.92        .18678E-04** at limit **
   8  norm          .50383        1.8822       -.44868E-06    .23422E-03
   9  Prefactor     52.189        29.438        .23233E-05    .48026E-03
  10  Prefactor     .10006E-03    7.4236       -.16089E-05** at limit **
  11  norm          .75999        1.3759       -.22559E-06   -.19563E-03
  12  Prefactor     17.915        28.721       -.29170E-07    .50360E-04
  13  Prefactor     .10000E-03    4.8705        .51992E-08** at limit **
  14  Prefactor     .70035        2.1272       -.75356E-06    .21376E-03
  15  Prefactor     .10000E-03    33.154        .29671E-05** at limit **
  16  Prefactor     176.31        102.34        .49328E-06    .15044E-04
  17  norm          6.2006        2.2770        .95544E-08    .80472E-04
  18  Prefactor     .10000E-03    2.7549       -.56172E-08** at limit **
  19  Prefactor     .10000E-03    29.862        .66427E-05** at limit **
  20  Prefactor     6.6158        3.9592       -.11253E-06   -.13803E-04
  21  norm          6.8161        4.2950        .12694E-06    .12235E-03
  22  Prefactor     .10000E-03    2.3090       -.12538E-07** at limit **
  23  Prefactor     .10000E-03    1.3315       -.30783E-07** at limit **
  24  Prefactor     3.8336        3.0291       -.13339E-06   -.16437E-03
  25  Prefactor     1.1513        7.8382       -.22989E-05    .47146E-04
  26  norm          .56414        .34371       -.26381E-08    .24899E-03
  27  norm          .10018E-03    7.5587        .47330E-05** at limit **
  28  Prefactor     .10000E-03    5.0604       -.29152E-06** at limit **
  29  Prefactor     .10001E-03    170.95        .12687E-04** at limit **
  30  Normalizat    .90203        .22702        .17233E-05    .23401E-04
  31  Prefactor     .79316        .24126        .63092E-06    .47957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.0603
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  norm       = 0.503832
  Prefactor  = 52.1891
  Prefactor  = 0.00010006
  norm       = 0.759993
  Prefactor  = 17.9154
  Prefactor  = 0.0001
  Prefactor  = 0.700353
  Prefactor  = 0.0001
  Prefactor  = 176.307
  norm       = 6.20055
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 6.61583
  norm       = 6.8161
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.83359
  Prefactor  = 1.1513
  norm       = 0.564144
  norm       = 0.000100184
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Normalizat = 0.902028
  Prefactor  = 0.793163
 **********
 **   18 **HESSE 
 **********

 FCN=   3277.705     FROM HESSE     STATUS=OK           624 CALLS     4837 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.060        5.7966        .50632E-03   -1.5074    
   2  norm          .10000E-03    10.981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    5.1134        .12630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.4067        .15212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    1.4240        .66351E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    21.809        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    138.95        .57947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .50383        1.9001        .14660E-03   -1.5566    
   9  Prefactor     52.189        26.915        .55487E-04   -1.4262    
  10  Prefactor     .10006E-03    16.157        .28514E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .75999        1.2386        .83102E-03   -1.5534    
  12  Prefactor     17.915        28.279        .94652E-04   -1.4861    
  13  Prefactor     .10000E-03    4.8768        .12340E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70035        2.0565        .13083E-03   -1.5541    
  15  Prefactor     .10000E-03    33.304        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     176.31        101.39        .15197E-03   -1.3044    
  17  norm          6.2006        2.2781        .48940E-04   -1.5210    
  18  Prefactor     .10000E-03    2.7815        .92732E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    30.190        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6158        3.9571        .85163E-04   -1.5193    
  21  norm          6.8161        4.2856        .88877E-04   -1.5186    
  22  Prefactor     .10000E-03    2.3098        .84965E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    1.3344        .64379E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.8336        3.0158        .82834E-04   -1.5316    
  25  Prefactor     1.1513        7.4800        .30011E-03   -1.5493    
  26  norm          .56414        .33997        .24577E-04   -1.5558    
  27  norm          .10018E-03    36.746        .21267E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    5.0707        .12580E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10001E-03    173.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .90203        .26501        .23710E-03   -.96389    
  31  Prefactor     .79316        .28119        .28379E-03   -.99981    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.23465e-09
Minuit parameter uncertainties:
  1  5.79688
  2  3.98947e-05
  3  4.62232e-06
  4  4.91898e-06
  5  6.10432e-06
  6  0.000356919
  7  0.00225886
  8  1.90028
  9  26.9212
  10  0.00196169
  11  1.23865
  12  28.3003
  13  3.78388e-06
  14  2.05668
  15  0.000107635
  16  101.49
  17  2.27809
  18  5.8857e-06
  19  0.000489704
  20  3.95728
  21  4.28579
  22  3.13091e-06
  23  8.65072e-06
  24  3.01587
  25  5.86997
  26  0.339966
  27  0.00520474
  28  1.75761e-05
  29  0.00199068
  30  0.265397
  31  0.281704
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.201e+00  2.278e+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:  7.932e-01  2.817e-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.020e-01  2.654e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 24.25
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.68e-07 +/- 6.18e-08
Energy Flux (Fixed Index): 7.54e-05 +/- 2.77e-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) = 3277.27875295
delta logL = 0.426138503275

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3277.23781594
delta logL = 0.467075509805

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0293       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4781       1.0000          .0000       5.0000    
     3 'Normalizat'    .83271       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84124       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=   3277.238     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      201 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0296        12.452        .40880E-02    .12631E-04
   2  alpha         2.4783        1.9348        .17137        .18749E-04
   3  Normalizat    .83265        .28971        .44036E-01   -.83930E-05
   4  Prefactor     .84152        .29968        .44252E-01   -.78390E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.02958
  alpha      = 2.47833
  Normalizat = 0.832652
  Prefactor  = 0.841523
 **********
 **   18 **HESSE 
 **********

 FCN=   3277.238     FROM HESSE     STATUS=OK            33 CALLS      234 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0296        2.1436        .43365E-04   -1.5217    
   2  alpha         2.4783        .39197        .73239E-02   -.86665E-02
   3  Normalizat    .83265        .25735        .24482E-03   -.98869    
   4  Prefactor     .84152        .28294        .27575E-03   -.98215    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.51334e-10
Minuit parameter uncertainties:
  1  2.14367
  2  0.39359
  3  0.257726
  4  0.283434
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230446': 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) = 3277.2378141
delta logL = 0.467077353166

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  6.030e+00  2.144e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.478e+00  3.936e-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.415e-01  2.834e-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.327e-01  2.577e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 25.13
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.48 +/- 0.39
Photon Flux (Free Index): 2.26e-07 +/- 9.18e-08
Energy Flux (Free Index): 6.46e-05 +/- 2.25e-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/230446/cmap_HighResolution_258768001_259027201_4FGL_J1159.5+2914_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.68e-07', energy_flux2='6.46e-05', photon_flux_error='6.18e-08', dlogl='4.67e-01', energy_flux='7.54e-05', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-09-04 19:19:52.520902', photon_index_error2='0.39', photon_index2='2.48', ts='24.25', fit_tolerance='1e-08', GAL='0.79', photon_index_error='0.00', energy_flux_error2='2.25e-05', EG='0.90', time_epoch_completed='1630808392.52', return_code='0', job_id='230446', GAL2='0.84', EG2='0.83', return_code2='0', energy_flux_error='2.77e-05', photon_flux_error2='9.18e-08', ts2='25.13', photon_index='2.10' WHERE bin_id='75' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:19:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 230446: <4FGL_J1159.5+2914_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin75 179.884 29.2448 258768001 259027201 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 :                                   565.38 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             238.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            809 sec.

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

