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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1438
RA = 179.843, Dec = -21.7038
tmin = 612057601, tmax = 612316801
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='229973', job_status='RUN', time_executed='2021-09-04 19:09:38.741347', time_epoch_executed='1630807778.74' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1438'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229973

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229973/ft1_4FGL_J1159.3-2142_daily_bin1438.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229973/ft1_4FGL_J1159.3-2142_daily_bin1438.fits outfile=/scratch/kocevski/229973/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1438.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=612057601.0 tmax=612316801.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 4.50
user 4.26
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits" evtable="EVENTS" scfile=/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits sctable="SC_DATA" outfile=/scratch/kocevski/229973/ltcube_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.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/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits
.....................!
real 12.07
user 11.68
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits sctable="SC_DATA" expcube=/scratch/kocevski/229973/ltcube_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.fits outfile=/scratch/kocevski/229973/expmap_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.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/229973/ltcube_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.fits
.....................!
real 192.70
user 187.85
sys 4.46

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/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits scfile=/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits outfile=/scratch/kocevski/229973/cmap_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits scfile=/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits outfile=/scratch/kocevski/229973/cmap_HighResolution_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits evtable="EVENTS" scfile=/scratch/kocevski/229973/ft2_4FGL_J1159.3-2142_daily_bin1438.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229973/Model_4FGL_J1159.3-2142_daily_bin1438.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/229973/ft1_filtered_4FGL_J1159.3-2142_daily_bin1438.fits....................!
real 47.06
user 45.68
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    27.035       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    34.392       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    58.356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    70.897       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.2338       1.0000         .10000E-03   10000.    
    17 'Prefactor '    60.915       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    50.645       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.226       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.5588       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .45324E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.5805       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .75149       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1063       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=   5034.052     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3110 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    43.043        .15375E-04** at limit **
   2  Prefactor     .10000E-03    242.68       -.15533E-04** at limit **
   3  Prefactor     .10000E-03    15.052        .30642E-06** at limit **
   4  Prefactor     .10000E-03    4.5820        .22885E-07** at limit **
   5  Prefactor     27.031        55.962       -.36802E-05   -.11839E-05
   6  norm          .10000E-03    .76915        .34549E-08** at limit **
   7  Prefactor     34.392        16.929        .86333E-08   -.10898E-04
   8  Prefactor     .10000E-03    13.976       -.23854E-06** at limit **
   9  Prefactor     .10000E-03    2.6925        .60320E-07** at limit **
  10  Prefactor     58.353        31.105        .37670E-06   -.33740E-05
  11  Prefactor     .10000E-03    56.154       -.17039E-04** at limit **
  12  norm          .10000E-03    65.184        .25900E-04** at limit **
  13  Prefactor     70.901        27.235       -.12535E-05    .50528E-04
  14  norm          .10000E-03    6.9646        .20213E-06** at limit **
  15  Prefactor     1.5042        11.145       -.44371E-05   -.59881E-03
  16  Prefactor     9.2384        80.253        .43154E-05    .34194E-06
  17  Prefactor     60.919        48.651        .24347E-05    .12013E-03
  18  Prefactor     .10000E-03    25.059       -.11068E-05** at limit **
  19  Prefactor     50.651        61.720        .38219E-05    .17111E-04
  20  Prefactor     .10000E-03    51.740       -.22317E-04** at limit **
  21  Prefactor     12.226        9.7165       -.97298E-07   -.87530E-04
  22  Prefactor     2.5587        2.5030       -.23707E-07   -.14402E-03
  23  Prefactor     .10146E-03    13.116        .29228E-05** at limit **
  24  norm          1.5805        1.3078       -.50269E-07   -.34934E-03
  25  Normalizat    .75158        .32421        .35415E-06   -.65423E-04
  26  Prefactor     1.1063        .16045        .70603E-07   -.10684E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 27.031
  norm       = 0.0001
  Prefactor  = 34.392
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 58.3528
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 70.9006
  norm       = 0.0001
  Prefactor  = 1.50421
  Prefactor  = 9.23839
  Prefactor  = 60.9186
  Prefactor  = 0.0001
  Prefactor  = 50.6509
  Prefactor  = 0.0001
  Prefactor  = 12.2259
  Prefactor  = 2.55875
  Prefactor  = 0.000101464
  norm       = 1.58054
  Normalizat = 0.751579
  Prefactor  = 1.10629
 **********
 **   18 **HESSE 
 **********

 FCN=   5034.052     FROM HESSE     STATUS=OK           452 CALLS     3562 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    42.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    242.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.5842        .14833E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     27.031        55.922        .77047E-04   -1.4668    
   6  norm          .10000E-03    .79342        .12130E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     34.392        16.954        .68332E-04   -1.4534    
   8  Prefactor     .10000E-03    13.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7016        .11368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     58.353        31.139        .52518E-04   -1.4179    
  11  Prefactor     .10000E-03    55.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    64.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     70.901        27.049        .47676E-04   -1.4022    
  14  norm          .10000E-03    7.0042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5042        11.466        .34925E-03   -1.5463    
  16  Prefactor     9.2384        80.010        .13189E-03   -1.5100    
  17  Prefactor     60.919        48.161        .51409E-04   -1.4145    
  18  Prefactor     .10000E-03    25.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     50.651        61.684        .56353E-04   -1.4283    
  20  Prefactor     .10000E-03    51.548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.226        9.6914        .11456E-03   -1.5009    
  22  Prefactor     2.5587        2.4932        .10355E-03   -1.5388    
  23  Prefactor     .10146E-03    107.71        .48812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.5805        1.2947        .71543E-04   -1.5457    
  25  Normalizat    .75158        .36496        .42959E-03   -1.0189    
  26  Prefactor     1.1063        .18330        .18710E-03   -.89266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48587e-08
