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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin319
RA = 179.843, Dec = -21.7038
tmin = 322012801, tmax = 322272001
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='223070', job_status='RUN', time_executed='2021-09-04 18:48:10.745527', time_epoch_executed='1630806490.75' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='319'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223070

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223070/ft1_4FGL_J1159.3-2142_daily_bin319.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223070/ft1_4FGL_J1159.3-2142_daily_bin319.fits outfile=/scratch/kocevski/223070/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin319.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=322012801.0 tmax=322272001.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.36
user 3.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits" evtable="EVENTS" scfile=/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits sctable="SC_DATA" outfile=/scratch/kocevski/223070/ltcube_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.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/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits
.....................!
real 12.34
user 12.02
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits sctable="SC_DATA" expcube=/scratch/kocevski/223070/ltcube_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.fits outfile=/scratch/kocevski/223070/expmap_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.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/223070/ltcube_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.fits
.....................!
real 190.19
user 185.21
sys 4.67

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/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits scfile=/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits outfile=/scratch/kocevski/223070/cmap_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits scfile=/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits outfile=/scratch/kocevski/223070/cmap_HighResolution_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits evtable="EVENTS" scfile=/scratch/kocevski/223070/ft2_4FGL_J1159.3-2142_daily_bin319.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223070/Model_4FGL_J1159.3-2142_daily_bin319.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/223070/ft1_filtered_4FGL_J1159.3-2142_daily_bin319.fits.....................!
real 67.23
user 65.97
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.112       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .50627E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0606       1.0000         .10000E-03   10000.    
     5 'Prefactor '    43.288       1.0000         .10000E-03   10000.    
     6 'norm      '    4.7059       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.6612       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.081       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.391       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.4368       1.0000         .10000E-03   10000.    
    14 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.8491       1.0000         .10000E-03   10000.    
    16 'Prefactor '    18.807       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.577       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8612       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.295       1.0000         .10000E-03   10000.    
    24 'norm      '    2.0534       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4750       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .90615       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=   7434.533     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     2666 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    23.517        .48685E-05** at limit **
   2  Prefactor     14.082        158.20       -.58302E-04   -.88714E-05
   3  Prefactor     .10001E-03    27.579       -.26923E-06** at limit **
   4  Prefactor     6.0611        11.725       -.23485E-06    .18764E-04
   5  Prefactor     43.288        42.813        .20476E-06    .85230E-05
   6  norm          4.7058        1.6903        .25518E-06    .16136E-03
   7  Prefactor     6.6610        8.3541        .15226E-06   -.22345E-03
   8  Prefactor     .10000E-03    20.903       -.22478E-05** at limit **
   9  Prefactor     .10000E-03    2.7233       -.26490E-07** at limit **
  10  Prefactor     11.078        14.456        .21533E-07    .44665E-05
  11  Prefactor     .10000E-03    34.650        .13789E-07** at limit **
  12  norm          10.391        14.342       -.93560E-07   -.46078E-06
  13  Prefactor     6.4447        16.186       -.53380E-05   -.15661E-04
  14  norm          .10000E-03    1.8226        .96814E-07** at limit **
  15  Prefactor     1.8432        1.7804        .26421E-06   -.16198E-02
  16  Prefactor     18.776        32.389        .69174E-05    .18315E-04
  17  Prefactor     .10000E-03    17.533        .75335E-07** at limit **
  18  Prefactor     .10000E-03    9.4285       -.45151E-07** at limit **
  19  Prefactor     .10000E-03    26.526       -.27305E-05** at limit **
  20  Prefactor     15.575        19.726        .30153E-06    .61887E-05
  21  Prefactor     .10000E-03    4.4455       -.48726E-08** at limit **
  22  Prefactor     6.8608        2.6246       -.26311E-07    .67863E-05
  23  Prefactor     14.294        16.528       -.59414E-07    .65482E-05
  24  norm          2.0534        1.2298       -.36353E-07   -.21605E-04
  25  Normalizat    1.4752        .23990        .20294E-05   -.29127E-04
  26  Prefactor     .90612        .12230       -.30610E-06    .15323E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 14.0824
  Prefactor  = 0.00010001
  Prefactor  = 6.06107
  Prefactor  = 43.2878
  norm       = 4.70582
  Prefactor  = 6.66098
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0783
  Prefactor  = 0.0001
  norm       = 10.3911
  Prefactor  = 6.44466
  norm       = 0.0001
  Prefactor  = 1.84319
  Prefactor  = 18.7757
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.5754
  Prefactor  = 0.0001
  Prefactor  = 6.8608
  Prefactor  = 14.2944
  norm       = 2.05336
  Normalizat = 1.47516
  Prefactor  = 0.906121
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.533     FROM HESSE     STATUS=OK           468 CALLS     3134 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    23.695        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     14.082        158.85        .10662E-03   -1.4957    
   3  Prefactor     .10001E-03    28.290        .14215       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.0611        11.719        .16309E-03   -1.5216    
   5  Prefactor     43.288        42.828        .60932E-04   -1.4391    
   6  norm          4.7058        1.6940        .62833E-04   -1.5274    
   7  Prefactor     6.6610        8.4438        .77738E-03   -1.5192    
   8  Prefactor     .10000E-03    20.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.7468        .13890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.078        14.467        .12036E-03   -1.5042    
  11  Prefactor     .10000E-03    34.797        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.391        14.347        .12430E-03   -1.5063    
  13  Prefactor     6.4447        16.211        .15819E-03   -1.5200    
  14  norm          .10000E-03    1.8264        .11345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.8432        5.9114        .15331E-02   -1.5436    
  16  Prefactor     18.776        32.388        .92356E-04   -1.4841    
  17  Prefactor     .10000E-03    17.562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    9.4350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    26.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.575        19.735        .10148E-03   -1.4918    
  21  Prefactor     .10000E-03    4.5807        .35478E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.8608        2.6249        .83910E-04   -1.5184    
  23  Prefactor     14.294        16.561        .10594E-03   -1.4952    
  24  norm          2.0534        1.2254        .71643E-04   -1.5421    
  25  Normalizat    1.4752        .28830        .31845E-03   -.78479    
  26  Prefactor     .90612        .14579        .20706E-03   -.95928    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.97359e-09
