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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1592
RA = 179.843, Dec = -21.7038
tmin = 651974401, tmax = 652233601
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='230243', job_status='RUN', time_executed='2021-09-04 19:07:02.071219', time_epoch_executed='1630807622.07' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1592'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230243

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230243/ft1_4FGL_J1159.3-2142_daily_bin1592.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits


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

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

Done.
real 3.51
user 3.27
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230243/ft1_filtered_4FGL_J1159.3-2142_daily_bin1592.fits" evtable="EVENTS" scfile=/scratch/kocevski/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits sctable="SC_DATA" outfile=/scratch/kocevski/230243/ltcube_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.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/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits
.....................!
real 12.15
user 11.71
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230243/ft1_filtered_4FGL_J1159.3-2142_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits sctable="SC_DATA" expcube=/scratch/kocevski/230243/ltcube_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.fits outfile=/scratch/kocevski/230243/expmap_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.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/230243/ltcube_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.fits
.....................!
real 190.86
user 185.22
sys 5.14

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/230243/ft1_filtered_4FGL_J1159.3-2142_daily_bin1592.fits scfile=/scratch/kocevski/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits outfile=/scratch/kocevski/230243/cmap_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230243/ft1_filtered_4FGL_J1159.3-2142_daily_bin1592.fits evtable="EVENTS" scfile=/scratch/kocevski/230243/ft2_4FGL_J1159.3-2142_daily_bin1592.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230243/Model_4FGL_J1159.3-2142_daily_bin1592.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/230243/ft1_filtered_4FGL_J1159.3-2142_daily_bin1592.fits.....................!
real 61.54
user 60.13
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10623E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    25.392       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .47951E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.503       1.0000         .10000E-03   10000.    
     6 'norm      '    2.1234       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.5530       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    37.640       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    5.5298       1.0000         .10000E-03   10000.    
    13 'Prefactor '    38.756       1.0000         .10000E-03   10000.    
    14 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6012       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11461E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    139.33       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.228       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    5.4505       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.739       1.0000         .10000E-03   10000.    
    24 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2845       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .96392       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=   6921.627     FROM MIGRAD    STATUS=CONVERGED    634 CALLS     3128 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    22.124       -.43099E-05** at limit **
   2  Prefactor     25.382        44.806        .27121E-06    .11854E-04
   3  Prefactor     .10000E-03    25.376        .29028E-06** at limit **
   4  Prefactor     .10000E-03    4.7196        .23479E-07** at limit **
   5  Prefactor     53.449        47.763       -.42792E-05   -.15423E-03
   6  norm          2.1241        1.2058        .11037E-06    .24828E-05
   7  Prefactor     1.5380        12.666       -.62086E-06   -.15357E-03
   8  Prefactor     .10000E-03    83.107       -.23012E-06** at limit **
   9  Prefactor     .10000E-03    1.3896       -.18367E-07** at limit **
  10  Prefactor     37.640        24.426       -.11110E-08   -.15566E-04
  11  Prefactor     .10000E-03    10.909       -.25072E-07** at limit **
  12  norm          5.5269        21.734        .13548E-05    .10810E-04
  13  Prefactor     38.755        18.789        .44837E-06    .51184E-04
  14  norm          .10000E-03    2.5640        .11207E-08** at limit **
  15  Prefactor     4.5986        3.7126        .11809E-05   -.25264E-02
  16  Prefactor     .10000E-03    23.012        .44412E-05** at limit **
  17  Prefactor     .10000E-03    17.232        .14695E-06** at limit **
  18  Prefactor     .10000E-03    30.457       -.44327E-06** at limit **
  19  Prefactor     139.33        66.719       -.11653E-05   -.49704E-04
  20  Prefactor     10.212        24.732        .72924E-05    .17581E-03
  21  Prefactor     .10000E-03    5.5711        .35483E-07** at limit **
  22  Prefactor     5.4506        2.5826        .26949E-07   -.11912E-04
  23  Prefactor     13.739        12.293        .12187E-06    .24131E-05
  24  norm          .10000E-03    .50812        .18678E-08** at limit **
  25  Normalizat    1.2845        .24922       -.21187E-06   -.31217E-04
  26  Prefactor     .96398        .12873       -.49510E-06    .15406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 25.3818
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 53.4487
  norm       = 2.12412
  Prefactor  = 1.53798
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.64
  Prefactor  = 0.0001
  norm       = 5.52694
  Prefactor  = 38.755
  norm       = 0.0001
  Prefactor  = 4.5986
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 139.33
  Prefactor  = 10.2118
  Prefactor  = 0.0001
  Prefactor  = 5.45056
  Prefactor  = 13.7386
  norm       = 0.0001
  Normalizat = 1.2845
  Prefactor  = 0.963978
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.627     FROM HESSE     STATUS=OK           464 CALLS     3592 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    22.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     25.382        44.802        .79496E-04   -1.4700    
   3  Prefactor     .10000E-03    26.424        .13816       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.7300        .17649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     53.449        48.192        .54834E-04   -1.4244    
   6  norm          2.1241        1.2020        .65650E-04   -1.5416    
   7  Prefactor     1.5380        12.999        .34171E-03   -1.5460    
   8  Prefactor     .10000E-03    84.698        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.3924        .95768E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     37.640        24.501        .65327E-04   -1.4480    
  11  Prefactor     .10000E-03    10.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          5.5269        21.759        .17085E-03   -1.5238    
  13  Prefactor     38.755        18.845        .64383E-04   -1.4462    
  14  norm          .10000E-03    2.5724        .12990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5986        5.5849        .93823E-03   -1.5279    
  16  Prefactor     .10000E-03    23.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    30.643        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     139.33        66.649        .34126E-04   -1.3342    
  20  Prefactor     10.212        25.159        .12529E-03   -1.5069    
  21  Prefactor     .10000E-03    5.6488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     5.4506        2.5817        .89292E-04   -1.5241    
  23  Prefactor     13.739        12.296        .10806E-03   -1.4966    
  24  norm          .10000E-03    .51891        .57883E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2845        .29627        .34002E-03   -.84030    
  26  Prefactor     .96398        .15328        .20282E-03   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.89597e-09
