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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1487
RA = 179.843, Dec = -21.7038
tmin = 624758401, tmax = 625017601
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='230068', job_status='RUN', time_executed='2021-09-04 19:07:35.263650', time_epoch_executed='1630807655.26' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1487'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230068

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230068/ft1_4FGL_J1159.3-2142_daily_bin1487.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230068/ft1_4FGL_J1159.3-2142_daily_bin1487.fits outfile=/scratch/kocevski/230068/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1487.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=624758401.0 tmax=625017601.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.90
user 3.28
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits" evtable="EVENTS" scfile=/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits sctable="SC_DATA" outfile=/scratch/kocevski/230068/ltcube_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.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/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits
.....................!
real 12.60
user 12.26
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits sctable="SC_DATA" expcube=/scratch/kocevski/230068/ltcube_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.fits outfile=/scratch/kocevski/230068/expmap_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.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/230068/ltcube_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.fits
.....................!
real 191.29
user 186.92
sys 3.90

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/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits scfile=/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits outfile=/scratch/kocevski/230068/cmap_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.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.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits scfile=/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits outfile=/scratch/kocevski/230068/cmap_HighResolution_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.843 yref=-21.7038 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.57
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits evtable="EVENTS" scfile=/scratch/kocevski/230068/ft2_4FGL_J1159.3-2142_daily_bin1487.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230068/Model_4FGL_J1159.3-2142_daily_bin1487.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/230068/ft1_filtered_4FGL_J1159.3-2142_daily_bin1487.fits.....................!
real 63.86
user 62.51
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16314E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.598       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.484       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.654       1.0000         .10000E-03   10000.    
    11 'Prefactor '    29.527       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    49.627       1.0000         .10000E-03   10000.    
    14 'norm      '    .14608E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10184E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10490E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    40.143       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .23330E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    68.737       1.0000         .10000E-03   10000.    
    20 'Prefactor '    23.157       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.9898       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.4190       1.0000         .10000E-03   10000.    
    23 'Prefactor '    70.324       1.0000         .10000E-03   10000.    
    24 'norm      '    3.9954       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .73263       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1326       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=   7349.123     FROM MIGRAD    STATUS=CONVERGED    593 CALLS     3113 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    13.066        .38181E-05** at limit **
   2  Prefactor     .10000E-03    25.515        .13549E-05** at limit **
   3  Prefactor     .10000E-03    13.061        .37660E-05** at limit **
   4  Prefactor     .10001E-03    3.8517        .10881E-05** at limit **
   5  Prefactor     .10000E-03    11.419       -.85997E-05** at limit **
   6  norm          .10000E-03    .28886       -.16960E-07** at limit **
   7  Prefactor     29.599        11.934       -.72638E-07   -.22365E-04
   8  Prefactor     .10000E-03    26.558        .45495E-05** at limit **
   9  Prefactor     12.484        8.0469       -.25035E-06   -.76184E-04
  10  Prefactor     22.655        20.345        .80634E-06   -.67597E-05
  11  Prefactor     29.521        38.843       -.76423E-05    .56215E-05
  12  norm          .10000E-03    20.566       -.50069E-05** at limit **
  13  Prefactor     49.662        20.143        .10360E-04    .18130E-03
  14  norm          .10001E-03    4.9722       -.16482E-05** at limit **
  15  Prefactor     .10000E-03    2.7604        .14762E-06** at limit **
  16  Prefactor     .10000E-03    23.011       -.40858E-05** at limit **
  17  Prefactor     40.140        32.668       -.23759E-05    .78314E-05
  18  Prefactor     .10003E-03    41.895        .92778E-05** at limit **
  19  Prefactor     68.699        71.358       -.41251E-04   -.34493E-04
  20  Prefactor     23.157        26.185        .15167E-05    .68852E-05
  21  Prefactor     3.9905        6.6579       -.10294E-05   -.29548E-03
  22  Prefactor     9.4190        3.1833        .65187E-07    .77501E-04
  23  Prefactor     70.327        24.067        .14343E-05    .20912E-04
  24  norm          3.9955        1.8262        .19989E-07   -.34050E-04
  25  Normalizat    .73255        .26888       -.30178E-05    .19383E-04
  26  Prefactor     1.1326        .13819        .24332E-05   -.27797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100013
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 29.5991
  Prefactor  = 0.0001
  Prefactor  = 12.4838
  Prefactor  = 22.6553
  Prefactor  = 29.5214
  norm       = 0.0001
  Prefactor  = 49.6615
  norm       = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 40.1399
  Prefactor  = 0.000100033
  Prefactor  = 68.6991
  Prefactor  = 23.1574
  Prefactor  = 3.99053
  Prefactor  = 9.419
  Prefactor  = 70.3269
  norm       = 3.99546
  Normalizat = 0.732545
  Prefactor  = 1.13263
 **********
 **   18 **HESSE 
 **********

 FCN=   7349.123     FROM HESSE     STATUS=OK           454 CALLS     3567 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    13.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    25.525        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    13.068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    10.428        .32740E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .29358        .44959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     29.599        11.949        .73643E-04   -1.4619    
   8  Prefactor     .10000E-03    26.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     12.484        8.0389        .11337E-03   -1.5001    
  10  Prefactor     22.655        20.343        .84157E-04   -1.4756    
  11  Prefactor     29.521        38.866        .73732E-04   -1.4621    
  12  norm          .10000E-03    20.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     49.662        20.076        .56925E-04   -1.4297    
  14  norm          .10001E-03    5.0799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.7801        .13900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    23.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     40.140        32.645        .63265E-04   -1.4440    
  18  Prefactor     .10003E-03    42.602        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     68.699        71.243        .48414E-04   -1.4048    
  20  Prefactor     23.157        26.168        .83239E-04   -1.4745    
  21  Prefactor     3.9905        6.6471        .20192E-03   -1.5308    
  22  Prefactor     9.4190        3.1823        .82289E-04   -1.5094    
  23  Prefactor     70.327        24.050        .47869E-04   -1.4029    
  24  norm          3.9955        1.8242        .75174E-04   -1.5308    
  25  Normalizat    .73255        .29512        .43987E-03   -1.0262    
  26  Prefactor     1.1326        .15417        .19329E-03   -.88431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96837e-09
