/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 28 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7439
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1015
RA = 179.843, Dec = -21.7038
tmin = 502416001, tmax = 502675201
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='226869', job_status='RUN', time_executed='2021-09-04 18:56:26.132839', time_epoch_executed='1630806986.13' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226869

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226869/ft1_4FGL_J1159.3-2142_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226869/ft1_4FGL_J1159.3-2142_daily_bin1015.fits outfile=/scratch/kocevski/226869/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1015.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=502416001.0 tmax=502675201.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.51
user 3.29
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/226869/ltcube_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.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/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits
.....................!
real 14.19
user 13.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/226869/ltcube_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.fits outfile=/scratch/kocevski/226869/expmap_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.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/226869/ltcube_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.fits
.....................!
real 189.82
user 184.88
sys 4.53

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/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits scfile=/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits outfile=/scratch/kocevski/226869/cmap_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits scfile=/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits outfile=/scratch/kocevski/226869/cmap_HighResolution_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.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.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/226869/ft2_4FGL_J1159.3-2142_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226869/Model_4FGL_J1159.3-2142_daily_bin1015.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/226869/ft1_filtered_4FGL_J1159.3-2142_daily_bin1015.fits.....................!
real 59.44
user 58.06
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    53.548       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.5335       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.415       1.0000         .10000E-03   10000.    
     6 'norm      '    2.9457       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .74258E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10301E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.993       1.0000         .10000E-03   10000.    
    12 'norm      '    6.1986       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0369       1.0000         .10000E-03   10000.    
    14 'norm      '    13.344       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8744       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    45.498       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .12060E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .22237       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2567       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.1018       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .13514E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.0510       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6852       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .72647       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=   6521.353     FROM MIGRAD    STATUS=CONVERGED    638 CALLS     3131 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.773        .23238E-05** at limit **
   2  Prefactor     53.516        103.63       -.37152E-04   -.83980E-05
   3  Prefactor     .10000E-03    33.559        .39255E-04** at limit **
   4  Prefactor     8.5337        10.578        .35956E-06   -.22458E-03
   5  Prefactor     32.422        43.980       -.22852E-05   -.56665E-05
   6  norm          2.9452        1.5572        .20491E-06   -.41899E-03
   7  Prefactor     .10023E-03    7.1774        .14972E-05** at limit **
   8  Prefactor     .10000E-03    10.661       -.16756E-06** at limit **
   9  Prefactor     .10000E-03    5.2624       -.10607E-06** at limit **
  10  Prefactor     .10000E-03    8.6495       -.43799E-06** at limit **
  11  Prefactor     16.988        19.097        .10915E-05    .21201E-04
  12  norm          6.1982        12.670       -.27554E-06   -.33288E-04
  13  Prefactor     5.0559        25.649       -.23139E-04   -.75865E-04
  14  norm          13.342        8.2834        .33462E-05    .32911E-03
  15  Prefactor     2.8746        3.2679        .17281E-07    .46441E-04
  16  Prefactor     .10000E-03    29.027       -.23617E-04** at limit **
  17  Prefactor     .10000E-03    8.8898        .68791E-06** at limit **
  18  Prefactor     45.493        26.470        .67220E-06   -.83656E-04
  19  Prefactor     .10000E-03    67.437        .30666E-04** at limit **
  20  Prefactor     .71122E-01    16.366       -.24175E-05    .18711E-03
  21  Prefactor     6.2579        7.2640        .69677E-07   -.80100E-04
  22  Prefactor     4.1016        2.4064       -.44843E-07    .54792E-04
  23  Prefactor     .10000E-03    47.014       -.42285E-04** at limit **
  24  norm          1.0513        1.1926       -.10351E-06   -.56364E-03
  25  Normalizat    1.6848        .24890        .18073E-05    .26685E-03
  26  Prefactor     .72667        .12582        .61572E-06    .47036E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 53.5158
  Prefactor  = 0.0001
  Prefactor  = 8.53366
  Prefactor  = 32.4223
  norm       = 2.94516
  Prefactor  = 0.000100227
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.9884
  norm       = 6.19817
  Prefactor  = 5.0559
  norm       = 13.3418
  Prefactor  = 2.8746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.4927
  Prefactor  = 0.0001
  Prefactor  = 0.0711219
  Prefactor  = 6.25791
  Prefactor  = 4.10157
  Prefactor  = 0.000100003
  norm       = 1.05125
  Normalizat = 1.68476
  Prefactor  = 0.726671
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.353     FROM HESSE     STATUS=OK           466 CALLS     3597 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     53.516        103.76        .54812E-04   -1.4244    
   3  Prefactor     .10000E-03    33.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.5337        10.571        .13723E-03   -1.5124    
   5  Prefactor     32.422        43.975        .70380E-04   -1.4569    
   6  norm          2.9452        1.5507        .68929E-04   -1.5365    
   7  Prefactor     .10023E-03    45.046        .41338E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    10.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4528        .36151E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6713        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     16.988        19.090        .97160E-04   -1.4883    
  12  norm          6.1982        12.664        .16124E-03   -1.5210    
  13  Prefactor     5.0559        25.140        .17917E-03   -1.5258    
  14  norm          13.342        8.1777        .10965E-03   -1.4977    
  15  Prefactor     2.8746        3.2629        .15091E-03   -1.5369    
  16  Prefactor     .10000E-03    29.022        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.8949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     45.493        26.441        .59441E-04   -1.4358    
  19  Prefactor     .10000E-03    67.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .71122E-01    16.590        .99653E-01   -1.5655    
  21  Prefactor     6.2579        7.2586        .16048E-03   -1.5208    
  22  Prefactor     4.1016        2.4049        .91028E-04   -1.5303    
  23  Prefactor     .10000E-03    48.061        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.0513        1.0974        .90427E-03   -1.5503    
  25  Normalizat    1.6848        .29201        .29790E-03   -.72711    
  26  Prefactor     .72667        .14845        .21991E-03   -1.0249    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.04376e-09
