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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1136
RA = 179.843, Dec = -21.7038
tmin = 533779201, tmax = 534038401
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='228307', job_status='RUN', time_executed='2021-09-04 19:01:48.372220', time_epoch_executed='1630807308.37' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1136'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228307

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228307/ft1_4FGL_J1159.3-2142_daily_bin1136.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228307/ft1_4FGL_J1159.3-2142_daily_bin1136.fits outfile=/scratch/kocevski/228307/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1136.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=533779201.0 tmax=534038401.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.48
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits" evtable="EVENTS" scfile=/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits sctable="SC_DATA" outfile=/scratch/kocevski/228307/ltcube_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.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/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits
.....................!
real 11.71
user 11.34
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits sctable="SC_DATA" expcube=/scratch/kocevski/228307/ltcube_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.fits outfile=/scratch/kocevski/228307/expmap_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.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/228307/ltcube_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.fits
.....................!
real 189.85
user 184.33
sys 5.19

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/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits scfile=/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits outfile=/scratch/kocevski/228307/cmap_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits scfile=/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits outfile=/scratch/kocevski/228307/cmap_HighResolution_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits evtable="EVENTS" scfile=/scratch/kocevski/228307/ft2_4FGL_J1159.3-2142_daily_bin1136.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228307/Model_4FGL_J1159.3-2142_daily_bin1136.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/228307/ft1_filtered_4FGL_J1159.3-2142_daily_bin1136.fits.....................!
real 60.60
user 59.27
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    11.562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.4487       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .33740       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.3787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.626       1.0000         .10000E-03   10000.    
    12 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    33.660       1.0000         .10000E-03   10000.    
    14 'norm      '    4.7624       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.1620       1.0000         .10000E-03   10000.    
    16 'Prefactor '    24.389       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.654       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4877       1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.2285       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.6497       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3951       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80426       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=   6592.232     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     3060 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.022        .45647E-06** at limit **
   2  Prefactor     .10000E-03    50.682       -.16832E-05** at limit **
   3  Prefactor     .10000E-03    9.8659       -.99633E-07** at limit **
   4  Prefactor     11.563        11.624        .28281E-07    .75485E-05
   5  Prefactor     .10000E-03    14.232        .25878E-06** at limit **
   6  norm          .10000E-03    .70157        .13571E-06** at limit **
   7  Prefactor     9.4505        10.511        .19271E-06   -.83114E-06
   8  Prefactor     .10000E-03    8.6919       -.33538E-06** at limit **
   9  Prefactor     .29447        3.5331       -.43014E-06    .39113E-03
  10  Prefactor     7.3796        16.773        .18920E-06   -.63519E-05
  11  Prefactor     19.638        21.636        .88110E-06    .14259E-03
  12  norm          .10000E-03    10.674        .56041E-06** at limit **
  13  Prefactor     33.655        25.650       -.23845E-06   -.10189E-03
  14  norm          4.7653        6.0190       -.11832E-06   -.22385E-03
  15  Prefactor     7.1636        6.8426        .21968E-06    .55723E-04
  16  Prefactor     24.361        42.715       -.42809E-05   -.16596E-03
  17  Prefactor     10.647        33.001       -.11131E-05   -.31787E-04
  18  Prefactor     .10000E-03    16.044       -.12769E-05** at limit **
  19  Prefactor     .10000E-03    46.325        .10772E-05** at limit **
  20  Prefactor     .10000E-03    7.7471        .16963E-06** at limit **
  21  Prefactor     6.4879        6.4065        .24562E-05   -.36202E-03
  22  Prefactor     1.2284        1.5130       -.29758E-06   -.10252E-03
  23  Prefactor     .10000E-03    4.5412        .24590E-07** at limit **
  24  norm          2.6494        1.4663        .32771E-07   -.16348E-04
  25  Normalizat    1.3945        .24371       -.60025E-06    .41996E-04
  26  Prefactor     .80458        .12071       -.42407E-07    .75068E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 11.5627
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.45046
  Prefactor  = 0.0001
  Prefactor  = 0.294468
  Prefactor  = 7.37962
  Prefactor  = 19.6382
  norm       = 0.0001
  Prefactor  = 33.6545
  norm       = 4.76526
  Prefactor  = 7.16358
  Prefactor  = 24.3614
  Prefactor  = 10.6472
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.48786
  Prefactor  = 1.2284
  Prefactor  = 0.0001
  norm       = 2.6494
  Normalizat = 1.39451
  Prefactor  = 0.80458
 **********
 **   18 **HESSE 
 **********

 FCN=   6592.232     FROM HESSE     STATUS=OK           460 CALLS     3520 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    50.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.8677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     11.563        11.625        .11782E-03   -1.5028    
   5  Prefactor     .10000E-03    14.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.4311        .13104E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.4505        10.555        .13037E-03   -1.5093    
   8  Prefactor     .10000E-03    8.7018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .29447        27.663        .27944E-02   -1.5599    
  10  Prefactor     7.3796        16.844        .14765E-03   -1.5165    
  11  Prefactor     19.638        21.773        .90409E-04   -1.4821    
  12  norm          .10000E-03    10.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     33.655        25.557        .69070E-04   -1.4547    
  14  norm          4.7653        5.9833        .17552E-03   -1.5271    
  15  Prefactor     7.1636        6.8014        .14989E-03   -1.5173    
  16  Prefactor     24.361        44.226        .81113E-04   -1.4720    
  17  Prefactor     10.647        32.972        .12275E-03   -1.5055    
  18  Prefactor     .10000E-03    16.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.7609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.4879        6.5809        .78783E-03   -1.5198    
  22  Prefactor     1.2284        1.4931        .10497E-03   -1.5486    
  23  Prefactor     .10000E-03    4.5490        .16898E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.6494        1.4647        .70360E-04   -1.5382    
  25  Normalizat    1.3945        .29312        .30485E-03   -.80788    
  26  Prefactor     .80458        .14451        .20185E-03   -.99560    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.46175e-09
