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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1619
RA = 179.843, Dec = -21.7038
tmin = 658972801, tmax = 659232001
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='325407', job_status='RUN', time_executed='2021-12-07 22:46:29.220329', time_epoch_executed='1638945989.22' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/325407

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/325407/ft1_4FGL_J1159.3-2142_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/325407/ft1_4FGL_J1159.3-2142_daily_bin1619.fits outfile=/scratch/kocevski/325407/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1619.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=658972801.0 tmax=659232001.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.04
user 2.80
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.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/325407/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/325407/ltcube_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.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/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits
.....................!
real 18.27
user 17.88
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/325407/ltcube_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.fits outfile=/scratch/kocevski/325407/expmap_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.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/325407/ltcube_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.fits
.....................!
real 196.01
user 189.53
sys 6.10

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/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits outfile=/scratch/kocevski/325407/cmap_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits outfile=/scratch/kocevski/325407/cmap_HighResolution_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.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.59
user 0.41
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/325407/ft2_4FGL_J1159.3-2142_daily_bin1619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/325407/Model_4FGL_J1159.3-2142_daily_bin1619.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/325407/ft1_filtered_4FGL_J1159.3-2142_daily_bin1619.fits.....................!
real 73.75
user 72.21
sys 1.37

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .18334       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4274       1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.641       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    21.373       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.8528       1.0000         .10000E-03   10000.    
    12 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.1569       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.256       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11896E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .65147E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9604       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    .93446       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5984       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80509       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=   8360.215     FROM MIGRAD    STATUS=CONVERGED    637 CALLS     2670 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.228       -.19900E-06** at limit **
   2  Prefactor     .10000E-03    57.613        .33632E-05** at limit **
   3  Prefactor     .10000E-03    7.7895        .59570E-06** at limit **
   4  Prefactor     .22683        91.723       -.14891E-04    .78401E-04
   5  Prefactor     .10000E-03    19.793        .98396E-06** at limit **
   6  norm          1.4276        .90078       -.71818E-07    .53599E-05
   7  Prefactor     21.641        9.4582       -.25561E-07    .73198E-05
   8  Prefactor     .10000E-03    8.6873        .62639E-06** at limit **
   9  Prefactor     .10000E-03    1.1222       -.60890E-06** at limit **
  10  Prefactor     21.376        17.246       -.23699E-06    .33513E-04
  11  Prefactor     6.8367        24.110       -.38221E-05    .47518E-06
  12  norm          .10000E-03    21.505       -.16242E-05** at limit **
  13  Prefactor     .10000E-03    10.993        .93968E-06** at limit **
  14  norm          2.1578        2.6357       -.23483E-05    .34311E-04
  15  Prefactor     11.257        5.6039       -.62278E-06    .23147E-03
  16  Prefactor     .10000E-03    8.6794        .29261E-06** at limit **
  17  Prefactor     .10000E-03    23.478       -.21126E-05** at limit **
  18  Prefactor     .10000E-03    4.1331       -.11479E-06** at limit **
  19  Prefactor     .10000E-03    8.5363       -.10980E-05** at limit **
  20  Prefactor     .10038E-03    36.799       -.67487E-05** at limit **
  21  Prefactor     .10000E-03    2.6701       -.23457E-06** at limit **
  22  Prefactor     6.9606        2.5232       -.10635E-06    .81599E-04
  23  Prefactor     .10000E-03    7.7681       -.15922E-05** at limit **
  24  norm          .93441        .81174        .15554E-07   -.32389E-04
  25  Normalizat    1.5983        .22117       -.31847E-06    .49029E-03
  26  Prefactor     .80508        .11508        .33888E-05    .89070E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.22683
  Prefactor  = 0.0001
  norm       = 1.42756
  Prefactor  = 21.6411
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3759
  Prefactor  = 6.83667
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.15782
  Prefactor  = 11.2567
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100384
  Prefactor  = 0.0001
  Prefactor  = 6.96058
  Prefactor  = 0.0001
  norm       = 0.934411
  Normalizat = 1.59827
  Prefactor  = 0.805082
 **********
 **   18 **HESSE 
 **********

 FCN=   8360.215     FROM HESSE     STATUS=OK           464 CALLS     3134 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    7.8042        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .22683        95.706        .42799E-02   -1.5613    
   5  Prefactor     .10000E-03    19.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4276        .89429        .66265E-04   -1.5469    
   7  Prefactor     21.641        9.4978        .86101E-04   -1.4777    
   8  Prefactor     .10000E-03    8.7047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.1240        .94543E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     21.376        17.334        .86639E-04   -1.4783    
  11  Prefactor     6.8367        24.104        .15326E-03   -1.5185    
  12  norm          .10000E-03    21.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.1578        2.6413        .16005E-03   -1.5414    
  15  Prefactor     11.257        5.5981        .11941E-03   -1.5037    
  16  Prefactor     .10000E-03    8.6858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    23.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1335        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    8.5709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10038E-03    26.525        .12001       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    2.6862        .14587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9606        2.5225        .84941E-04   -1.5180    
  23  Prefactor     .10000E-03    7.8548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          .93441        .83272        .74708E-03   -1.5515    
  25  Normalizat    1.5983        .25941        .29677E-03   -.75053    
  26  Prefactor     .80508        .13201        .21027E-03   -.99541    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.55143e-09
