/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 180 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 = 7567
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin179
RA = 179.843, Dec = -21.7038
tmin = 285724801, tmax = 285984001
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='221800', job_status='RUN', time_executed='2021-09-04 18:44:27.863464', time_epoch_executed='1630806267.86' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='179'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221800

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221800/ft1_4FGL_J1159.3-2142_daily_bin179.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221800/ft1_4FGL_J1159.3-2142_daily_bin179.fits outfile=/scratch/kocevski/221800/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin179.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=285724801.0 tmax=285984001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.18
user 3.92
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits" evtable="EVENTS" scfile=/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits sctable="SC_DATA" outfile=/scratch/kocevski/221800/ltcube_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.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/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits
.....................!
real 11.90
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits sctable="SC_DATA" expcube=/scratch/kocevski/221800/ltcube_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.fits outfile=/scratch/kocevski/221800/expmap_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.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/221800/ltcube_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.fits
.....................!
real 190.79
user 185.24
sys 4.00

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/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits scfile=/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits outfile=/scratch/kocevski/221800/cmap_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits scfile=/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits outfile=/scratch/kocevski/221800/cmap_HighResolution_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.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.56
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits evtable="EVENTS" scfile=/scratch/kocevski/221800/ft2_4FGL_J1159.3-2142_daily_bin179.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221800/Model_4FGL_J1159.3-2142_daily_bin179.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/221800/ft1_filtered_4FGL_J1159.3-2142_daily_bin179.fits.....................!
real 54.52
user 52.69
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    30.735       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .56714E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.7699       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6120       1.0000         .10000E-03   10000.    
     8 'Prefactor '    44.941       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.0783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8705       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9278       1.0000         .10000E-03   10000.    
    16 'Prefactor '    69.570       1.0000         .10000E-03   10000.    
    17 'Prefactor '    43.975       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .33844       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.2742       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    1.9997       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5748       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .85242       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=   5665.022     FROM MIGRAD    STATUS=CONVERGED    597 CALLS     3055 TOTAL
                     EDM=   .70E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     30.648        54.310        .78638E-05   -.55053E-04
   2  Prefactor     .10001E-03    1560.0        .10940E-03** at limit **
   3  Prefactor     .10000E-03    13.358        .96132E-06** at limit **
   4  Prefactor     .10000E-03    6.3565       -.92024E-07** at limit **
   5  Prefactor     .10000E-03    107.38       -.45022E-05** at limit **
   6  norm          1.7706        1.2871       -.11218E-06   -.46041E-03
   7  Prefactor     1.6110        12.274        .72189E-05   -.24244E-04
   8  Prefactor     44.952        40.910       -.92373E-06   -.35873E-04
   9  Prefactor     4.0783        5.4119        .18487E-06    .26993E-05
  10  Prefactor     .10000E-03    27.594        .13953E-06** at limit **
  11  Prefactor     .10000E-03    8.9240       -.11521E-06** at limit **
  12  norm          .10000E-03    11.892        .67594E-06** at limit **
  13  Prefactor     .10000E-03    15.501       -.12416E-05** at limit **
  14  norm          2.8696        7.8876        .26927E-06    .63115E-05
  15  Prefactor     2.9281        5.6480        .28151E-06    .21370E-04
  16  Prefactor     69.563        80.651        .11155E-05    .13482E-04
  17  Prefactor     43.972        45.586        .69684E-06    .80759E-05
  18  Prefactor     .10000E-03    8.8992        .15067E-06** at limit **
  19  Prefactor     .10000E-03    22.581        .28340E-06** at limit **
  20  Prefactor     .10000E-03    27.772       -.15282E-07** at limit **
  21  Prefactor     .33894        5.3550        .47959E-06   -.10102E-03
  22  Prefactor     6.2744        2.8477        .26974E-07   -.67189E-04
  23  Prefactor     .10000E-03    11.099       -.97942E-06** at limit **
  24  norm          1.9996        1.5204        .40077E-07    .59140E-05
  25  Normalizat    1.5745        .28104       -.21947E-05   -.77201E-04
  26  Prefactor     .85256        .13933        .46068E-06   -.18500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 30.648
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.77056
  Prefactor  = 1.611
  Prefactor  = 44.9517
  Prefactor  = 4.07831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.86963
  Prefactor  = 2.92809
  Prefactor  = 69.5634
  Prefactor  = 43.9715
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.338945
  Prefactor  = 6.27438
  Prefactor  = 0.0001
  norm       = 1.99962
  Normalizat = 1.57452
  Prefactor  = 0.852563
 **********
 **   18 **HESSE 
 **********

 FCN=   5665.022     FROM HESSE     STATUS=OK           454 CALLS     3509 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     30.648        52.432        .72271E-04   -1.4600    
   2  Prefactor     .10001E-03    1508.4        .19023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.367        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.3673        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    107.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.7706        1.2806        .70124E-04   -1.5442    
   7  Prefactor     1.6110        12.279        .16679E-02   -1.5454    
   8  Prefactor     44.952        40.951        .29903E-03   -1.4366    
   9  Prefactor     4.0783        5.4036        .19427E-03   -1.5304    
  10  Prefactor     .10000E-03    27.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    8.9246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    11.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.527        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8696        7.7843        .23992E-03   -1.5369    
  15  Prefactor     2.9281        5.5914        .22655E-03   -1.5366    
  16  Prefactor     69.563        79.867        .48126E-04   -1.4038    
  17  Prefactor     43.972        45.346        .60456E-04   -1.4381    
  18  Prefactor     .10000E-03    8.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    27.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .33894        17.995        .32819E-02   -1.5592    
  22  Prefactor     6.2744        2.8431        .81336E-04   -1.5207    
  23  Prefactor     .10000E-03    11.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          1.9996        1.5153        .78130E-04   -1.5425    
  25  Normalizat    1.5745        .33309        .31894E-03   -.75705    
  26  Prefactor     .85256        .16581        .21227E-03   -.97819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.26157e-08
