/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 136 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 = 7464
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.3-2142_daily_bin144
RA = 179.843, Dec = -21.7038
tmin = 276652801, tmax = 276912001
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='221725', job_status='RUN', time_executed='2021-09-04 18:43:25.563437', time_epoch_executed='1630806205.56' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='144'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/221725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/221725/ft1_4FGL_J1159.3-2142_daily_bin144.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/221725/ft1_4FGL_J1159.3-2142_daily_bin144.fits outfile=/scratch/kocevski/221725/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin144.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=276652801.0 tmax=276912001.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.64
user 3.42
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits" evtable="EVENTS" scfile=/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits sctable="SC_DATA" outfile=/scratch/kocevski/221725/ltcube_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.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/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits
.....................!
real 9.68
user 9.40
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits sctable="SC_DATA" expcube=/scratch/kocevski/221725/ltcube_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.fits outfile=/scratch/kocevski/221725/expmap_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.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/221725/ltcube_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.fits
.....................!
real 149.19
user 145.53
sys 3.39

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/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits scfile=/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits outfile=/scratch/kocevski/221725/cmap_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.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.49
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits scfile=/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits outfile=/scratch/kocevski/221725/cmap_HighResolution_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.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.45
user 0.31
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits evtable="EVENTS" scfile=/scratch/kocevski/221725/ft2_4FGL_J1159.3-2142_daily_bin144.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/221725/Model_4FGL_J1159.3-2142_daily_bin144.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/221725/ft1_filtered_4FGL_J1159.3-2142_daily_bin144.fits.....................!
real 42.22
user 41.11
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    43.933       1.0000         .10000E-03   10000.    
     2 'Prefactor '    210.43       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .19119       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.4260       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.074       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10212E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    31.654       1.0000         .10000E-03   10000.    
    13 'Prefactor '    28.615       1.0000         .10000E-03   10000.    
    14 'norm      '    3.2759       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.811       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29052E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    57.866       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.1051       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .15516E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    2.4184       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.3448       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0488       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=   5919.552     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     3114 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     43.863        77.562       -.71874E-04   -.14351E-05
   2  Prefactor     210.51        170.11        .56263E-04   -.17920E-05
   3  Prefactor     .10000E-03    64.980        .61571E-05** at limit **
   4  Prefactor     .10900        12.902        .13412E-05   -.51569E-03
   5  Prefactor     .10000E-03    29.733        .24861E-04** at limit **
   6  norm          1.4267        1.4856       -.30364E-06   -.46740E-03
   7  Prefactor     30.042        18.480        .23206E-05    .28744E-03
   8  Prefactor     .10001E-03    336.45       -.90235E-04** at limit **
   9  Prefactor     .10000E-03    3.1298       -.35448E-08** at limit **
  10  Prefactor     .10000E-03    6.3905       -.52723E-07** at limit **
  11  Prefactor     .10000E-03    19.754        .69258E-05** at limit **
  12  norm          31.653        30.167       -.23539E-05    .34194E-06
  13  Prefactor     28.620        24.905       -.30065E-05    .20321E-04
  14  norm          3.2742        5.8535        .96924E-06   -.26903E-03
  15  Prefactor     20.814        9.2564       -.37783E-06   -.73676E-04
  16  Prefactor     .10000E-03    36.636       -.22382E-04** at limit **
  17  Prefactor     .10000E-03    19.809        .55589E-05** at limit **
  18  Prefactor     .10000E-03    40.817        .47570E-05** at limit **
  19  Prefactor     57.853        59.470       -.11851E-04    .45601E-05
  20  Prefactor     .10000E-03    8.5930       -.36543E-07** at limit **
  21  Prefactor     7.1082        9.0173        .26002E-05    .41685E-03
  22  Prefactor     .10000E-03    1.6657       -.89966E-06** at limit **
  23  Prefactor     .10000E-03    21.162       -.19876E-04** at limit **
  24  norm          2.4186        1.5764       -.27107E-07    .19235E-05
  25  Normalizat    1.3447        .30909       -.85322E-06    .29649E-03
  26  Prefactor     1.0488        .15092        .17045E-05    .32704E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 43.8632
  Prefactor  = 210.514
  Prefactor  = 0.0001
  Prefactor  = 0.109004
  Prefactor  = 0.0001
  norm       = 1.42666
  Prefactor  = 30.0422
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 31.6529
  Prefactor  = 28.6198
  norm       = 3.27422
  Prefactor  = 20.8138
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 57.8531
  Prefactor  = 0.0001
  Prefactor  = 7.10816
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 2.41855
  Normalizat = 1.3447
  Prefactor  = 1.04881
 **********
 **   18 **HESSE 
 **********

 FCN=   5919.552     FROM HESSE     STATUS=OK           458 CALLS     3572 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     43.863        77.598        .60485E-04   -1.4382    
   2  Prefactor     210.51        169.88        .13935E-03   -1.2796    
   3  Prefactor     .10000E-03    65.125        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10900        16.642        .82803E-01   -1.5642    
   5  Prefactor     .10000E-03    29.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.4267        1.4718        .90605E-04   -1.5469    
   7  Prefactor     30.042        18.675        .73060E-04   -1.4611    
   8  Prefactor     .10001E-03    346.58        .36296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.1397        .13290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.3958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    19.772        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          31.653        30.187        .71218E-04   -1.4582    
  13  Prefactor     28.620        24.819        .74895E-04   -1.4638    
  14  norm          3.2742        5.8012        .20954E-03   -1.5346    
  15  Prefactor     20.814        9.2668        .87800E-04   -1.4795    
  16  Prefactor     .10000E-03    36.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    41.128        .21403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     57.853        59.420        .52738E-04   -1.4185    
  20  Prefactor     .10000E-03    8.5969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.1082        8.2852        .15049E-03   -1.5175    
  22  Prefactor     .10000E-03    7.4924        .17646E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    21.614        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          2.4186        1.5738        .75364E-04   -1.5397    
  25  Normalizat    1.3447        .36490        .36970E-03   -.82242    
  26  Prefactor     1.0488        .17776        .21125E-03   -.91120    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.1369e-09
