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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1318
RA = 179.843, Dec = -21.7038
tmin = 580953601, tmax = 581212801
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='228583', job_status='RUN', time_executed='2021-09-04 19:01:28.344634', time_epoch_executed='1630807288.34' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1318'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228583

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228583/ft1_4FGL_J1159.3-2142_daily_bin1318.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228583/ft1_4FGL_J1159.3-2142_daily_bin1318.fits outfile=/scratch/kocevski/228583/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1318.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=580953601.0 tmax=581212801.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.31
user 2.09
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.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/228583/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1318.fits evtable="EVENTS" outfile="/scratch/kocevski/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.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.41
user 0.27
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits" evtable="EVENTS" scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits sctable="SC_DATA" outfile=/scratch/kocevski/228583/ltcube_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.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/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits
.....................!
real 9.36
user 9.05
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits sctable="SC_DATA" expcube=/scratch/kocevski/228583/ltcube_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.fits outfile=/scratch/kocevski/228583/expmap_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.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/228583/ltcube_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.fits
.....................!
real 145.13
user 140.85
sys 4.05

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/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits outfile=/scratch/kocevski/228583/cmap_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.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.45
user 0.30
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits outfile=/scratch/kocevski/228583/cmap_HighResolution_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.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.45
user 0.30
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits evtable="EVENTS" scfile=/scratch/kocevski/228583/ft2_4FGL_J1159.3-2142_daily_bin1318.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228583/Model_4FGL_J1159.3-2142_daily_bin1318.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/228583/ft1_filtered_4FGL_J1159.3-2142_daily_bin1318.fits.....................!
real 40.25
user 39.17
sys 0.94

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    94.382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10727E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .93017E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2706       1.0000         .10000E-03   10000.    
    14 'norm      '    3.4911       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .21758E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.1767       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16132E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    16.346       1.0000         .10000E-03   10000.    
    20 'Prefactor '    60.142       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .70829E-01   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.014       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    7.7549       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0703       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0627       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=   5609.273     FROM MIGRAD    STATUS=CONVERGED    686 CALLS     3634 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.340        .27445E-07** at limit **
   2  Prefactor     94.419        84.456        .13936E-05    .10164E-03
   3  Prefactor     .10000E-03    11.643        .60682E-07** at limit **
   4  Prefactor     .10000E-03    7.5151       -.16051E-07** at limit **
   5  Prefactor     .10000E-03    14.504        .64273E-07** at limit **
   6  norm          .10000E-03    .44715        .11289E-07** at limit **
   7  Prefactor     .10000E-03    11.840       -.12920E-06** at limit **
   8  Prefactor     .10000E-03    10.886       -.24551E-07** at limit **
   9  Prefactor     .10000E-03    3.9474        .64989E-08** at limit **
  10  Prefactor     .10000E-03    28.268       -.15114E-06** at limit **
  11  Prefactor     .10000E-03    18.811        .10150E-06** at limit **
  12  norm          .10000E-03    21.470       -.17443E-06** at limit **
  13  Prefactor     3.2774        12.505        .13465E-05    .25152E-03
  14  norm          3.4930        3.8070        .18192E-06    .72342E-03
  15  Prefactor     .10000E-03    2.9126        .25491E-06** at limit **
  16  Prefactor     .12480E-03    178.94       -.14994E-04** at limit **
  17  Prefactor     7.1510        46.249        .45805E-05    .15561E-03
  18  Prefactor     .10000E-03    55.851       -.17474E-05** at limit **
  19  Prefactor     16.462        59.555        .65123E-05    .25695E-03
  20  Prefactor     60.141        44.046       -.31030E-06    .40255E-04
  21  Prefactor     .43422E-02    5.6773       -.97230E-07    .70335E-04
  22  Prefactor     13.026        4.1885       -.88283E-07   -.98804E-05
  23  Prefactor     .10000E-03    6.5661       -.19327E-07** at limit **
  24  norm          7.7536        2.8656       -.22604E-08    .13463E-03
  25  Normalizat    1.0705        .26475       -.18489E-06    .36220E-03
  26  Prefactor     1.0626        .14523        .25016E-06    .69250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 94.4185
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27736
  norm       = 3.49303
  Prefactor  = 0.0001
  Prefactor  = 0.000124802
  Prefactor  = 7.15097
  Prefactor  = 0.0001
  Prefactor  = 16.4625
  Prefactor  = 60.1414
  Prefactor  = 0.00434215
  Prefactor  = 13.0264
  Prefactor  = 0.0001
  norm       = 7.75362
  Normalizat = 1.07052
  Prefactor  = 1.06263
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.273     FROM HESSE     STATUS=OK           464 CALLS     4098 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.346        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     94.419        84.610        .41369E-04   -1.3762    
   3  Prefactor     .10000E-03    11.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    7.5678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    14.506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .78166        .97303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.093        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.9730        .14527E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    18.826        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    160.70        .67419E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.2774        12.536        .22392E-03   -1.5346    
  14  norm          3.4930        3.8004        .14144E-03   -1.5334    
  15  Prefactor     .10000E-03    2.9083        .12436E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .12480E-03    93.559        .17660       -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.1510        46.694        .14973E-03   -1.5173    
  18  Prefactor     .10000E-03    56.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     16.462        71.335        .99065E-04   -1.4896    
  20  Prefactor     60.141        44.054        .51736E-04   -1.4155    
  21  Prefactor     .43422E-02    14.254        .52255E-01   -1.5695    
  22  Prefactor     13.026        4.2862        .40086E-03   -1.4986    
  23  Prefactor     .10000E-03    6.5751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          7.7536        2.8648        .74359E-04   -1.5151    
  25  Normalizat    1.0705        .31375        .34793E-03   -.90704    
  26  Prefactor     1.0626        .17292        .19128E-03   -.90670    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.37894e-09