Minuit parameter uncertainties:
  1  0.000117235
  2  104.112
  3  0.000112367
  4  10.5738
  5  44.0192
  6  1.55069
  7  0.00639859
  8  7.97885e-06
  9  3.51677e-06
  10  1.20278e-05
  11  19.0972
  12  12.6699
  13  22.563
  14  8.17841
  15  3.26314
  16  4.65684e-05
  17  3.15961e-07
  18  26.4483
  19  0.000175838
  20  2.17158
  21  7.25957
  22  2.40493
  23  0.000807725
  24  1.09737
  25  0.292312
  26  0.148526
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.334e+01  8.178e+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:  7.267e-01  1.485e-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.685e+00  2.923e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.15
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 7.42e-08
Energy Flux (Fixed Index): 4.18e-05 +/- 2.56e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6521.22991245
delta logL = 0.123367391829

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6521.22219167
delta logL = 0.13108816929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.658       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6293       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73608       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=   6521.222     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      236 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.663        86.536        .29332E-02    .15771E-03
   2  alpha         2.6292        3.8146        .25466        .70312E-04
   3  Normalizat    1.6534        .16142        .67811E-01    .26193E-04
   4  Prefactor     .73594        .59103E-01    .42879E-01    .33509E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.6626
  alpha      = 2.62919
  Normalizat = 1.65344
  Prefactor  = 0.73594
 **********
 **   18 **HESSE 
 **********

 FCN=   6521.222     FROM HESSE     STATUS=OK            33 CALLS      269 TOTAL
                     EDM=   .98E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.663        6.8098        .11542E-03   -1.5025    
   2  alpha         2.6292        .49571        .99412E-02    .51699E-01
   3  Normalizat    1.6534        .29421        .29995E-03   -.73553    
   4  Prefactor     .73594        .14774        .21860E-03   -1.0213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.83807e-12
Minuit parameter uncertainties:
  1  6.8103
  2  0.49903
  3  0.294515
  4  0.147816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226869': 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) = 6521.22219088
delta logL = 0.131088960403

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.166e+01  6.810e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.629e+00  4.990e-01  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:  7.359e-01  1.478e-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.653e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.46
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.63 +/- 0.50
Photon Flux (Free Index): 1.49e-07 +/- 8.30e-08
Energy Flux (Free Index): 4.14e-05 +/- 1.83e-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/226869/cmap_HighResolution_502416001_502675201_4FGL_J1159.3-2142_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='4.14e-05', photon_flux_error='7.42e-08', dlogl='1.31e-01', energy_flux='4.18e-05', photon_flux2='1.49e-07', job_status='DONE', time_completed='2021-09-04 19:08:04.123383', photon_index_error2='0.50', photon_index2='2.63', ts='10.15', fit_tolerance='1e-08', GAL='0.73', photon_index_error='0.00', energy_flux_error2='1.83e-05', EG='1.68', time_epoch_completed='1630807684.12', return_code='0', job_id='226869', GAL2='0.74', EG2='1.65', return_code2='0', energy_flux_error='2.56e-05', photon_flux_error2='8.30e-08', ts2='10.46', photon_index='2.38' WHERE bin_id='1015' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:08:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0233>
Subject: Job 226869: <4FGL_J1159.3-2142_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1015> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:48 2021
Job was executed on host(s) <bullet0233>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:50 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:55:50 2021
Terminated at Sat Sep  4 19:08:04 2021
Results reported at Sat Sep  4 19:08:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1015 179.843 -21.7038 502416001 502675201 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 :                                   694.34 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   734 sec.
    Turnaround time :                            736 sec.

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