Minuit parameter uncertainties:
  1  0.000298504
  2  44.8615
  3  0.00029667
  4  3.85754e-06
  5  48.2275
  6  1.20199
  7  8.94472
  8  7.12316e-05
  9  3.35684e-07
  10  24.5073
  11  1.86849e-06
  12  21.7902
  13  18.8483
  14  3.01597e-06
  15  5.5855
  16  0.000324637
  17  2.05818e-05
  18  2.53208e-05
  19  66.6852
  20  25.1849
  21  3.80528e-06
  22  2.58174
  23  12.2987
  24  9.68213e-07
  25  0.296661
  26  0.153348
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  3.016e-06  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.640e-01  1.533e-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.285e+00  2.967e-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: 9.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.32e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230243/likelihoodResults_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.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) = 6921.6285178
delta logL = -0.00184990028174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6921.62666438
delta logL = 3.51263224729e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11703E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3305       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2845       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96399       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6921.627     FROM MIGRAD    STATUS=FAILED        91 CALLS      286 TOTAL
                     EDM=   .17E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10056E-03    3.7623        .15861E-02** at limit **
   2  alpha         3.4997        3.2452        .17788E-01   -.17360E-05
   3  Normalizat    1.2845        .28439        .34002E-03    .12043E-03
   4  Prefactor     .96398        .15047        .20282E-03    .12984E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6921.627     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      400 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10056E-03    3.7623        .17948E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.4997        3.2452        .12708E-02    .41140    
   3  Normalizat    1.2845        .28439        .15257E-03   -.84030    
   4  Prefactor     .96398        .15047        .98432E-04   -.93940    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6921.627     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      430 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    3.8059        .31723E-03** at limit **
   2  alpha         3.5334        3.8875        .35576E-01    .41543E-07
   3  Normalizat    1.2845        .28456        .13601E-04   -.28253E-03
   4  Prefactor     .96398        .15060        .40564E-04   -.32416E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.53339
  Normalizat = 1.2845
  Prefactor  = 0.963979
 **********
 **   18 **HESSE 
 **********

 FCN=   6921.627     FROM HESSE     STATUS=OK            23 CALLS      453 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7889        .63446E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.5334        3.9024        .14230E-02    .42614    
   3  Normalizat    1.2845        .28462        .27202E-05   -.84030    
   4  Prefactor     .96398        .15063        .81128E-05   -.93940    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.88102e-10
Minuit parameter uncertainties:
  1  2.82549e-05
  2  203.007
  3  0.284966
  4  0.150691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230243': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6921.62666165
delta logL = 6.24059885013e-06

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  2.825e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.533e+00  2.030e+02  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:  9.640e-01  1.507e-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.284e+00  2.850e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/230243/cmap_HighResolution_651974401_652233601_4FGL_J1159.3-2142_daily_bin1592.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-05', job_status='DONE', photon_flux_upper_limit='9.63e-08', time_completed='2021-09-04 19:20:44.636431', job_id='230243', GAL2='0.96', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630808444.64', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1592' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 230243: <4FGL_J1159.3-2142_daily_bin1592> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1592> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:06:02 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:06:04 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:06:04 2021
Terminated at Sat Sep  4 19:20:45 2021
Results reported at Sat Sep  4 19:20:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1592 179.843 -21.7038 651974401 652233601 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 :                                   813.28 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             312.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   881 sec.
    Turnaround time :                            883 sec.

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

