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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1421
RA = 179.843, Dec = -21.7038
tmin = 607651201, tmax = 607910401
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='229940', job_status='RUN', time_executed='2021-09-04 19:07:17.092911', time_epoch_executed='1630807637.09' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/229940

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/229940/ft1_4FGL_J1159.3-2142_daily_bin1421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/229940/ft1_4FGL_J1159.3-2142_daily_bin1421.fits outfile=/scratch/kocevski/229940/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1421.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=607651201.0 tmax=607910401.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.80
user 3.58
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits" evtable="EVENTS" scfile=/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits sctable="SC_DATA" outfile=/scratch/kocevski/229940/ltcube_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.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/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits
.....................!
real 15.47
user 15.11
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits sctable="SC_DATA" expcube=/scratch/kocevski/229940/ltcube_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.fits outfile=/scratch/kocevski/229940/expmap_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.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/229940/ltcube_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.fits
.....................!
real 190.77
user 185.33
sys 5.01

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/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits scfile=/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits outfile=/scratch/kocevski/229940/cmap_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits scfile=/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits outfile=/scratch/kocevski/229940/cmap_HighResolution_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.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.55
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits evtable="EVENTS" scfile=/scratch/kocevski/229940/ft2_4FGL_J1159.3-2142_daily_bin1421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/229940/Model_4FGL_J1159.3-2142_daily_bin1421.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/229940/ft1_filtered_4FGL_J1159.3-2142_daily_bin1421.fits.....................!
real 56.85
user 55.56
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10111E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.155       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    17.109       1.0000         .10000E-03   10000.    
    10 'Prefactor '    42.722       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .20721E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    43.684       1.0000         .10000E-03   10000.    
    13 'Prefactor '    83.955       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3450       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    20.659       1.0000         .10000E-03   10000.    
    20 'Prefactor '    43.967       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .29650       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6379       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3725       1.0000         .10000E-03   10000.    
    24 'norm      '    1.0258       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5825       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .81005       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=   6209.375     FROM MIGRAD    STATUS=CONVERGED    618 CALLS     3115 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 18.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    28.707        .29333E-04** at limit **
   2  Prefactor     .10000E-03    84.264       -.87654E-05** at limit **
   3  Prefactor     .10000E-03    12.528       -.57211E-06** at limit **
   4  Prefactor     .10000E-03    6.0888       -.71543E-07** at limit **
   5  Prefactor     .10000E-03    56.888        .69102E-05** at limit **
   6  norm          .10000E-03    .56170       -.13973E-06** at limit **
   7  Prefactor     23.154        14.049        .20351E-06    .36443E-03
   8  Prefactor     .10000E-03    24.869       -.25600E-04** at limit **
   9  Prefactor     17.126        11.013       -.38182E-05   -.12625E-02
  10  Prefactor     42.720        27.173        .58695E-06    .11225E-03
  11  Prefactor     .10010E-03    559.34       -.35901E-03** at limit **
  12  norm          43.695        40.033       -.82644E-05   -.59407E-04
  13  Prefactor     83.953        28.692       -.74467E-06    .18054E-03
  14  norm          3.3459        4.2820        .93116E-06    .10101E-02
  15  Prefactor     .10000E-03    3.3375       -.16846E-06** at limit **
  16  Prefactor     .10000E-03    68.928       -.21368E-04** at limit **
  17  Prefactor     .10000E-03    16.681        .43962E-05** at limit **
  18  Prefactor     .10000E-03    8.4252        .34873E-06** at limit **
  19  Prefactor     20.661        28.963       -.12034E-05    .35084E-04
  20  Prefactor     43.971        31.206       -.13843E-05   -.23105E-04
  21  Prefactor     .29990        5.3147       -.12944E-05   -.41536E-03
  22  Prefactor     9.6381        3.3642        .26153E-07   -.36715E-03
  23  Prefactor     7.3731        16.696        .16425E-06    .37062E-04
  24  norm          1.0258        1.3395       -.20550E-06   -.10362E-02
  25  Normalizat    1.5828        .29053        .41191E-06   -.33186E-03
  26  Prefactor     .80992        .14237       -.91196E-06   -.16797E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 23.1536
  Prefactor  = 0.0001
  Prefactor  = 17.1259
  Prefactor  = 42.72
  Prefactor  = 0.000100097
  norm       = 43.6945
  Prefactor  = 83.9534
  norm       = 3.34593
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6614
  Prefactor  = 43.9708
  Prefactor  = 0.299901
  Prefactor  = 9.63812
  Prefactor  = 7.3731
  norm       = 1.02575
  Normalizat = 1.58281
  Prefactor  = 0.809925
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.375     FROM HESSE     STATUS=OK           458 CALLS     3573 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    84.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    12.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.1174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    57.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .58404        .11523E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     23.154        14.162        .83242E-04   -1.4745    
   8  Prefactor     .10000E-03    25.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     17.126        11.040        .96829E-04   -1.4880    
  10  Prefactor     42.720        27.274        .61333E-04   -1.4400    
  11  Prefactor     .10010E-03    49.606        .14931       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.695        40.128        .60657E-04   -1.4385    
  13  Prefactor     83.953        29.414        .43840E-04   -1.3873    
  14  norm          3.3459        5.2023        .10065E-02   -1.5342    
  15  Prefactor     .10000E-03    3.3689        .14053E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    69.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.4280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     20.661        28.963        .88121E-04   -1.4799    
  20  Prefactor     43.971        31.218        .60462E-04   -1.4381    
  21  Prefactor     .29990        22.112        .33535E-02   -1.5598    
  22  Prefactor     9.6381        3.4179        .79208E-04   -1.5087    
  23  Prefactor     7.3731        16.699        .14771E-03   -1.5165    
  24  norm          1.0258        1.2061        .10008E-02   -1.5505    
  25  Normalizat    1.5828        .34741        .33756E-03   -.75477    
  26  Prefactor     .80992        .16945        .22711E-03   -.99364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51975e-09