Minuit parameter uncertainties:
  1  2.26997e-05
  2  0.000396314
  3  2.69625e-05
  4  9.33156
  5  6.0189e-05
  6  0.894302
  7  9.49848
  8  2.2251e-05
  9  1.96131e-06
  10  17.3377
  11  24.1382
  12  9.03489e-05
  13  0.000227713
  14  2.64147
  15  5.59837
  16  2.2988e-05
  17  5.98661e-05
  18  3.79924e-07
  19  5.01485e-05
  20  0.00638593
  21  7.73237e-06
  22  2.52256
  23  4.83996e-05
  24  0.832734
  25  0.259633
  26  0.132057
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  2.158e+00  2.641e+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.051e-01  1.321e-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.598e+00  2.596e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 179.843 -21.704
Photon Index (Fixed Index): 2.38 +/- 0.00
Photon Flux (Fixed Index): 1.96e-08 +/- 2.39e-08
Energy Flux (Fixed Index): 6.75e-06 +/- 8.27e-06

TS (Fixed Index): 1.01
Ra Dec: 179.843 -21.704
Photon Flux Upper Limit: 8.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/325407/likelihoodResults_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.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) = 8360.18894581
delta logL = 0.0257114207216

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8360.17849246
delta logL = 0.0361647706559

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7352       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7776       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5869       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80886       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=   8360.178     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      207 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7336        55.312        .79649E-02    .67442E-03
   2  alpha         2.7782        2.8606        .41477        .43243E-04
   3  Normalizat    1.5869        .74276E-01    .67284E-01    .35019E-05
   4  Prefactor     .80886        .32407E-01    .43832E-01    .12808E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73355
  alpha      = 2.77822
  Normalizat = 1.58692
  Prefactor  = 0.808864
 **********
 **   18 **HESSE 
 **********

 FCN=   8360.178     FROM HESSE     STATUS=OK            33 CALLS      240 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7336        3.5390        .13628E-03   -1.5445    
   2  alpha         2.7782        1.7397        .28072E-01    .11152    
   3  Normalizat    1.5869        .25317        .29763E-03   -.75365    
   4  Prefactor     .80886        .13118        .20983E-03   -.99402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.8497e-08
Minuit parameter uncertainties:
  1  3.53946
  2  1.92723
  3  0.253376
  4  0.131229
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/325407': 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) = 8360.17849229
delta logL = 0.0361649368424

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.734e+00  3.539e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.778e+00  1.927e+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.089e-01  1.312e-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.587e+00  2.534e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.08
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 2.78 +/- 1.93
Photon Flux (Free Index): 2.76e-08 +/- 4.68e-08
Energy Flux (Free Index): 6.92e-06 +/- 8.06e-06

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/325407/cmap_HighResolution_658972801_659232001_4FGL_J1159.3-2142_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.83e-05', comment='SUCCESS', photon_flux='1.96e-08', energy_flux2='6.92e-06', photon_flux_error='2.39e-08', dlogl='3.62e-02', energy_flux='6.75e-06', photon_flux2='2.76e-08', job_status='DONE', time_completed='2021-12-07 23:01:10.744385', photon_index_error2='1.93', photon_index2='2.78', ts='1.01', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', photon_flux_upper_limit='8.20e-08', energy_flux_error2='8.06e-06', EG='1.60', time_epoch_completed='1638946870.74', return_code='0', job_id='325407', GAL2='0.81', EG2='1.59', return_code2='0', energy_flux_error='8.27e-06', photon_flux_error2='4.68e-08', ts2='1.08', photon_index='2.38' WHERE bin_id='1619' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Dec  7 23:01:10 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 325407: <4FGL_J1159.3-2142_daily_bin1619> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1619> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Dec  7 22:45:12 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Dec  7 22:45:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Dec  7 22:45:19 2021
Terminated at Tue Dec  7 23:01:11 2021
Results reported at Tue Dec  7 23:01:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1619 179.843 -21.7038 658972801 659232001 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 :                                   881.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             318.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   952 sec.
    Turnaround time :                            959 sec.

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

