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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1120
RA = 179.843, Dec = -21.7038
tmin = 529632001, tmax = 529891201
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='228281', job_status='RUN', time_executed='2021-09-04 19:03:18.434047', time_epoch_executed='1630807398.43' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1120'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228281

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228281/ft1_4FGL_J1159.3-2142_daily_bin1120.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228281/ft1_4FGL_J1159.3-2142_daily_bin1120.fits outfile=/scratch/kocevski/228281/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1120.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=529632001.0 tmax=529891201.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.58
user 3.34
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits" evtable="EVENTS" scfile=/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits sctable="SC_DATA" outfile=/scratch/kocevski/228281/ltcube_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.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/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits
.....................!
real 12.15
user 11.38
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits sctable="SC_DATA" expcube=/scratch/kocevski/228281/ltcube_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.fits outfile=/scratch/kocevski/228281/expmap_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.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/228281/ltcube_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.fits
.....................!
real 190.74
user 185.70
sys 4.68

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/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits scfile=/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits outfile=/scratch/kocevski/228281/cmap_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits scfile=/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits outfile=/scratch/kocevski/228281/cmap_HighResolution_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.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.60
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits evtable="EVENTS" scfile=/scratch/kocevski/228281/ft2_4FGL_J1159.3-2142_daily_bin1120.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228281/Model_4FGL_J1159.3-2142_daily_bin1120.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/228281/ft1_filtered_4FGL_J1159.3-2142_daily_bin1120.fits.....................!
real 51.62
user 50.15
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.462       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10143E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.068       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11208E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9404       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .23911       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7592       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10290E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .36460E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10270E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.614       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    16.362       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.7771       1.0000         .10000E-03   10000.    
    23 'Prefactor '    20.581       1.0000         .10000E-03   10000.    
    24 'norm      '    .29235       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .80871       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1197       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=   5733.772     FROM MIGRAD    STATUS=CONVERGED    619 CALLS     3119 TOTAL
                     EDM=   .47E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.449        31.474        .22817E-06    .22061E-04
   2  Prefactor     .10000E-03    30.740        .19131E-05** at limit **
   3  Prefactor     41.061        51.024        .84545E-06    .43445E-04
   4  Prefactor     .10000E-03    11.388        .28122E-07** at limit **
   5  Prefactor     .10000E-03    16.976        .79081E-06** at limit **
   6  norm          1.9411        1.2855       -.28844E-07    .48011E-03
   7  Prefactor     .16753        15.657       -.51228E-05    .35767E-03
   8  Prefactor     .10000E-03    59.978       -.55765E-05** at limit **
   9  Prefactor     9.7570        7.2428       -.20741E-06    .13594E-03
  10  Prefactor     .10000E-03    12.901       -.28585E-06** at limit **
  11  Prefactor     .10000E-03    14.741       -.18495E-05** at limit **
  12  norm          .10000E-03    17.931        .11113E-05** at limit **
  13  Prefactor     .10000E-03    18.990        .10335E-05** at limit **
  14  norm          .10000E-03    23.719        .76126E-05** at limit **
  15  Prefactor     .10000E-03    3.2904       -.51659E-06** at limit **
  16  Prefactor     .10000E-03    53.230        .31894E-05** at limit **
  17  Prefactor     .10000E-03    12.317        .13310E-05** at limit **
  18  Prefactor     11.611        19.708        .47716E-06    .26046E-04
  19  Prefactor     .10000E-03    30.059        .92236E-06** at limit **
  20  Prefactor     16.349        23.275        .97657E-07    .34456E-04
  21  Prefactor     .10000E-03    2.1703       -.28980E-08** at limit **
  22  Prefactor     4.7767        2.3382       -.20576E-07   -.41998E-05
  23  Prefactor     20.578        15.244       -.84887E-07    .44984E-04
  24  norm          .29201        1.0966       -.93989E-06    .45603E-03
  25  Normalizat    .80886        .26046        .25252E-05    .37937E-03
  26  Prefactor     1.1198        .13428       -.57421E-09    .69915E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4488
  Prefactor  = 0.0001
  Prefactor  = 41.0606
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94114
  Prefactor  = 0.167535
  Prefactor  = 0.000100001
  Prefactor  = 9.75697
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.6107
  Prefactor  = 0.0001
  Prefactor  = 16.349
  Prefactor  = 0.0001
  Prefactor  = 4.7767
  Prefactor  = 20.5785
  norm       = 0.292007
  Normalizat = 0.808863
  Prefactor  = 1.1198
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.772     FROM HESSE     STATUS=OK           462 CALLS     3581 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.449        31.464        .82696E-04   -1.4739    
   2  Prefactor     .10000E-03    30.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.061        51.077        .62551E-04   -1.4426    
   4  Prefactor     .10000E-03    11.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    16.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9411        1.2806        .66641E-04   -1.5429    
   7  Prefactor     .16753        19.307        .62129E-01   -1.5626    
   8  Prefactor     .10000E-03    61.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.7570        7.2339        .12827E-03   -1.5083    
  10  Prefactor     .10000E-03    12.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    14.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    17.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    19.053        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    23.913        .33446E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    13.306        .26130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.366        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     11.611        19.655        .11755E-03   -1.5026    
  19  Prefactor     .10000E-03    30.067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     16.349        23.266        .99017E-04   -1.4899    
  21  Prefactor     .10000E-03    2.1753        .10892E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     4.7767        2.3390        .78853E-04   -1.5271    
  23  Prefactor     20.578        15.240        .88288E-04   -1.4800    
  24  norm          .29201        1.1268        .15012E-03   -1.5600    
  25  Normalizat    .80886        .29645        .38006E-03   -.99741    
  26  Prefactor     1.1198        .15446        .17703E-03   -.88836    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.92046e-09