Minuit parameter uncertainties:
  1  52.5113
  2  0.00777068
  3  4.08612e-05
  4  1.71504e-06
  5  0.000582369
  6  1.28057
  7  8.89742
  8  40.9768
  9  5.40426
  10  2.56332e-05
  11  4.24684e-06
  12  2.72062e-05
  13  6.16915e-05
  14  7.78704
  15  5.5924
  16  79.9902
  17  45.3813
  18  3.55125e-06
  19  1.35255e-05
  20  1.1182e-07
  21  4.94016
  22  2.84319
  23  3.10986e-05
  24  1.5153
  25  0.33356
  26  0.165908
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.870e+00  7.787e+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:  8.526e-01  1.659e-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.575e+00  3.336e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/221800/likelihoodResults_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.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) = 5664.20366107
delta logL = 0.818540530025

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5664.16732384
delta logL = 0.854877761341

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .57077       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.3973       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4320       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89981       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=   5664.167     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      303 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .57012        7.8585        .95686E-02    .12783E-02
   2  alpha         4.3980        4.6461        .42439        .45733E-04
   3  Normalizat    1.4319        .76190E-01    .74838E-01    .18372E-05
   4  Prefactor     .89986        .39172E-01    .45003E-01   -.62640E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.570119
  alpha      = 4.39804
  Normalizat = 1.43193
  Prefactor  = 0.899858
 **********
 **   18 **HESSE 
 **********

 FCN=   5664.167     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      336 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .57012        16.705        .43337E-04   -1.5557    
   2  alpha         4.3980        3.9274        .21072E-01    .86211    
   3  Normalizat    1.4319        .29830        .33118E-03   -.79709    
   4  Prefactor     .89986        .15167        .20712E-03   -.96146    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.09702e-10
Minuit parameter uncertainties:
  1  6.17345
  2  5.87545
  3  0.298668
  4  0.151746
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221800': 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) = 5664.16732362
delta logL = 0.85487798848

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  5.701e-01  6.173e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  4.398e+00  5.875e+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:  8.999e-01  1.517e-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.432e+00  2.987e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.05
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 4.40 +/- 5.88
Photon Flux (Free Index): 1.43e-07 +/- 1.14e-07
Energy Flux (Free Index): 2.13e-05 +/- 2.61e-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/221800/cmap_HighResolution_285724801_285984001_4FGL_J1159.3-2142_daily_bin179.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.80e-05', comment='SUCCESS', energy_flux2='2.13e-05', dlogl='8.55e-01', photon_flux2='1.43e-07', job_status='DONE', time_completed='2021-09-04 18:56:13.084797', photon_index_error2='5.88', photon_index2='4.40', ts='0.17', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='1.68e-07', energy_flux_error2='2.61e-05', EG='1.57', time_epoch_completed='1630806973.08', return_code='0', job_id='221800', GAL2='0.90', EG2='1.43', return_code2='102', photon_flux_error2='1.14e-07', ts2='2.05', photon_index='2.38' WHERE bin_id='179' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:56:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 221800: <4FGL_J1159.3-2142_daily_bin179> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin179> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:41:10 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:41:12 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:41:12 2021
Terminated at Sat Sep  4 18:56:13 2021
Results reported at Sat Sep  4 18:56:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin179 179.843 -21.7038 285724801 285984001 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 :                                   701.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   901 sec.
    Turnaround time :                            903 sec.

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

