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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1060
RA = 179.843, Dec = -21.7038
tmin = 514080001, tmax = 514339201
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='226931', job_status='RUN', time_executed='2021-09-04 18:56:39.227596', time_epoch_executed='1630806999.23' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1060'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/226931

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/226931/ft1_4FGL_J1159.3-2142_daily_bin1060.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/226931/ft1_4FGL_J1159.3-2142_daily_bin1060.fits outfile=/scratch/kocevski/226931/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1060.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=514080001.0 tmax=514339201.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.62
user 3.39
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/226931/ft1_filtered_4FGL_J1159.3-2142_daily_bin1060.fits" evtable="EVENTS" scfile=/scratch/kocevski/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits sctable="SC_DATA" outfile=/scratch/kocevski/226931/ltcube_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.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/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits
.....................!
real 12.09
user 11.72
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/226931/ft1_filtered_4FGL_J1159.3-2142_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits sctable="SC_DATA" expcube=/scratch/kocevski/226931/ltcube_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.fits outfile=/scratch/kocevski/226931/expmap_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.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/226931/ltcube_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.fits
.....................!
real 189.66
user 185.16
sys 4.13

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/226931/ft1_filtered_4FGL_J1159.3-2142_daily_bin1060.fits scfile=/scratch/kocevski/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits outfile=/scratch/kocevski/226931/cmap_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.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.56
user 0.38
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/226931/ft1_filtered_4FGL_J1159.3-2142_daily_bin1060.fits evtable="EVENTS" scfile=/scratch/kocevski/226931/ft2_4FGL_J1159.3-2142_daily_bin1060.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/226931/Model_4FGL_J1159.3-2142_daily_bin1060.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/226931/ft1_filtered_4FGL_J1159.3-2142_daily_bin1060.fits.....................!
real 74.85
user 73.44
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7860       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.359       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .11181E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0416       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.2719       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11075E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10231E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .45277       1.0000         .10000E-03   10000.    
    20 'Prefactor '    12.358       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.6617       1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.8743       1.0000         .10000E-03   10000.    
    23 'Prefactor '    10.645       1.0000         .10000E-03   10000.    
    24 'norm      '    .52524       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0290       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97758       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9457.299     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2706 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.294        .90712E-02** at limit **
   2  Prefactor     .10000E-03    75.080        .90712E-02** at limit **
   3  Prefactor     .10000E-03    6.1327        .90712E-02** at limit **
   4  Prefactor     .10000E-03    2.8213        .90712E-02** at limit **
   5  Prefactor     .10003E-03    14.654        .90712E-02** at limit **
   6  norm          .10000E-03    .27899        .27283E-01** at limit **
   7  Prefactor     1.7843        3.7603        .78266E-02    .82840E-03
   8  Prefactor     .10000E-03    14.398        .90712E-02** at limit **
   9  Prefactor     .10000E-03    1.7937        .90712E-02** at limit **
  10  Prefactor     10.361        11.489        .31123E-02    .30824E-03
  11  Prefactor     .10004E-03    13.926        .90712E-02** at limit **
  12  norm          .10000E-03    19.858        .90712E-02** at limit **
  13  Prefactor     .10000E-03    4.0232        .90712E-02** at limit **
  14  norm          1.0454        2.1393        .36056E-01    .93483E-03
  15  Prefactor     4.2710        3.7878        .48733E-02    .57843E-03
  16  Prefactor     .10000E-03    35.438        .90712E-02** at limit **
  17  Prefactor     .10001E-03    17.719        .90712E-02** at limit **
  18  Prefactor     .10000E-03    8.6443        .90712E-02** at limit **
  19  Prefactor     .28735        25.531        .14506        .13345E-03
  20  Prefactor     12.363        18.005        .28487E-02   -.62311E-03
  21  Prefactor     4.6614        4.3411        .46599E-02    .29673E-03
  22  Prefactor     6.8741        2.2526        .38256E-02   -.67997E-04
  23  Prefactor     10.638        10.861        .30701E-02   -.58761E-03
  24  norm          .52474        .83128        .22590E-01    .18343E-02
  25  Normalizat    1.0291        .17432        .70040E-01    .31636E-04
  26  Prefactor     .97766        .96081E-01    .45986E-01    .76717E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  norm       = 0.0001
  Prefactor  = 1.7843
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 10.3612
  Prefactor  = 0.000100045
  norm       = 0.000100005
  Prefactor  = 0.0001
  norm       = 1.04545
  Prefactor  = 4.27101
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  Prefactor  = 0.0001
  Prefactor  = 0.287355
  Prefactor  = 12.3631
  Prefactor  = 4.66139
  Prefactor  = 6.87411
  Prefactor  = 10.6378
  norm       = 0.52474
  Normalizat = 1.02906
  Prefactor  = 0.977661
 **********
 **   18 **HESSE 
 **********

 FCN=   9457.299     FROM HESSE     STATUS=OK           466 CALLS     3172 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    75.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.1338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.8286        .15951E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    14.669        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .43717        .99266E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7843        3.7257        .26522E-03   -1.5441    
   8  Prefactor     .10000E-03    14.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.8325        .12712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.361        11.491        .12449E-03   -1.5064    
  11  Prefactor     .10004E-03    13.979        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    19.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.0377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0454        1.6601        .19473E-02   -1.5503    
  15  Prefactor     4.2710        3.7778        .16924E-03   -1.5295    
  16  Prefactor     .10000E-03    35.549        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    17.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .28735        28.375        .13490       -1.5601    
  20  Prefactor     12.363        17.991        .11395E-03   -1.5005    
  21  Prefactor     4.6614        4.3409        .18468E-03   -1.5276    
  22  Prefactor     6.8741        2.2548        .79103E-04   -1.5184    
  23  Prefactor     10.638        10.855        .12280E-03   -1.5056    
  24  norm          .52474        .73638        .10709E-02   -1.5563    
  25  Normalizat    1.0291        .20690        .30988E-03   -.92063    
  26  Prefactor     .97766        .11559        .17664E-03   -.93478    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.82165e-09
