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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1436
RA = 179.843, Dec = -21.7038
tmin = 611539201, tmax = 611798401
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='229970', job_status='RUN', time_executed='2021-09-04 19:06:07.374820', time_epoch_executed='1630807567.37' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1436'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229970

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229970/ft1_4FGL_J1159.3-2142_daily_bin1436.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229970/ft1_4FGL_J1159.3-2142_daily_bin1436.fits outfile=/scratch/kocevski/229970/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1436.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=611539201.0 tmax=611798401.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.44
user 3.21
sys 0.20

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229970/ft1_filtered_4FGL_J1159.3-2142_daily_bin1436.fits" evtable="EVENTS" scfile=/scratch/kocevski/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits sctable="SC_DATA" outfile=/scratch/kocevski/229970/ltcube_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.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/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits
.....................!
real 12.10
user 11.70
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229970/ft1_filtered_4FGL_J1159.3-2142_daily_bin1436.fits evtable="EVENTS" scfile=/scratch/kocevski/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits sctable="SC_DATA" expcube=/scratch/kocevski/229970/ltcube_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.fits outfile=/scratch/kocevski/229970/expmap_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.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/229970/ltcube_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.fits
.....................!
real 190.67
user 185.39
sys 4.90

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/229970/ft1_filtered_4FGL_J1159.3-2142_daily_bin1436.fits scfile=/scratch/kocevski/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits outfile=/scratch/kocevski/229970/cmap_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.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/229970/ft1_filtered_4FGL_J1159.3-2142_daily_bin1436.fits scfile=/scratch/kocevski/229970/ft2_4FGL_J1159.3-2142_daily_bin1436.fits outfile=/scratch/kocevski/229970/cmap_HighResolution_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .49388E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    31.260       1.0000         .10000E-03   10000.    
     6 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.731       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.8401       1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.5958       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.390       1.0000         .10000E-03   10000.    
    14 'norm      '    .52801E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10686E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.6659       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10593E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    4.7189       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2991       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99889       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=   5812.317     FROM MIGRAD    STATUS=CONVERGED    645 CALLS     3095 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 14.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.172        .50108E-06** at limit **
   2  Prefactor     .10000E-03    62.873       -.11320E-05** at limit **
   3  Prefactor     .10009E-03    442.10       -.65510E-04** at limit **
   4  Prefactor     .10000E-03    11.436       -.10805E-06** at limit **
   5  Prefactor     31.297        34.025        .13294E-05    .19611E-03
   6  norm          .10000E-03    .58505       -.88594E-06** at limit **
   7  Prefactor     17.737        12.937        .30539E-06    .25824E-03
   8  Prefactor     .10000E-03    17.949       -.49645E-06** at limit **
   9  Prefactor     4.8485        7.2056        .52933E-08    .28673E-03
  10  Prefactor     5.5953        17.535        .13113E-05    .17394E-03
  11  Prefactor     .10000E-03    17.285        .10743E-05** at limit **
  12  norm          .10000E-03    33.803       -.39893E-06** at limit **
  13  Prefactor     22.473        17.771       -.14445E-05    .83827E-04
  14  norm          .10009E-03    6.6224       -.41657E-05** at limit **
  15  Prefactor     .10000E-03    2.0311        .26285E-06** at limit **
  16  Prefactor     .10000E-03    34.026       -.61690E-06** at limit **
  17  Prefactor     .10000E-03    44.218        .17485E-05** at limit **
  18  Prefactor     .10000E-03    12.766        .23891E-06** at limit **
  19  Prefactor     .10000E-03    28.625        .31264E-06** at limit **
  20  Prefactor     .10000E-03    8.7968        .29431E-07** at limit **
  21  Prefactor     .10000E-03    4.6278        .17888E-07** at limit **
  22  Prefactor     5.6655        2.4434        .19795E-09   -.20385E-03
  23  Prefactor     .10000E-03    7.3977        .35259E-07** at limit **
  24  norm          4.7191        2.0473        .72497E-07    .35086E-03
  25  Normalizat    1.2991        .27523       -.39669E-06   -.41332E-04
  26  Prefactor     .99885        .13947       -.60952E-06   -.19755E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100088
  Prefactor  = 0.0001
  Prefactor  = 31.2967
  norm       = 0.000100002
  Prefactor  = 17.737
  Prefactor  = 0.0001
  Prefactor  = 4.84848
  Prefactor  = 5.59527
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 22.4726
  norm       = 0.000100092
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.66554
  Prefactor  = 0.0001
  norm       = 4.71909
  Normalizat = 1.29906
  Prefactor  = 0.998849
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.317     FROM HESSE     STATUS=OK           460 CALLS     3555 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    62.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10009E-03    44.734        .15355       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.494        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     31.297        34.160        .71664E-04   -1.4589    
   6  norm          .10000E-03    .89550        .11326E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.737        12.972        .95117E-04   -1.4865    
   8  Prefactor     .10000E-03    17.971        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.8485        7.1593        .18285E-03   -1.5268    
  10  Prefactor     5.5953        17.599        .16983E-03   -1.5235    
  11  Prefactor     .10000E-03    17.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    33.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.473        17.964        .84650E-04   -1.4760    
  14  norm          .10009E-03    62.473        .25982E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.0424        .10623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    34.065        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    44.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.653        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.8012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.6814        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.6655        2.4434        .76243E-04   -1.5232    
  23  Prefactor     .10000E-03    7.4286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          4.7191        2.0469        .69060E-04   -1.5273    
  25  Normalizat    1.2991        .33254        .34108E-03   -.83594    
  26  Prefactor     .99885        .16920        .19858E-03   -.92768    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.36587e-09