Minuit parameter uncertainties:
  1  3.62138e-06
  2  5.73721e-06
  3  1.0298e-05
  4  0.000747804
  5  3.75337e-06
  6  8.80322e-07
  7  11.9502
  8  3.80858e-05
  9  8.03957
  10  20.3488
  11  38.8989
  12  1.20439e-05
  13  20.0783
  14  0.000395973
  15  2.60881e-05
  16  8.98709e-05
  17  32.6598
  18  0.0023839
  19  71.3312
  20  26.1805
  21  6.6483
  22  3.18232
  23  24.0537
  24  1.82424
  25  0.295767
  26  0.154229
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  3.960e-04  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.133e+00  1.542e-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:  7.325e-01  2.958e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/230068/likelihoodResults_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.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) = 7349.12391971
delta logL = -0.000939103232668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7349.12298072
delta logL = -1.15794136946e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3738       1.0000          .0000       5.0000    
     3 'Normalizat'    .73248       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1327       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=   7349.123     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      242 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.3757        .36285E-03** at limit **
   2  alpha         2.2359        3.6176        .16487        .14274E-07
   3  Normalizat    .73254        .27986        .43988E-03   -.11049E-03
   4  Prefactor     1.1326        .15132        .19329E-03   -.22319E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.23588
  Normalizat = 0.732541
  Prefactor  = 1.13263
 **********
 **   18 **HESSE 
 **********

 FCN=   7349.123     FROM HESSE     STATUS=OK            23 CALLS      265 TOTAL
                     EDM=   .62E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    5.2178        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2359        3.0718        .65949E-02   -.10585    
   3  Normalizat    .73254        .28000        .17595E-04   -1.0262    
   4  Prefactor     1.1326        .15140        .38658E-04   -.88430    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.19235e-11
Minuit parameter uncertainties:
  1  5.42482e-05
  2  204.285
  3  0.280554
  4  0.151459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230068': 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) = 7349.12298035
delta logL = 2.607002898e-07

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  5.425e-05  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  2.236e+00  2.043e+02  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.133e+00  1.515e-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:  7.325e-01  2.806e-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/230068/cmap_HighResolution_624758401_625017601_4FGL_J1159.3-2142_daily_bin1487.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-04 19:21:32.810666', job_id='230068', GAL2='1.13', fit_tolerance='1e-08', EG2='0.73', EG='0.73', time_epoch_completed='1630808492.81', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='2.61e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1487' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:21:32 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 230068: <4FGL_J1159.3-2142_daily_bin1487> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1487> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:49 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:50 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:05:50 2021
Terminated at Sat Sep  4 19:21:33 2021
Results reported at Sat Sep  4 19:21:33 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1487 179.843 -21.7038 624758401 625017601 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 :                                   824.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             285.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            944 sec.

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

