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


Performing analysis on: 4FGL_J1159.5+2914_daily_bin57
RA = 179.884, Dec = 29.2448
tmin = 254102401, tmax = 254361601
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='230419', job_status='RUN', time_executed='2021-09-04 19:10:01.045288', time_epoch_executed='1630807801.05' WHERE source_name='4FGL J1159.5+2914' and cadence='daily' and bin_id='57'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230419

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230419/ft1_4FGL_J1159.5+2914_daily_bin57.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230419/ft2_4FGL_J1159.5+2914_daily_bin57.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230419/ft1_4FGL_J1159.5+2914_daily_bin57.fits outfile=/scratch/kocevski/230419/ft1_filteredMKT_4FGL_J1159.5+2914_daily_bin57.fits ra=179.884 dec=29.2448 rad=12.0 tmin=254102401.0 tmax=254361601.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 2.03
user 1.81
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230419/ft1_filtered_4FGL_J1159.5+2914_daily_bin57.fits evtable="EVENTS" scfile=/scratch/kocevski/230419/ft2_4FGL_J1159.5+2914_daily_bin57.fits sctable="SC_DATA" expcube=/scratch/kocevski/230419/ltcube_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.fits outfile=/scratch/kocevski/230419/expmap_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.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/230419/ltcube_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.fits
.....................!
real 190.40
user 184.81
sys 5.29

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/230419/ft1_filtered_4FGL_J1159.5+2914_daily_bin57.fits scfile=/scratch/kocevski/230419/ft2_4FGL_J1159.5+2914_daily_bin57.fits outfile=/scratch/kocevski/230419/cmap_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.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.34
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230419/ft1_filtered_4FGL_J1159.5+2914_daily_bin57.fits scfile=/scratch/kocevski/230419/ft2_4FGL_J1159.5+2914_daily_bin57.fits outfile=/scratch/kocevski/230419/cmap_HighResolution_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.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.36
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.659       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.102       1.0000         .10000E-03   10000.    
     8 'norm      '    .96025       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.8341       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.4369       1.0000         .10000E-03   10000.    
    11 'norm      '    .49006E-01   1.0000         .10000E-03   10000.    
    12 'Prefactor '    80.092       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.3805       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10945E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    3.7723       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10787E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .48530E-01   1.0000         .10000E-03   10000.    
    21 'norm      '    3.0263       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.2471       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.7018       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.3651       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.2208       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .74621       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=   4381.339     FROM MIGRAD    STATUS=CONVERGED    826 CALLS     3654 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.0744        .90712E-02** at limit **
   2  norm          27.662        21.758        .19044E-02    .14167E-03
   3  norm          .10000E-03    3.8846        .90712E-02** at limit **
   4  Prefactor     .10000E-03    6.9733        .90712E-02** at limit **
   5  Prefactor     .10000E-03    .97909        .90712E-02** at limit **
   6  Prefactor     .10000E-03    17.131        .90712E-02** at limit **
   7  Prefactor     21.101        26.529        .21798E-02   -.11981E-03
   8  norm          .96086        2.5653        .34995E-01    .73568E-03
   9  Prefactor     7.8267        17.098        .35815E-02    .15848E-03
  10  Prefactor     5.4370        5.3696        .43083E-02    .88482E-04
  11  norm          .49693E-01    .80385        .36376E-01    .54609E-03
  12  Prefactor     80.094        34.665        .11219E-02   -.97367E-03
  13  Prefactor     7.3828        11.110        .36908E-02    .33517E-03
  14  Prefactor     .10000E-03    2.3589        .30326E-01** at limit **
  15  Prefactor     .10012E-03    39.762        .90712E-02** at limit **
  16  Prefactor     .10009E-03    43.332        .90712E-02** at limit **
  17  norm          3.7718        1.7853        .51964E-02    .76794E-04
  18  Prefactor     .10000E-03    2.7417        .90712E-02** at limit **
  19  Prefactor     .10000E-03    113.23        .90712E-02** at limit **
  20  Prefactor     .51971E-01    1.8563        .60098E-01    .18297E-03
  21  norm          3.0257        3.2494        .58318E-02   -.33083E-04
  22  Prefactor     .10000E-03    3.7254        .90712E-02** at limit **
  23  Prefactor     1.2476        2.4270        .10021E-01    .42162E-03
  24  Prefactor     7.7014        3.3769        .36124E-02    .35720E-03
  25  Prefactor     .10000E-03    3.5316        .90712E-02** at limit **
  26  norm          .10000E-03    .88021E-01    .90712E-02** at limit **
  27  norm          3.3656        3.8363        .55149E-02   -.39911E-03
  28  Prefactor     .10000E-03    5.8283        .90712E-02** at limit **
  29  Prefactor     .10000E-03    31.659        .90712E-02** at limit **
  30  Normalizat    1.2209        .21327        .51035E-01   -.69855E-05
  31  Prefactor     .74595        .22883        .71302E-01    .12630E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 27.6624
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1013
  norm       = 0.960858
  Prefactor  = 7.82668
  Prefactor  = 5.43698
  norm       = 0.049693
  Prefactor  = 80.0938
  Prefactor  = 7.38282
  Prefactor  = 0.0001
  Prefactor  = 0.00010012
  Prefactor  = 0.000100093
  norm       = 3.77176
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.051971
  norm       = 3.02565
  Prefactor  = 0.0001
  Prefactor  = 1.2476
  Prefactor  = 7.70143
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.36563
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Normalizat = 1.22086
  Prefactor  = 0.745951
 **********
 **   18 **HESSE 
 **********

 FCN=   4381.339     FROM HESSE     STATUS=OK           628 CALLS     4282 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.0760        .67004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.662        21.766        .76175E-04   -1.4656    
   3  norm          .10000E-03    3.8926        .12741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.9962        .17072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    .98377        .63899E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.134        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.101        26.414        .87193E-04   -1.4789    
   8  norm          .96086        2.3107        .16282E-02   -1.5512    
   9  Prefactor     7.8267        16.998        .14326E-03   -1.5148    
  10  Prefactor     5.4370        5.3576        .14598E-03   -1.5242    
  11  norm          .49693E-01    7.3686        .11152E-02   -1.5663    
  12  Prefactor     80.094        33.038        .44877E-04   -1.3916    
  13  Prefactor     7.3828        11.099        .14763E-03   -1.5164    
  14  Prefactor     .10000E-03    4.3830        .18466E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10012E-03    39.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10009E-03    43.360        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          3.7718        1.7830        .57559E-04   -1.5320    
  18  Prefactor     .10000E-03    2.7851        .10688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    115.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .51971E-01    42.617        .17271E-02   -1.5662    
  21  norm          3.0257        3.2449        .10867E-03   -1.5360    
  22  Prefactor     .10000E-03    3.7325        .12476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     1.2476        2.3736        .12686E-03   -1.5485    
  24  Prefactor     7.7014        3.3768        .75569E-04   -1.5153    
  25  Prefactor     .10000E-03    3.5477        .12143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    .10613        .38151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.3656        3.8264        .13380E-03   -1.5341    
  28  Prefactor     .10000E-03    5.8485        .15605E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    31.667        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.2209        .25548        .22563E-03   -.85961    
  31  Prefactor     .74595        .27112        .31554E-03   -1.0175    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69174e-08