Minuit parameter uncertainties:
  1  9.31682e-05
  2  0.000490944
  3  0.00396734
  4  4.20759e-05
  5  34.1816
  6  8.0155e-05
  7  12.9743
  8  0.0001015
  9  7.16055
  10  17.6154
  11  0.000432494
  12  1.08205e-05
  13  17.9687
  14  0.0048088
  15  3.48662e-05
  16  0.000164567
  17  0.000546841
  18  4.96288e-05
  19  9.83872e-05
  20  1.10469e-05
  21  4.61652e-06
  22  2.44344
  23  1.07065e-05
  24  2.04691
  25  0.333093
  26  0.169289
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.001e-04  4.809e-03  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.988e-01  1.693e-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.299e+00  3.331e-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.27e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.38e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/229970/likelihoodResults_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.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) = 5812.31737972
delta logL = -7.66350676713e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5812.16508635
delta logL = 0.152216740665

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .25233       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3330       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2356       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0182       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=   5812.165     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      429 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24973        8.9203        .10214E-01    .21161E-02
   2  alpha         4.3409        2.7871        .50000        .54795E-04
   3  Normalizat    1.2355        .50664E-01    .78696E-01   -.45208E-05
   4  Prefactor     1.0181        .26438E-01    .42327E-01   -.99652E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.249732
  alpha      = 4.34091
  Normalizat = 1.23554
  Prefactor  = 1.01812
 **********
 **   18 **HESSE 
 **********

 FCN=   5812.165     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      462 TOTAL
                     EDM=   .35E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24973        36.482        .63780E-04   -1.5608    
   2  alpha         4.3409        4.5768        .48050E-01    .82768    
   3  Normalizat    1.2355        .23431        .34835E-03   -.85511    
   4  Prefactor     1.0181        .11590        .19682E-03   -.92128    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.47265e-06
Minuit parameter uncertainties:
  1  6.03938
  2  14.0258
  3  0.234514
  4  0.115928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229970': 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) = 5812.16508397
delta logL = 0.152219122927

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.497e-01  6.039e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.341e+00  1.403e+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:  1.018e+00  1.159e-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.236e+00  2.345e-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/229970/cmap_HighResolution_611539201_611798401_4FGL_J1159.3-2142_daily_bin1436.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.38e-05', job_status='DONE', photon_flux_upper_limit='1.27e-07', time_completed='2021-09-04 19:18:16.064277', job_id='229970', GAL2='1.02', fit_tolerance='1e-08', EG2='1.24', EG='1.30', time_epoch_completed='1630808296.06', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.00', dlogl='1.52e-01', ts2='0.33', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1436' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:18:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 229970: <4FGL_J1159.3-2142_daily_bin1436> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1436 179.843 -21.7038 611539201 611798401 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             355.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            753 sec.

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