Minuit parameter uncertainties:
  1  0.000141
  2  0.000542838
  3  2.19243e-07
  4  1.43779e-07
  5  0.00139147
  6  1.27086e-07
  7  3.72614
  8  0.000523389
  9  1.41442e-06
  10  11.4936
  11  0.00158439
  12  0.000608301
  13  9.6524e-07
  14  1.66019
  15  3.77804
  16  0.000183215
  17  0.00102764
  18  2.96762e-06
  19  5.71276
  20  17.9986
  21  4.34114
  22  2.25484
  23  10.8574
  24  0.736388
  25  0.207066
  26  0.115621
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.045e+00  1.660e+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:  9.777e-01  1.156e-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.029e+00  2.071e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/226931/likelihoodResults_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.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) = 9456.55150986
delta logL = 0.747296996666

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9456.54997726
delta logL = 0.748829602211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1061       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.1411       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0381       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97436       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9456.550     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1061        1.2982        .11257E-01    .14541E-02
   2  alpha         1.1410        .62657        .50000       -.45098E-04
   3  Normalizat    1.0381        .16949        .69758E-01    .39965E-03
   4  Prefactor     .97436        .94900E-01    .45946E-01    .57323E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.1061
  alpha      = 1.14103
  Normalizat = 1.03809
  Prefactor  = 0.974356
 **********
 **   18 **HESSE 
 **********

 FCN=   9456.550     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1061        1.5651        .11670E-03   -1.5498    
   2  alpha         1.1410        .81378        .28664E-01   -.57471    
   3  Normalizat    1.0381        .20353        .30864E-03   -.91765    
   4  Prefactor     .97436        .11414        .17684E-03   -.93589    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.24843e-09
Minuit parameter uncertainties:
  1  1.56517
  2  0.835694
  3  0.203684
  4  0.114165
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/226931': 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) = 9456.54997725
delta logL = 0.748829607943

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.106e+00  1.565e+00  1.000e-04  1.000e+04 ( 1.000e-12)
309        alpha:  1.141e+00  8.357e-01  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.744e-01  1.142e-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.038e+00  2.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.18
Ra Dec: 179.843 -21.704
Photon Index (Free Index): 1.14 +/- 0.84
Photon Flux (Free Index): 3.88e-09 +/- 5.26e-09
Energy Flux (Free Index): 1.29e-05 +/- 2.27e-05

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/226931/cmap_HighResolution_514080001_514339201_4FGL_J1159.3-2142_daily_bin1060.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.00e-05', comment='SUCCESS', energy_flux2='1.29e-05', dlogl='7.49e-01', photon_flux2='3.88e-09', job_status='DONE', time_completed='2021-09-04 19:12:16.551754', photon_index_error2='0.84', photon_index2='1.14', ts='0.68', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='5.79e-08', energy_flux_error2='2.27e-05', EG='1.03', time_epoch_completed='1630807936.55', return_code='0', job_id='226931', GAL2='0.97', EG2='1.04', return_code2='0', photon_flux_error2='5.26e-09', ts2='2.18', photon_index='2.38' WHERE bin_id='1060' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:12:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 226931: <4FGL_J1159.3-2142_daily_bin1060> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1060> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 18:55:53 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:55:55 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:55:55 2021
Terminated at Sat Sep  4 19:12:17 2021
Results reported at Sat Sep  4 19:12:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1060 179.843 -21.7038 514080001 514339201 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 :                                   934.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.47 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   981 sec.
    Turnaround time :                            984 sec.

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