Minuit parameter uncertainties:
  1  3.01442e-07
  2  21.772
  3  2.18027e-06
  4  3.48025e-06
  5  6.56662e-08
  6  1.03011e-05
  7  26.429
  8  2.31088
  9  17.0086
  10  5.35803
  11  1.20917
  12  33.046
  13  11.1016
  14  7.83585e-07
  15  0.00437591
  16  0.00402145
  17  1.78303
  18  1.03418e-06
  19  0.000876398
  20  2.97574
  21  3.24506
  22  5.47473e-06
  23  2.37377
  24  3.37684
  25  1.21013e-06
  26  9.60264e-08
  27  3.82665
  28  2.45937e-06
  29  0.000660316
  30  0.255742
  31  0.271605
Done.

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

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.772e+00  1.783e+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.460e-01  2.716e-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.221e+00  2.557e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.92
Ra Dec: 179.884 29.245
Photon Index (Fixed Index): 2.10 +/- 0.00
Photon Flux (Fixed Index): 1.02e-07 +/- 4.84e-08
Energy Flux (Fixed Index): 4.59e-05 +/- 2.17e-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) = 4380.7261045
delta logL = 0.61329814063

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4380.72283482
delta logL = 0.616567821141

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5686       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6082       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1650       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78604       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=   4380.723     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      267 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5679        27.959        .53485E-02    .11305E-03
   2  alpha         2.6080        3.6566        .23398        .23173E-04
   3  Normalizat    1.1649        .15532        .51942E-01    .32336E-05
   4  Prefactor     .78614        .16864        .69575E-01    .14424E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.56793
  alpha      = 2.60797
  Normalizat = 1.16492
  Prefactor  = 0.786144
 **********
 **   18 **HESSE 
 **********

 FCN=   4380.723     FROM HESSE     STATUS=OK            33 CALLS      300 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5679        1.7101        .49476E-04   -1.5330    
   2  alpha         2.6080        .47612        .97968E-02    .43203E-01
   3  Normalizat    1.1649        .24540        .22965E-03   -.87694    
   4  Prefactor     .78614        .27107        .30785E-03   -1.0024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19849e-10
Minuit parameter uncertainties:
  1  1.71011
  2  0.479056
  3  0.245644
  4  0.271528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230419': 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) = 4380.72283441
delta logL = 0.616568232482

Extracting fit parameters...

4FGL J1159.5+2914
   Spectrum: LogParabola
302         norm:  3.568e+00  1.710e+00  1.000e-04  1.000e+04 ( 1.000e-11)
303        alpha:  2.608e+00  4.791e-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:  7.861e-01  2.715e-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.165e+00  2.456e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.18
Ra Dec: 179.884 29.245
Photon Index (Free Index): 2.61 +/- 0.48
Photon Flux (Free Index): 1.52e-07 +/- 7.40e-08
Energy Flux (Free Index): 3.90e-05 +/- 1.69e-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/230419/cmap_HighResolution_254102401_254361601_4FGL_J1159.5+2914_daily_bin57.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.02e-07', energy_flux2='3.90e-05', photon_flux_error='4.84e-08', dlogl='6.17e-01', energy_flux='4.59e-05', photon_flux2='1.52e-07', job_status='DONE', time_completed='2021-09-04 19:20:34.233966', photon_index_error2='0.48', photon_index2='2.61', ts='10.92', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.69e-05', EG='1.22', time_epoch_completed='1630808434.23', return_code='0', job_id='230419', GAL2='0.79', EG2='1.16', return_code2='0', energy_flux_error='2.17e-05', photon_flux_error2='7.40e-08', ts2='12.18', photon_index='2.10' WHERE bin_id='57' AND source_name='4FGL J1159.5+2914' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 230419: <4FGL_J1159.5+2914_daily_bin57> in cluster <slac> Done

Job <4FGL_J1159.5+2914_daily_bin57> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:21 2021
Job was executed on host(s) <bullet0275>, 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:20:34 2021
Results reported at Sat Sep  4 19:20:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.5+2914_daily_bin57 179.884 29.2448 254102401 254361601 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            853 sec.

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

