/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 168 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 = 7428
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin429
RA = 179.843, Dec = -21.7038
tmin = 350524801, tmax = 350784001
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='223229', job_status='RUN', time_executed='2021-09-04 18:48:38.735075', time_epoch_executed='1630806518.74' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223229

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223229/ft1_4FGL_J1159.3-2142_daily_bin429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223229/ft1_4FGL_J1159.3-2142_daily_bin429.fits outfile=/scratch/kocevski/223229/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin429.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=350524801.0 tmax=350784001.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 3.37
user 3.16
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.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/223229/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin429.fits evtable="EVENTS" outfile="/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.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.55
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits" evtable="EVENTS" scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits sctable="SC_DATA" outfile=/scratch/kocevski/223229/ltcube_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.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/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits
.....................!
real 12.87
user 12.50
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits sctable="SC_DATA" expcube=/scratch/kocevski/223229/ltcube_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits outfile=/scratch/kocevski/223229/expmap_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.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/223229/ltcube_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits
.....................!
real 190.40
user 185.22
sys 4.80

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 185 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.3-2142 @ 179.843 -21.7038

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits outfile=/scratch/kocevski/223229/cmap_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.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.843 yref=-21.7038 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits outfile=/scratch/kocevski/223229/cmap_HighResolution_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.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.843 yref=-21.7038 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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits evtable="EVENTS" scfile=/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223229/Model_4FGL_J1159.3-2142_daily_bin429.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/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits.....................!
real 55.11
user 53.78
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits', '/scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits', expMap='/scratch/kocevski/223229/expmap_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits', expCube='/scratch/kocevski/223229/ltcube_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223229/Model_4FGL_J1159.3-2142_daily_bin429.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.3-2142'

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.158e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/223229/ft1_filtered_4FGL_J1159.3-2142_daily_bin429.fits
Spacecraft file(s): /scratch/kocevski/223229/ft2_4FGL_J1159.3-2142_daily_bin429.fits
Exposure map: /scratch/kocevski/223229/expmap_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits
Exposure cube: /scratch/kocevski/223229/ltcube_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223229/Model_4FGL_J1159.3-2142_daily_bin429.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) = 6173.01776079

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.136       1.0000         .10000E-03   10000.    
     2 'Prefactor '    37.227       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.5895       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7981       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.9384       1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.583       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.2289       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.321       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    20.501       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0387       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.9665       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.6364       1.0000         .10000E-03   10000.    
    24 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0629       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96408       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6173.017     FROM MIGRAD    STATUS=CONVERGED    598 CALLS     3021 TOTAL
                     EDM=   .22E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.136        39.930         .0000       -.10881E-03
   2  Prefactor     37.226        69.635         .0000        .77663E-03
   3  Prefactor     .10001E-03    17.229         .0000    ** at limit **
   4  Prefactor     .10000E-03    5.4449         .0000    ** at limit **
   5  Prefactor     .10000E-03    13.152         .0000    ** at limit **
   6  norm          1.5893        1.1233         .0000        .46721E-03
   7  Prefactor     .10000E-03    3.0834         .0000    ** at limit **
   8  Prefactor     .10000E-03    11.341         .0000    ** at limit **
   9  Prefactor     3.7974        6.3535         .0000        .52960E-03
  10  Prefactor     .10000E-03    4.8856         .0000    ** at limit **
  11  Prefactor     .10001E-03    12.036         .0000    ** at limit **
  12  norm          5.9394        21.051         .0000        .86477E-04
  13  Prefactor     22.575        17.680         .0000       -.13019E-02
  14  norm          .10000E-03    2.1912         .0000    ** at limit **
  15  Prefactor     2.2314        7.1263         .0000        .15249E-01
  16  Prefactor     .10012E-03    86.770         .0000    ** at limit **
  17  Prefactor     17.314        39.872         .0000        .26203E-02
  18  Prefactor     .10000E-03    7.0507         .0000    ** at limit **
  19  Prefactor     .10000E-03    13.953         .0000    ** at limit **
  20  Prefactor     20.501        21.350         .0000       -.73491E-04
  21  Prefactor     9.0390        6.8642         .0000        .11704E-03
  22  Prefactor     3.9665        2.3189         .0000        .20240E-03
  23  Prefactor     6.6364        8.6564         .0000        .53833E-04
  24  norm          .10000E-03    .51953         .0000    ** at limit **
  25  Normalizat    1.0630        .23659         .0000        .19133E-03
  26  Prefactor     .96400        .12289         .0000        .41401E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1359
  Prefactor  = 37.2261
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 1.58934
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 3.79738
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 5.93936
  Prefactor  = 22.5749
  norm       = 0.0001
  Prefactor  = 2.23137
  Prefactor  = 0.000100116
  Prefactor  = 17.314
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 20.5008
  Prefactor  = 9.03903
  Prefactor  = 3.9665
  Prefactor  = 6.63645
  norm       = 0.0001
  Normalizat = 1.06301
  Prefactor  = 0.964001
 **********
 **   18 **HESSE 
 **********

 FCN=   6173.017     FROM HESSE     STATUS=OK           448 CALLS     3469 TOTAL
                     EDM=   .75E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.136        39.925        .62500E-04   -1.4424    
   2  Prefactor     37.226        69.627        .65687E-04   -1.4487    
   3  Prefactor     .10001E-03    17.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.4577        .17904E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    13.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.5893        1.1188        .67274E-04   -1.5456    
   7  Prefactor     .10000E-03    3.0907        .13472E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7974        6.3342        .20712E-03   -1.5318    
  10  Prefactor     .10000E-03    4.8907        .16961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    12.038        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.9394        21.060        .16478E-03   -1.5221    
  13  Prefactor     22.575        17.649        .84289E-04   -1.4757    
  14  norm          .10000E-03    2.1965        .11337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.2314        6.9615        .13769E-02   -1.5409    
  16  Prefactor     .10012E-03    87.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.314        39.174        .96236E-04   -1.4876    
  18  Prefactor     .10000E-03    7.0521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    13.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     20.501        21.364        .88461E-04   -1.4802    
  21  Prefactor     9.0390        6.8812        .13331E-03   -1.5107    
  22  Prefactor     3.9665        2.3238        .85081E-04   -1.5310    
  23  Prefactor     6.6364        8.6532        .15577E-03   -1.5193    
  24  norm          .10000E-03    .53040        .55260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0630        .27968        .33504E-03   -.90949    
  26  Prefactor     .96400        .14610        .18526E-03   -.93939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.50438e-08