Minuit parameter uncertainties:
  1  2.72704e-06
  2  4.93216e-05
  3  4.86369e-07
  4  9.22355e-07
  5  56.0308
  6  1.82932e-06
  7  16.956
  8  1.07645e-06
  9  5.57847e-06
  10  31.1477
  11  0.000147128
  12  0.000244939
  13  27.0535
  14  4.09268e-05
  15  8.30797
  16  54.4731
  17  48.1916
  18  8.77625e-05
  19  61.7615
  20  0.000155097
  21  9.69263
  22  2.49333
  23  0.0251562
  24  1.29474
  25  0.366154
  26  0.183408
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  4.093e-05  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:  1.106e+00  1.834e-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:  7.516e-01  3.662e-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.54e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229973/likelihoodResults_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.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) = 5034.05292949
delta logL = -0.00068066944641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5034.05224896
delta logL = -1.45482772496e-07

Fit tolerance = 1e-08

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

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

 FCN=   5034.052     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      238 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1050.3        .18142E-02** at limit **
   2  alpha         2.4554        2.9685        .16482       -.13726E-07
   3  Normalizat    .75158        .11767        .42959E-03   -.11049E-03
   4  Prefactor     1.1063        .61582E-01    .18710E-03   -.24670E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.4554
  Normalizat = 0.75158
  Prefactor  = 1.10629
 **********
 **   18 **HESSE 
 **********

 FCN=   5034.052     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    7.0505        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.4554        3.3466        .65928E-02   -.17842E-01
   3  Normalizat    .75158        .34297        .17183E-04   -1.0189    
   4  Prefactor     1.1063        .17988        .37420E-04   -.89266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.21891e-11
Minuit parameter uncertainties:
  1  1.77488e-05
  2  245.19
  3  0.343957
  4  0.179976
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229973': 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) = 5034.05224877
delta logL = 4.37439666712e-08

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.775e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.455e+00  2.452e+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:  1.106e+00  1.800e-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:  7.516e-01  3.440e-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/229973/cmap_HighResolution_612057601_612316801_4FGL_J1159.3-2142_daily_bin1438.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.32e-05', job_status='DONE', photon_flux_upper_limit='1.54e-07', time_completed='2021-09-04 19:21:19.111677', job_id='229973', GAL2='1.11', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630808479.11', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.11', dlogl='4.37e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1438' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 229973: <4FGL_J1159.3-2142_daily_bin1438> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1438 179.843 -21.7038 612057601 612316801 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 :                                   664.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             247.66 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            935 sec.

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