Minuit parameter uncertainties:
  1  5.81629e-05
  2  0.000362132
  3  9.11447e-06
  4  11.6275
  5  2.708e-05
  6  9.84084e-06
  7  10.5566
  8  3.01006e-05
  9  5.70991
  10  16.8547
  11  21.7816
  12  5.13715e-05
  13  25.5655
  14  5.98403
  15  6.80216
  16  44.2857
  17  33.0284
  18  2.86065e-05
  19  0.000471173
  20  1.6833e-05
  21  6.58167
  22  1.49311
  23  5.03009e-07
  24  1.46475
  25  0.293475
  26  0.144579
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  4.765e+00  5.984e+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.046e-01  1.446e-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.395e+00  2.935e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.67
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 4.32e-08 +/- 5.43e-08
Energy Flux (Fixed Index): 1.49e-05 +/- 1.87e-05

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

Saving results to:
/scratch/kocevski/228307/likelihoodResults_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.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) = 6591.46588177
delta logL = 0.7656576735

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6591.41906977
delta logL = 0.812469672484

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5336       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.9045       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2624       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84802       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=   6591.419     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      257 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5358        13.095        .86136E-02    .91731E-03
   2  alpha         3.9041        4.2479        .30160        .74893E-04
   3  Normalizat    1.2627        .71004E-01    .71626E-01    .16695E-04
   4  Prefactor     .84791        .36241E-01    .44339E-01   -.59908E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.53581
  alpha      = 3.90415
  Normalizat = 1.26268
  Prefactor  = 0.847911
 **********
 **   18 **HESSE 
 **********

 FCN=   6591.419     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      290 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5358        25.068        .56996E-04   -1.5460    
   2  alpha         3.9041        4.4181        .12485E-01    .59639    
   3  Normalizat    1.2627        .31509        .31694E-03   -.84687    
   4  Prefactor     .84791        .15563        .19698E-03   -.97986    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.36378e-10
Minuit parameter uncertainties:
  1  12.4154
  2  4.96619
  3  0.315567
  4  0.155706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228307': 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) = 6591.41906714
delta logL = 0.812472309042

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.536e+00  1.242e+01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.904e+00  4.966e+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.479e-01  1.557e-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.263e+00  3.156e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.90 +/- 4.97
Photon Flux (Free Index): 1.59e-07 +/- 1.49e-07
Energy Flux (Free Index): 2.58e-05 +/- 1.81e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/228307/cmap_HighResolution_533779201_534038401_4FGL_J1159.3-2142_daily_bin1136.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.14e-05', comment='SUCCESS', photon_flux='4.32e-08', energy_flux2='2.58e-05', photon_flux_error='5.43e-08', dlogl='8.12e-01', energy_flux='1.49e-05', photon_flux2='1.59e-07', job_status='DONE', time_completed='2021-09-04 19:14:52.816510', photon_index_error2='4.97', photon_index2='3.90', ts='1.67', fit_tolerance='1e-08', GAL='0.80', photon_index_error='0.00', photon_flux_upper_limit='1.49e-07', energy_flux_error2='1.81e-05', EG='1.39', time_epoch_completed='1630808092.82', return_code='0', job_id='228307', GAL2='0.85', EG2='1.26', return_code2='102', energy_flux_error='1.87e-05', photon_flux_error2='1.49e-07', ts2='3.55', photon_index='2.38' WHERE bin_id='1136' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:14:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0290>
Subject: Job 228307: <4FGL_J1159.3-2142_daily_bin1136> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1136 179.843 -21.7038 533779201 534038401 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 :                                   777.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             318.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            862 sec.

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