Minuit parameter uncertainties:
  1  39.9512
  2  69.7798
  3  0.000840895
  4  4.163e-05
  5  0.000371938
  6  1.1188
  7  4.48222e-05
  8  0.000467527
  9  6.33533
  10  2.99692e-05
  11  0.000508491
  12  21.0866
  13  17.653
  14  6.86525e-06
  15  6.96406
  16  0.00635249
  17  39.2326
  18  5.27463e-05
  19  0.000387158
  20  21.3723
  21  6.88181
  22  2.32383
  23  8.65483
  24  1.02646e-07
  25  0.280068
  26  0.146157
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  6.865e-06  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.640e-01  1.462e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.063e+00  2.801e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 8.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.00e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/223229/likelihoodResults_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6173.0191941
delta logL = -0.00216654227643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6173.01702758
delta logL = -2.70802047453e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3749       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0630       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96404       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6173.017     FROM MIGRAD    STATUS=FAILED        92 CALLS      231 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    113.89        .11366E-01** at limit **
   2  alpha         2.0783        3.5351        .16487       -.73990E-07
   3  Normalizat    1.0630        .44686E-01    .33504E-03    .39803E-04
   4  Prefactor     .96400        .23805E-01    .18526E-03    .85545E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6173.017     FROM SIMPLEX   STATUS=UNCHANGED    189 CALLS      420 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    113.89        .27030E-03** at limit **
   2  alpha         2.0783        3.5351        .27278E-05   -.73990E-07
   3  Normalizat    1.0630        .44686E-01    .10368E-06    .39803E-04
   4  Prefactor     .96400        .23805E-01    .23686E-07    .85545E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6173.017     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      448 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3119        .11622E-02** at limit **
   2  alpha         2.0804        2.8425        .65947E-02    .55165E-07
   3  Normalizat    1.0630        .27163        .13402E-04    .40719E-04
   4  Prefactor     .96400        .14484        .37052E-04    .87202E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.0804
  Normalizat = 1.06301
  Prefactor  = 0.964
 **********
 **   18 **HESSE 
 **********

 FCN=   6173.017     FROM HESSE     STATUS=OK            23 CALLS      471 TOTAL
                     EDM=   .45E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3084        .23245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0804        2.6196        .13189E-02   -.16864    
   3  Normalizat    1.0630        .27168        .26803E-05   -.90949    
   4  Prefactor     .96400        .14487        .74103E-05   -.93939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46086e-11
Minuit parameter uncertainties:
  1  2.06088e-05
  2  201.548
  3  0.272032
  4  0.144928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223229': 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) = 6173.01702645
delta logL = 1.10249766294e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  2.061e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.080e+00  2.015e+02  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.640e-01  1.449e-01  0.000e+00  1.000e+01 ( 1.000e+00)
591        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
592        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
589   Normalization:  1.063e+00  2.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.843 -21.704

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/223229/cmap_HighResolution_350524801_350784001_4FGL_J1159.3-2142_daily_bin429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.00e-05', job_status='DONE', photon_flux_upper_limit='8.68e-08', time_completed='2021-09-04 19:01:03.529329', job_id='223229', GAL2='0.96', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1630807263.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='429' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:01:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 223229: <4FGL_J1159.3-2142_daily_bin429> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin429> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:45:38 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:45:40 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:45:40 2021
Terminated at Sat Sep  4 19:01:03 2021
Results reported at Sat Sep  4 19:01:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin429 179.843 -21.7038 350524801 350784001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.3-2142 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   743.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

