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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1420
RA = 179.843, Dec = -21.7038
tmin = 607392001, tmax = 607651201
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='229937', job_status='RUN', time_executed='2021-09-04 19:06:05.764872', time_epoch_executed='1630807565.76' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1420'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229937

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229937/ft1_4FGL_J1159.3-2142_daily_bin1420.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229937/ft1_4FGL_J1159.3-2142_daily_bin1420.fits outfile=/scratch/kocevski/229937/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1420.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=607392001.0 tmax=607651201.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.42
user 5.06
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.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/229937/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1420.fits evtable="EVENTS" outfile="/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits" evtable="EVENTS" scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits sctable="SC_DATA" outfile=/scratch/kocevski/229937/ltcube_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.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/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits
.....................!
real 11.62
user 11.20
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits sctable="SC_DATA" expcube=/scratch/kocevski/229937/ltcube_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits outfile=/scratch/kocevski/229937/expmap_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.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/229937/ltcube_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits
.....................!
real 190.56
user 185.76
sys 4.42

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/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits outfile=/scratch/kocevski/229937/cmap_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits outfile=/scratch/kocevski/229937/cmap_HighResolution_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits evtable="EVENTS" scfile=/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229937/Model_4FGL_J1159.3-2142_daily_bin1420.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/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits.....................!
real 45.32
user 43.90
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits', '/scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits', expMap='/scratch/kocevski/229937/expmap_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits', expCube='/scratch/kocevski/229937/ltcube_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/229937/Model_4FGL_J1159.3-2142_daily_bin1420.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/229937/ft1_filtered_4FGL_J1159.3-2142_daily_bin1420.fits
Spacecraft file(s): /scratch/kocevski/229937/ft2_4FGL_J1159.3-2142_daily_bin1420.fits
Exposure map: /scratch/kocevski/229937/expmap_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits
Exposure cube: /scratch/kocevski/229937/ltcube_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/229937/Model_4FGL_J1159.3-2142_daily_bin1420.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) = 4527.82793521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    41.188       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    14.975       1.0000         .10000E-03   10000.    
     6 'norm      '    .52489E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92703E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    40.154       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17392E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.582       1.0000         .10000E-03   10000.    
    14 'norm      '    .15001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .65407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.5165       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 '    17.827       1.0000         .10000E-03   10000.    
    21 'Prefactor '    20.097       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.6751       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.923       1.0000         .10000E-03   10000.    
    24 'norm      '    .86908       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3443       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .88240       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.

 FCN=   4527.775     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     3217 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     41.192        47.605       -.11933E-06    .24817E-04
   2  Prefactor     .10000E-03    71.535       -.38724E-06** at limit **
   3  Prefactor     .10000E-03    13.140       -.33943E-07** at limit **
   4  Prefactor     .10000E-03    15.152       -.14025E-07** at limit **
   5  Prefactor     15.007        62.281       -.52418E-06    .49677E-04
   6  norm          .49122E-01    .86265       -.10826E-06    .54555E-03
   7  Prefactor     .10013E-03    9.6084       -.32787E-06** at limit **
   8  Prefactor     .10000E-03    104.32        .93579E-06** at limit **
   9  Prefactor     .10000E-03    7.1608       -.11427E-06** at limit **
  10  Prefactor     40.155        25.129        .12767E-06   -.58821E-05
  11  Prefactor     .10000E-03    207.82       -.19691E-05** at limit **
  12  norm          .10000E-03    15.008        .23556E-07** at limit **
  13  Prefactor     15.562        21.938        .28849E-05   -.10333E-04
  14  norm          .10003E-03    6.1090       -.95277E-06** at limit **
  15  Prefactor     .64338        5.4119       -.29623E-06    .67145E-04
  16  Prefactor     .10000E-03    22.965       -.94475E-07** at limit **
  17  Prefactor     6.5213        40.057        .13074E-06    .14192E-04
  18  Prefactor     .10000E-03    12.681       -.18926E-07** at limit **
  19  Prefactor     .10000E-03    52.881        .69307E-07** at limit **
  20  Prefactor     17.820        33.805       -.46893E-07    .16955E-05
  21  Prefactor     20.096        10.748        .41848E-07   -.41766E-05
  22  Prefactor     3.6752        2.7044       -.68719E-08   -.82638E-06
  23  Prefactor     20.923        16.849       -.92729E-08   -.12135E-05
  24  norm          .86920        1.6472        .21897E-06   -.12339E-03
  25  Normalizat    1.3442        .30868       -.11033E-05    .15963E-03
  26  Prefactor     .88246        .15302        .44174E-06    .89925E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 41.1918
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.0066
  norm       = 0.0491217
  Prefactor  = 0.000100129
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 40.1546
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.5622
  norm       = 0.000100027
  Prefactor  = 0.643376
  Prefactor  = 0.0001
  Prefactor  = 6.5213
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.82
  Prefactor  = 20.0965
  Prefactor  = 3.67515
  Prefactor  = 20.9228
  norm       = 0.869198
  Normalizat = 1.34422
  Prefactor  = 0.88246
 **********
 **   18 **HESSE 
 **********

 FCN=   4527.775     FROM HESSE     STATUS=OK           462 CALLS     3679 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     41.192        47.596        .31230E-03   -1.4423    
   2  Prefactor     .10000E-03    71.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     15.007        62.040        .10350E-03   -1.4933    
   6  norm          .49122E-01    5.0871        .11601E-02   -1.5664    
   7  Prefactor     .10013E-03    100.51        .39061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    104.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.2464        .17573E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     40.155        25.149        .63256E-04   -1.4440    
  11  Prefactor     .10000E-03    214.09        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    15.017        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     15.562        22.335        .50732E-03   -1.4919    
  14  norm          .10003E-03    23.168        .31088E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .64338        19.023        .27464E-02   -1.5548    
  16  Prefactor     .10000E-03    22.972        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.5213        39.673        .15721E-03   -1.5197    
  18  Prefactor     .10000E-03    12.690        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    52.987        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     17.820        33.778        .94860E-04   -1.4863    
  21  Prefactor     20.096        10.740        .89344E-04   -1.4811    
  22  Prefactor     3.6752        2.7064        .89099E-04   -1.5325    
  23  Prefactor     20.923        16.850        .87565E-04   -1.4793    
  24  norm          .86920        1.5140        .11321E-02   -1.5522    
  25  Normalizat    1.3442        .35584        .32590E-03   -.82256    
  26  Prefactor     .88246        .18210        .20168E-03   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.07697e-09
