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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1104
RA = 179.843, Dec = -21.7038
tmin = 525484801, tmax = 525744001
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='228248', job_status='RUN', time_executed='2021-09-04 19:01:49.275872', time_epoch_executed='1630807309.28' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1104'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228248

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228248/ft1_4FGL_J1159.3-2142_daily_bin1104.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228248/ft1_4FGL_J1159.3-2142_daily_bin1104.fits outfile=/scratch/kocevski/228248/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1104.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=525484801.0 tmax=525744001.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.93
user 3.42
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits" evtable="EVENTS" scfile=/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits sctable="SC_DATA" outfile=/scratch/kocevski/228248/ltcube_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.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/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits
.....................!
real 12.14
user 11.79
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits sctable="SC_DATA" expcube=/scratch/kocevski/228248/ltcube_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.fits outfile=/scratch/kocevski/228248/expmap_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.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/228248/ltcube_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.fits
.....................!
real 191.76
user 185.83
sys 5.38

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/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits scfile=/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits outfile=/scratch/kocevski/228248/cmap_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.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.87
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits scfile=/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits outfile=/scratch/kocevski/228248/cmap_HighResolution_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.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.89
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits evtable="EVENTS" scfile=/scratch/kocevski/228248/ft2_4FGL_J1159.3-2142_daily_bin1104.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228248/Model_4FGL_J1159.3-2142_daily_bin1104.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/228248/ft1_filtered_4FGL_J1159.3-2142_daily_bin1104.fits.....................!
real 51.14
user 48.49
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .74922E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    57.582       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2520       1.0000         .10000E-03   10000.    
     4 'Prefactor '    16.485       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .63198       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.6019       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.228       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    5.6770       1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    100.09       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.985       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    19.152       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1936       1.0000         .10000E-03   10000.    
    22 'Prefactor '    4.8347       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.3905       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4063       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .76448       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=   5468.386     FROM MIGRAD    STATUS=CONVERGED    627 CALLS     3557 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    542.23        .32038E-05** at limit **
   2  Prefactor     57.580        126.92       -.36689E-06   -.16358E-04
   3  Prefactor     6.4101        142.47        .10555E-04    .10608E-05
   4  Prefactor     16.460        20.688       -.13138E-05   -.44412E-04
   5  Prefactor     .10000E-03    32.876       -.11246E-05** at limit **
   6  norm          .63176        1.4969        .20640E-06    .10502E-03
   7  Prefactor     3.6015        9.0733       -.34768E-07   -.99375E-05
   8  Prefactor     .10000E-03    21.678       -.13185E-05** at limit **
   9  Prefactor     .10000E-03    26.861        .68339E-05** at limit **
  10  Prefactor     .10000E-03    9.1481        .13073E-06** at limit **
  11  Prefactor     .10000E-03    12.890       -.36412E-07** at limit **
  12  norm          31.212        23.917        .10909E-05   -.20383E-04
  13  Prefactor     .10000E-03    7.4435       -.53871E-06** at limit **
  14  norm          5.6749        5.2654       -.36269E-06   -.14458E-04
  15  Prefactor     13.955        10.703       -.15850E-06   -.31535E-04
  16  Prefactor     100.18        65.568        .19308E-05   -.13453E-04
  17  Prefactor     39.972        59.167        .18446E-06   -.12877E-04
  18  Prefactor     .10000E-03    8.6597       -.75044E-07** at limit **
  19  Prefactor     .10000E-03    23.691        .26648E-06** at limit **
  20  Prefactor     19.111        33.941        .35578E-05   -.20800E-04
  21  Prefactor     6.1902        8.7488       -.44244E-06   -.15282E-04
  22  Prefactor     4.8351        2.8336        .44807E-07   -.30694E-05
  23  Prefactor     .10000E-03    16.963        .72850E-06** at limit **
  24  norm          2.3907        1.4906       -.28810E-07   -.58641E-04
  25  Normalizat    1.4064        .27591       -.94979E-06   -.25791E-04
  26  Prefactor     .76441        .13809       -.78392E-07   -.11860E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 57.5801
  Prefactor  = 6.4101
  Prefactor  = 16.4601
  Prefactor  = 0.0001
  norm       = 0.631762
  Prefactor  = 3.60146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.2116
  Prefactor  = 0.0001
  norm       = 5.67492
  Prefactor  = 13.9551
  Prefactor  = 100.181
  Prefactor  = 39.9722
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 19.1112
  Prefactor  = 6.19024
  Prefactor  = 4.83506
  Prefactor  = 0.0001
  norm       = 2.39066
  Normalizat = 1.40645
  Prefactor  = 0.764406
 **********
 **   18 **HESSE 
 **********

 FCN=   5468.386     FROM HESSE     STATUS=OK           464 CALLS     4021 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    548.22        .37176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     57.580        124.45        .52867E-04   -1.4189    
   3  Prefactor     6.4101        140.92        .16054E-03   -1.5202    
   4  Prefactor     16.460        20.611        .98646E-04   -1.4896    
   5  Prefactor     .10000E-03    32.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .63176        1.4662        .12812E-03   -1.5549    
   7  Prefactor     3.6015        9.0629        .21291E-03   -1.5328    
   8  Prefactor     .10000E-03    21.662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.864        .27488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.1732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    12.894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.212        23.901        .71701E-04   -1.4590    
  13  Prefactor     .10000E-03    7.4498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          5.6749        5.2640        .77074E-03   -1.5231    
  15  Prefactor     13.955        10.675        .10721E-03   -1.4961    
  16  Prefactor     100.18        65.510        .20092E-03   -1.3703    
  17  Prefactor     39.972        59.040        .63389E-04   -1.4443    
  18  Prefactor     .10000E-03    8.6613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    23.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     19.111        33.849        .91519E-04   -1.4833    
  21  Prefactor     6.1902        8.7594        .80654E-03   -1.5210    
  22  Prefactor     4.8351        2.8338        .88200E-04   -1.5268    
  23  Prefactor     .10000E-03    17.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.3907        1.4867        .68640E-04   -1.5399    
  25  Normalizat    1.4064        .32682        .31505E-03   -.80442    
  26  Prefactor     .76441        .16410        .21038E-03   -1.0105    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.34243e-11