Minuit parameter uncertainties:
  1  1.94964e-05
  2  84.7179
  3  1.08177e-05
  4  2.1812e-06
  5  9.52789e-06
  6  2.72477e-06
  7  2.04607e-05
  8  3.29299e-06
  9  2.25949e-06
  10  2.82768e-05
  11  1.82083e-05
  12  0.000295945
  13  12.5459
  14  3.80062
  15  4.63615e-07
  16  0.0964936
  17  36.5877
  18  0.000169742
  19  68.6763
  20  44.078
  21  0.491928
  22  4.2863
  23  1.39305e-06
  24  2.86485
  25  0.314292
  26  0.173013
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.493e+00  3.801e+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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.063e+00  1.730e-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.071e+00  3.143e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.59
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 3.17e-08 +/- 3.45e-08
Energy Flux (Fixed Index): 1.09e-05 +/- 1.19e-05

TS (Fixed Index): 2.59
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 1.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.37e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228583/likelihoodResults_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.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) = 5609.02737966
delta logL = 0.245170812969

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5609.02250412
delta logL = 0.250046359577

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.1949       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.5989       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0891       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0586       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=   5609.023     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      199 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.1950        3.4691        .56672E-02   -.25230E-02
   2  alpha         1.5988        .79584        .45178       -.29614E-04
   3  Normalizat    1.0892        .26066        .78011E-01    .14313E-04
   4  Prefactor     1.0585        .14329        .39432E-01    .13172E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.19498
  alpha      = 1.59878
  Normalizat = 1.08918
  Prefactor  = 1.05853
 **********
 **   18 **HESSE 
 **********

 FCN=   5609.023     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.1950        3.8743        .14053E-03   -1.5350    
   2  alpha         1.5988        1.0080        .25112E-01   -.36879    
   3  Normalizat    1.0892        .31050        .34530E-03   -.90100    
   4  Prefactor     1.0585        .17131        .19160E-03   -.90803    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92616e-09
Minuit parameter uncertainties:
  1  3.87457
  2  1.04235
  3  0.311022
  4  0.171397
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228583': 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) = 5609.02250407
delta logL = 0.250046403959

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.195e+00  3.875e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.599e+00  1.042e+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:  1.059e+00  1.714e-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.089e+00  3.110e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.09
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.60 +/- 1.04
Photon Flux (Free Index): 1.28e-08 +/- 2.10e-08
Energy Flux (Free Index): 1.48e-05 +/- 2.14e-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/228583/cmap_HighResolution_580953601_581212801_4FGL_J1159.3-2142_daily_bin1318.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.37e-05', comment='SUCCESS', photon_flux='3.17e-08', energy_flux2='1.48e-05', photon_flux_error='3.45e-08', dlogl='2.50e-01', energy_flux='1.09e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-04 19:11:12.135332', photon_index_error2='1.04', photon_index2='1.60', ts='2.59', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', photon_flux_upper_limit='1.27e-07', energy_flux_error2='2.14e-05', EG='1.07', time_epoch_completed='1630807872.14', return_code='0', job_id='228583', GAL2='1.06', EG2='1.09', return_code2='0', energy_flux_error='1.19e-05', photon_flux_error2='2.10e-08', ts2='3.09', photon_index='2.38' WHERE bin_id='1318' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:11:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0033>
Subject: Job 228583: <4FGL_J1159.3-2142_daily_bin1318> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1318> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:56 2021
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:57 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:00:57 2021
Terminated at Sat Sep  4 19:11:12 2021
Results reported at Sat Sep  4 19:11:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1318 179.843 -21.7038 580953601 581212801 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 :                                   578.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   615 sec.
    Turnaround time :                            616 sec.

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