Minuit parameter uncertainties:
  1  77.7777
  2  170.282
  3  0.000148484
  4  2.69328
  5  3.99625e-05
  6  1.4718
  7  18.6791
  8  0.00352351
  9  1.63176e-06
  10  2.43674e-06
  11  5.29955e-06
  12  30.2016
  13  24.8284
  14  5.80218
  15  9.26741
  16  0.000153521
  17  2.83938e-05
  18  0.000789918
  19  59.4813
  20  8.15151e-07
  21  8.28653
  22  0.000276049
  23  0.000193411
  24  1.5738
  25  0.365605
  26  0.177857
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.274e+00  5.802e+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:  1.049e+00  1.779e-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.345e+00  3.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/221725/likelihoodResults_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.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) = 5918.98221641
delta logL = 0.569601076215

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5918.97974562
delta logL = 0.572071862608

Fit tolerance = 1e-08

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

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

 FCN=   5918.980     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      275 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7313        10.212        .78547E-04    .22877E-02
   2  alpha         3.7885        4.1741        .15388E-01    .10937E-03
   3  Normalizat    1.2203        .40122        .38488E-03    .21743E-03
   4  Prefactor     1.0858        .19268        .20789E-03    .47539E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.73134
  alpha      = 3.78853
  Normalizat = 1.22026
  Prefactor  = 1.0858
 **********
 **   18 **HESSE 
 **********

 FCN=   5918.980     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7313        3.4892        .31419E-05   -1.5445    
   2  alpha         3.7885        1.2518        .61552E-03    .54149    
   3  Normalizat    1.2203        .36750        .15395E-04   -.85979    
   4  Prefactor     1.0858        .18080        .41578E-04   -.89922    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.44707e-10
Minuit parameter uncertainties:
  1  3.48959
  2  1.33692
  3  0.368281
  4  0.1809
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/221725': 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) = 5918.97974544
delta logL = 0.572072048596

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.731e+00  3.490e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  3.789e+00  1.337e+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:  1.086e+00  1.809e-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.220e+00  3.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.89
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 3.79 +/- 1.34
Photon Flux (Free Index): 1.46e-07 +/- 1.45e-07
Energy Flux (Free Index): 2.44e-05 +/- 2.13e-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/221725/cmap_HighResolution_276652801_276912001_4FGL_J1159.3-2142_daily_bin144.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-05', comment='SUCCESS', energy_flux2='2.44e-05', dlogl='5.72e-01', photon_flux2='1.46e-07', job_status='DONE', time_completed='2021-09-04 18:52:55.326724', photon_index_error2='1.34', photon_index2='3.79', ts='0.61', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='2.13e-05', EG='1.34', time_epoch_completed='1630806775.33', return_code='0', job_id='221725', GAL2='1.09', EG2='1.22', return_code2='0', photon_flux_error2='1.45e-07', ts2='1.89', photon_index='2.38' WHERE bin_id='144' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:52:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 221725: <4FGL_J1159.3-2142_daily_bin144> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin144> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:41:00 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:41:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 18:41:01 2021
Terminated at Sat Sep  4 18:52:56 2021
Results reported at Sat Sep  4 18:52:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin144 179.843 -21.7038 276652801 276912001 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 :                                   567.37 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             242.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