Minuit parameter uncertainties:
  1  0.000755933
  2  125.016
  3  60.2722
  4  20.6203
  5  2.50676e-05
  6  1.46625
  7  9.06631
  8  3.6156e-05
  9  1.54839e-05
  10  8.79239e-06
  11  4.58956e-06
  12  23.9083
  13  6.67751e-06
  14  5.26443
  15  10.6769
  16  65.5574
  17  59.1264
  18  2.76039e-06
  19  9.73202e-06
  20  33.883
  21  8.7612
  22  2.83388
  23  2.42539e-05
  24  1.48671
  25  0.327306
  26  0.1642
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  5.675e+00  5.264e+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:  7.644e-01  1.642e-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.406e+00  3.273e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 5.15e-08 +/- 4.77e-08
Energy Flux (Fixed Index): 1.78e-05 +/- 1.65e-05

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

Saving results to:
/scratch/kocevski/228248/likelihoodResults_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.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) = 5467.61434109
delta logL = 0.771270639949

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5467.60820677
delta logL = 0.777404957687

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.4022       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4078       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4404       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75528       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=   5467.608     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3917        4.7631        .43224E-02    .82908E-04
   2  alpha         1.4067        .52024        .42378       -.36412E-04
   3  Normalizat    1.4404        .26401        .70504E-01    .40287E-04
   4  Prefactor     .75528        .13525        .43132E-01    .37532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.39174
  alpha      = 1.40672
  Normalizat = 1.44043
  Prefactor  = 0.755278
 **********
 **   18 **HESSE 
 **********

 FCN=   5467.608     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3917        5.9124        .14775E-03   -1.5244    
   2  alpha         1.4067        .71261        .16826E-01   -.45261    
   3  Normalizat    1.4404        .31472        .31193E-03   -.79466    
   4  Prefactor     .75528        .16155        .21150E-03   -1.0140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.49085e-11
Minuit parameter uncertainties:
  1  5.91305
  2  0.725115
  3  0.315148
  4  0.161649
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228248': 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) = 5467.60820519
delta logL = 0.777406541197

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  5.392e+00  5.913e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.407e+00  7.251e-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:  7.553e-01  1.616e-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.440e+00  3.151e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.56
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.41 +/- 0.73
Photon Flux (Free Index): 1.96e-08 +/- 2.49e-08
Energy Flux (Free Index): 3.47e-05 +/- 4.04e-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/228248/cmap_HighResolution_525484801_525744001_4FGL_J1159.3-2142_daily_bin1104.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-05', comment='SUCCESS', photon_flux='5.15e-08', energy_flux2='3.47e-05', photon_flux_error='4.77e-08', dlogl='7.77e-01', energy_flux='1.78e-05', photon_flux2='1.96e-08', job_status='DONE', time_completed='2021-09-04 19:14:02.106265', photon_index_error2='0.73', photon_index2='1.41', ts='1.99', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.62e-07', energy_flux_error2='4.04e-05', EG='1.41', time_epoch_completed='1630808042.11', return_code='0', job_id='228248', GAL2='0.76', EG2='1.44', return_code2='0', energy_flux_error='1.65e-05', photon_flux_error2='2.49e-08', ts2='3.56', photon_index='2.38' WHERE bin_id='1104' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:14:02 PDT 2021


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

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1104 179.843 -21.7038 525484801 525744001 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 :                                   721.12 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   813 sec.
    Turnaround time :                            816 sec.

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