Minuit parameter uncertainties:
  1  0.000252991
  2  94.9147
  3  0.00104429
  4  11.7233
  5  42.8588
  6  1.69404
  7  8.44529
  8  1.45525e-05
  9  3.99334e-07
  10  14.472
  11  1.39753e-05
  12  14.3513
  13  16.2219
  14  1.37483e-05
  15  5.91324
  16  32.4185
  17  1.29036e-05
  18  6.68569e-06
  19  2.86448e-05
  20  19.7433
  21  5.00386e-06
  22  2.62491
  23  16.5661
  24  1.22541
  25  0.28862
  26  0.145849
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.375e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.383e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.061e-01  1.458e-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.475e+00  2.886e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/223070/likelihoodResults_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.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) = 7434.53566392
delta logL = -0.00259995635406

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7434.53306401
delta logL = -4.5199158194e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3853       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90615       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=   7434.522     FROM MIGRAD    STATUS=CONVERGED    169 CALLS      304 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15871E-01    .10173        .77931E-02   -.49096E-02
   2  alpha         5.0000        2.5284        .50000    ** at limit **
   3  Normalizat    1.4601        .27983        .31845E-03   -.32273E-04
   4  Prefactor     .91085        .14551        .20706E-03    .55730E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0158714
  alpha      = 5
  Normalizat = 1.46009
  Prefactor  = 0.910846
 **********
 **   18 **HESSE 
 **********

 FCN=   7434.522     FROM HESSE     STATUS=OK            33 CALLS      337 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15871E-01    .17854        .42476E-03   -1.5733    
   2  alpha         5.0000        3.5787        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4601        .29564        .12738E-04   -.78906    
   4  Prefactor     .91085        .14865        .82822E-05   -.95763    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26702e-08
Minuit parameter uncertainties:
  1  0.106129
  2  0.000341721
  3  0.295991
  4  0.148717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223070': 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) = 7434.521834
delta logL = 0.0112299643315

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.587e-02  1.061e-01  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  5.000e+00  3.417e-04  0.000e+00  5.000e+00 ( 1.000e+00)
310         beta:  1.306e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
311           Eb:  8.690e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  9.108e-01  1.487e-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.460e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.843 -21.704

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/223070/cmap_HighResolution_322012801_322272001_4FGL_J1159.3-2142_daily_bin319.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='7.48e-08', time_completed='2021-09-04 19:01:36.319316', job_id='223070', GAL2='0.91', fit_tolerance='1e-08', EG2='1.46', EG='1.48', time_epoch_completed='1630807296.32', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='1.12e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='319' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:01:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0156>
Subject: Job 223070: <4FGL_J1159.3-2142_daily_bin319> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin319> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:45:26 2021
Job was executed on host(s) <bullet0156>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:45:28 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:45:28 2021
Terminated at Sat Sep  4 19:01:37 2021
Results reported at Sat Sep  4 19:01:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin319 179.843 -21.7038 322012801 322272001 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 :                                   801.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             329.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   968 sec.
    Turnaround time :                            971 sec.

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