Minuit parameter uncertainties:
  1  31.4858
  2  0.000144358
  3  51.1314
  4  9.92037e-05
  5  4.17659e-05
  6  1.28062
  7  3.59711
  8  0.000598892
  9  7.23459
  10  2.44914e-05
  11  0.000103334
  12  5.78311e-05
  13  4.09286e-05
  14  0.000461394
  15  0.000382812
  16  0.000268803
  17  6.02834e-05
  18  19.6662
  19  3.18803e-05
  20  23.2784
  21  1.91902e-06
  22  2.33904
  23  15.2425
  24  1.12683
  25  0.297043
  26  0.154521
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  4.614e-04  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.120e+00  1.545e-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:  8.089e-01  2.970e-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.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.46e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228281/likelihoodResults_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.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): 102
logL (Free Index) = 5733.77199984
delta logL = -0.000197272550395

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5733.77177062
delta logL = 3.19489545291e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27135E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5136       1.0000          .0000       5.0000    
     3 'Normalizat'    .80885       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1199       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=   5732.918     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      273 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40099        5.9694        .80409E-02    .16305E-02
   2  alpha         4.5393        4.3848        .41152        .28726E-04
   3  Normalizat    .66033        .72866E-01    .94190E-01    .16308E-04
   4  Prefactor     1.1627        .39337E-01    .36875E-01   -.23335E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.400992
  alpha      = 4.53926
  Normalizat = 0.660332
  Prefactor  = 1.16266
 **********
 **   18 **HESSE 
 **********

 FCN=   5732.918     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      306 TOTAL
                     EDM=   .21E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40099        11.405        .36303E-04   -1.5581    
   2  alpha         4.5393        3.6886        .24775E-01    .95395    
   3  Normalizat    .66033        .26231        .41735E-03   -1.0548    
   4  Prefactor     1.1627        .13919        .17403E-03   -.87488    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.12717e-07
Minuit parameter uncertainties:
  1  4.27752
  2  5.72671
  3  0.262808
  4  0.139233
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228281': 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): 102
logL (Free Index) = 5732.91811686
delta logL = 0.853685708914

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.010e-01  4.278e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.539e+00  5.727e+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.163e+00  1.392e-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:  6.603e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.95
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 4.54 +/- 5.73
Photon Flux (Free Index): 1.31e-07 +/- 1.06e-07
Energy Flux (Free Index): 1.91e-05 +/- 2.24e-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/228281/cmap_HighResolution_529632001_529891201_4FGL_J1159.3-2142_daily_bin1120.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.46e-05', comment='SUCCESS', energy_flux2='1.91e-05', dlogl='8.54e-01', photon_flux2='1.31e-07', job_status='DONE', time_completed='2021-09-04 19:15:00.699206', photon_index_error2='5.73', photon_index2='4.54', ts='-0.00', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='2.24e-05', EG='0.81', time_epoch_completed='1630808100.7', return_code='0', job_id='228281', GAL2='1.16', EG2='0.66', return_code2='102', photon_flux_error2='1.06e-07', ts2='1.95', photon_index='2.38' WHERE bin_id='1120' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:15:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 228281: <4FGL_J1159.3-2142_daily_bin1120> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1120> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:29 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:31 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:31 2021
Terminated at Sat Sep  4 19:15:01 2021
Results reported at Sat Sep  4 19:15:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1120 179.843 -21.7038 529632001 529891201 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            872 sec.

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

