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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1225
RA = 179.843, Dec = -21.7038
tmin = 556848001, tmax = 557107201
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='228450', job_status='RUN', time_executed='2021-09-04 19:03:51.436317', time_epoch_executed='1630807431.44' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228450

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228450/ft1_4FGL_J1159.3-2142_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228450/ft1_4FGL_J1159.3-2142_daily_bin1225.fits outfile=/scratch/kocevski/228450/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1225.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=556848001.0 tmax=557107201.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.60
user 3.39
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/228450/ltcube_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.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/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits
.....................!
real 12.24
user 11.85
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/228450/ltcube_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.fits outfile=/scratch/kocevski/228450/expmap_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.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/228450/ltcube_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.fits
.....................!
real 189.89
user 185.19
sys 4.30

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/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits scfile=/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits outfile=/scratch/kocevski/228450/cmap_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits scfile=/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits outfile=/scratch/kocevski/228450/cmap_HighResolution_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.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.57
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/228450/ft2_4FGL_J1159.3-2142_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228450/Model_4FGL_J1159.3-2142_daily_bin1225.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/228450/ft1_filtered_4FGL_J1159.3-2142_daily_bin1225.fits....................!
real 59.66
user 58.19
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .48208       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .49356E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7844       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.089       1.0000         .10000E-03   10000.    
    14 'norm      '    10.051       1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.139       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7545       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    24 'norm      '    .21110       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6068       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .83017       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=   6627.589     FROM MIGRAD    STATUS=CONVERGED    603 CALLS     3085 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.876        .50399E-05** at limit **
   2  Prefactor     .10000E-03    58.256        .20647E-04** at limit **
   3  Prefactor     .10000E-03    14.610       -.38098E-05** at limit **
   4  Prefactor     .56257        7.2649        .62338E-07    .23652E-04
   5  Prefactor     .10000E-03    30.407       -.19896E-04** at limit **
   6  norm          .10000E-03    .66305        .34377E-06** at limit **
   7  Prefactor     7.7860        14.774        .48054E-06   -.10154E-03
   8  Prefactor     .10000E-03    13.683       -.54237E-05** at limit **
   9  Prefactor     .10000E-03    3.2819        .51350E-07** at limit **
  10  Prefactor     .10000E-03    14.775       -.31227E-05** at limit **
  11  Prefactor     .10000E-03    15.816        .13623E-05** at limit **
  12  norm          .10000E-03    61.433        .84696E-05** at limit **
  13  Prefactor     28.090        22.431        .13190E-05   -.75109E-04
  14  norm          10.052        7.3301       -.16312E-06   -.18815E-03
  15  Prefactor     12.143        7.1762       -.61799E-05   -.51394E-03
  16  Prefactor     .10000E-03    19.634        .31759E-05** at limit **
  17  Prefactor     10.207        30.643        .77206E-04    .11180E-04
  18  Prefactor     .10000E-03    7.2326       -.20865E-06** at limit **
  19  Prefactor     .10000E-03    18.639        .53547E-05** at limit **
  20  Prefactor     .10000E-03    12.384        .45896E-05** at limit **
  21  Prefactor     .10000E-03    4.3331        .67799E-07** at limit **
  22  Prefactor     7.7547        2.9193        .94283E-07    .69101E-05
  23  Prefactor     10.527        11.777        .27363E-06   -.36534E-04
  24  norm          .21134        .75159       -.37422E-06   -.13257E-02
  25  Normalizat    1.6064        .25749       -.28780E-05   -.15133E-03
  26  Prefactor     .83021        .12452       -.13927E-05   -.29006E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.56257
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.78598
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 28.0897
  norm       = 10.0524
  Prefactor  = 12.143
  Prefactor  = 0.0001
  Prefactor  = 10.2068
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 7.75466
  Prefactor  = 10.5267
  norm       = 0.211345
  Normalizat = 1.6064
  Prefactor  = 0.830206
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.589     FROM HESSE     STATUS=OK           454 CALLS     3539 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    18.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.272        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    14.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .56257        61.215        .41573E-02   -1.5558    
   5  Prefactor     .10000E-03    30.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    8.9155        .12705E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.7860        14.774        .14372E-03   -1.5150    
   8  Prefactor     .10000E-03    13.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.3132        .14395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    15.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    63.214        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     28.090        22.462        .75591E-04   -1.4647    
  14  norm          10.052        7.3310        .12639E-03   -1.5074    
  15  Prefactor     12.143        7.1874        .11494E-03   -1.5011    
  16  Prefactor     .10000E-03    19.640        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.207        30.595        .12584E-03   -1.5069    
  18  Prefactor     .10000E-03    7.2359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    12.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.4110        .16541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7547        2.9181        .83095E-04   -1.5151    
  23  Prefactor     10.527        11.777        .12352E-03   -1.5059    
  24  norm          .21134        1.0757        .12721E-02   -1.5616    
  25  Normalizat    1.6064        .30678        .31417E-03   -.74831    
  26  Prefactor     .83021        .14811        .20940E-03   -.98624    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.06509e-10