Minuit parameter uncertainties:
  1  47.6403
  2  0.000413814
  3  1.19916e-05
  4  5.91285e-06
  5  61.1341
  6  0.998842
  7  0.00720914
  8  0.000719223
  9  7.25907e-06
  10  25.1556
  11  1.00284e-05
  12  1.55106e-05
  13  22.3469
  14  0.00157576
  15  6.99882
  16  3.3646e-05
  17  32.2013
  18  2.65222e-06
  19  0.000102339
  20  33.8142
  21  10.7413
  22  2.70652
  23  16.854
  24  1.51411
  25  0.356498
  26  0.182221
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.576e-03  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:  8.825e-01  1.822e-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.344e+00  3.565e-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: 1.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229937/likelihoodResults_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.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) = 4527.7747842
delta logL = -0.000205710992304

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4527.77457855
delta logL = -5.98665792495e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10591E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4184       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3442       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88248       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.

 FCN=   4527.775     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      231 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    152.10        .70279E-01** at limit **
   2  alpha         2.4568        2.8442        .41179       -.80667E-05
   3  Normalizat    1.3442        .55101E-01    .73647E-01   -.17789E-03
   4  Prefactor     .88246        .28055E-01    .44781E-01   -.26035E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.45681
  Normalizat = 1.34421
  Prefactor  = 0.882462
 **********
 **   18 **HESSE 
 **********

 FCN=   4527.775     FROM HESSE     STATUS=OK            31 CALLS      262 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    27.472        .24772E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4568        3.5643        .50000       -.17275E-01
   3  Normalizat    1.3442        .34195        .32590E-03   -.82256    
   4  Prefactor     .88246        .17710        .20168E-03   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56035e-10
Minuit parameter uncertainties:
  1  4.23181e-05
  2  2.58786
  3  0.342527
  4  0.177212
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229937': 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) = 4527.77457825
delta logL = 2.38275788433e-07

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  4.232e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.457e+00  2.588e+00  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:  8.825e-01  1.772e-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.344e+00  3.425e-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/229937/cmap_HighResolution_607392001_607651201_4FGL_J1159.3-2142_daily_bin1420.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.76e-05', job_status='DONE', photon_flux_upper_limit='1.38e-07', time_completed='2021-09-04 19:16:50.734222', job_id='229937', GAL2='0.88', fit_tolerance='1e-08', EG2='1.34', EG='1.34', time_epoch_completed='1630808210.73', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1420' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 229937: <4FGL_J1159.3-2142_daily_bin1420> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1420> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:41 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:43 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:05:43 2021
Terminated at Sat Sep  4 19:16:51 2021
Results reported at Sat Sep  4 19:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1420 179.843 -21.7038 607392001 607651201 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 :                                   636.18 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             334.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   667 sec.
    Turnaround time :                            670 sec.

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