Minuit parameter uncertainties:
  1  0.000211158
  2  0.000254683
  3  2.88937e-06
  4  1.21643e-05
  5  7.68073e-07
  6  1.11008e-06
  7  14.1636
  8  0.000106672
  9  11.0413
  10  27.2818
  11  0.00438886
  12  40.1523
  13  29.4189
  14  5.20304
  15  3.57939e-05
  16  0.000319894
  17  0.000110952
  18  3.17274e-05
  19  28.9822
  20  31.2294
  21  5.15141
  22  3.41799
  23  16.7099
  24  1.20617
  25  0.347942
  26  0.16956
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.346e+00  5.203e+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.099e-01  1.696e-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.583e+00  3.479e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/229940/likelihoodResults_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.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) = 6209.30674844
delta logL = 0.0681535087679

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6209.30559164
delta logL = 0.0693103137119

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4876       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9495       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5923       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80761       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=   6209.306     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      234 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4887        5.0204        .20273E-03    .61126E-04
   2  alpha         1.9483        1.1161        .30268E-01   -.22964E-04
   3  Normalizat    1.5929        .32566        .33677E-03   -.49541E-03
   4  Prefactor     .80731        .16421        .22746E-03   -.62974E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.48867
  alpha      = 1.94826
  Normalizat = 1.59285
  Prefactor  = 0.807314
 **********
 **   18 **HESSE 
 **********

 FCN=   6209.306     FROM HESSE     STATUS=OK            25 CALLS      259 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4887        5.0796        .81090E-05   -1.5334    
   2  alpha         1.9483        1.1288        .12107E-02   -.22253    
   3  Normalizat    1.5929        .32589        .67354E-04   -.75202    
   4  Prefactor     .80731        .16434        .45492E-04   -.99459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.44017e-10
Minuit parameter uncertainties:
  1  5.08022
  2  1.17361
  3  0.326325
  4  0.164442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/229940': 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) = 6209.30558934
delta logL = 0.0693126104761

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  3.489e+00  5.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.948e+00  1.174e+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.073e-01  1.644e-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.593e+00  3.263e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/229940/cmap_HighResolution_607651201_607910401_4FGL_J1159.3-2142_daily_bin1421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.26e-05', job_status='DONE', photon_flux_upper_limit='1.52e-07', time_completed='2021-09-04 19:20:00.766778', job_id='229940', GAL2='0.81', fit_tolerance='1e-08', EG2='1.59', EG='1.58', time_epoch_completed='1630808400.77', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='6.93e-02', ts2='0.93', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1421' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:20:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 229940: <4FGL_J1159.3-2142_daily_bin1421> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1421> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 19:05:42 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:05:44 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:44 2021
Terminated at Sat Sep  4 19:20:01 2021
Results reported at Sat Sep  4 19:20:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1421 179.843 -21.7038 607651201 607910401 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 :                                   754.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             300.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   857 sec.
    Turnaround time :                            859 sec.

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