Minuit parameter uncertainties:
  1  7.81944e-06
  2  3.12367e-05
  3  1.71818e-05
  4  11.748
  5  3.81141e-05
  6  9.81006e-05
  7  14.7813
  8  8.38887e-06
  9  1.47619e-05
  10  2.88187e-05
  11  2.93483e-05
  12  2.63537e-05
  13  22.4685
  14  7.3317
  15  7.18794
  16  2.16203e-06
  17  30.6423
  18  4.60338e-06
  19  1.85079e-05
  20  0.000197485
  21  1.11897e-05
  22  2.91816
  23  11.7792
  24  0.953413
  25  0.307143
  26  0.148179
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.005e+01  7.332e+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.302e-01  1.482e-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.606e+00  3.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.88
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 9.12e-08 +/- 6.65e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 2.29e-05

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) = 6627.54951324
delta logL = 0.0395511777806

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6627.54850997
delta logL = 0.0405544525966

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.2475       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5331       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83354       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=   6627.549     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      255 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.2506        121.55        .32948E-02    .15872E-03
   2  alpha         2.5335        3.7036        .31833        .45859E-04
   3  Normalizat    1.5951        .13945        .71200E-01    .96421E-05
   4  Prefactor     .83344        .55052E-01    .44152E-01    .11760E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.25061
  alpha      = 2.5335
  Normalizat = 1.59506
  Prefactor  = 0.833438
 **********
 **   18 **HESSE 
 **********

 FCN=   6627.549     FROM HESSE     STATUS=OK            33 CALLS      288 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.2506        6.6140        .13179E-03   -1.5100    
   2  alpha         2.5335        .54351        .12069E-01    .13400E-01
   3  Normalizat    1.5951        .29697        .31500E-03   -.75141    
   4  Prefactor     .83344        .14767        .20901E-03   -.98507    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17123e-12
Minuit parameter uncertainties:
  1  6.61453
  2  0.54789
  3  0.297297
  4  0.147741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228450': 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) = 6627.54850891
delta logL = 0.0405555117486

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  9.251e+00  6.615e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.534e+00  5.479e-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:  8.334e-01  1.477e-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.595e+00  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.04
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.53 +/- 0.55
Photon Flux (Free Index): 1.03e-07 +/- 7.24e-08
Energy Flux (Free Index): 3.10e-05 +/- 1.86e-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/228450/cmap_HighResolution_556848001_557107201_4FGL_J1159.3-2142_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.12e-08', energy_flux2='3.10e-05', photon_flux_error='6.65e-08', dlogl='4.06e-02', energy_flux='3.15e-05', photon_flux2='1.03e-07', job_status='DONE', time_completed='2021-09-04 19:15:47.150002', photon_index_error2='0.55', photon_index2='2.53', ts='4.88', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', energy_flux_error2='1.86e-05', EG='1.61', time_epoch_completed='1630808147.15', return_code='0', job_id='228450', GAL2='0.83', EG2='1.60', return_code2='0', energy_flux_error='2.29e-05', photon_flux_error2='7.24e-08', ts2='5.04', photon_index='2.38' WHERE bin_id='1225' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:15:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 228450: <4FGL_J1159.3-2142_daily_bin1225> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1225 179.843 -21.7038 556848001 557107201 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 :                                   693.29 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             273.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            904 sec.

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

