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


Performing analysis on: 4FGL_J1159.3-2142_daily_bin1117
RA = 179.843, Dec = -21.7038
tmin = 528854401, tmax = 529113601
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='228276', job_status='RUN', time_executed='2021-09-04 19:01:54.776041', time_epoch_executed='1630807314.78' WHERE source_name='4FGL J1159.3-2142' and cadence='daily' and bin_id='1117'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228276

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228276/ft1_4FGL_J1159.3-2142_daily_bin1117.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228276/ft1_4FGL_J1159.3-2142_daily_bin1117.fits outfile=/scratch/kocevski/228276/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1117.fits ra=179.843 dec=-21.7038 rad=12.0 tmin=528854401.0 tmax=529113601.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.47
user 3.25
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.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/228276/ft1_filteredMKT_4FGL_J1159.3-2142_daily_bin1117.fits evtable="EVENTS" outfile="/scratch/kocevski/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.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/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits" evtable="EVENTS" scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits sctable="SC_DATA" outfile=/scratch/kocevski/228276/ltcube_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.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/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits
.....................!
real 12.11
user 11.73
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits sctable="SC_DATA" expcube=/scratch/kocevski/228276/ltcube_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.fits outfile=/scratch/kocevski/228276/expmap_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.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/228276/ltcube_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.fits
.....................!
real 193.08
user 187.98
sys 4.71

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/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits outfile=/scratch/kocevski/228276/cmap_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.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.57
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits outfile=/scratch/kocevski/228276/cmap_HighResolution_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.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.63
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits evtable="EVENTS" scfile=/scratch/kocevski/228276/ft2_4FGL_J1159.3-2142_daily_bin1117.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228276/Model_4FGL_J1159.3-2142_daily_bin1117.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/228276/ft1_filtered_4FGL_J1159.3-2142_daily_bin1117.fits.....................!
real 61.14
user 59.40
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    88.965       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0423       1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.618       1.0000         .10000E-03   10000.    
     6 'norm      '    1.3749       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.4055       1.0000         .10000E-03   10000.    
    10 'Prefactor '    48.841       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    46.638       1.0000         .10000E-03   10000.    
    14 'norm      '    .48300E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10343E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10585E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.790       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13018E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    72.780       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.7858       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.6534       1.0000         .10000E-03   10000.    
    23 'Prefactor '    15.401       1.0000         .10000E-03   10000.    
    24 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2150       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .99461       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=   6864.729     FROM MIGRAD    STATUS=CONVERGED    591 CALLS     3056 TOTAL
                     EDM=   .43E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    40.272        .72089E-07** at limit **
   2  Prefactor     88.956        80.826        .40227E-06   -.85359E-05
   3  Prefactor     .10000E-03    15.650        .14103E-06** at limit **
   4  Prefactor     1.0218        8.9408       -.74280E-07   -.28678E-04
   5  Prefactor     59.604        69.833       -.15570E-06   -.23037E-04
   6  norm          1.3755        1.3935        .28117E-07    .71247E-04
   7  Prefactor     .10000E-03    5.5116        .49452E-08** at limit **
   8  Prefactor     .10000E-03    30.780        .44723E-06** at limit **
   9  Prefactor     9.4052        7.7741        .20267E-05    .49503E-03
  10  Prefactor     48.836        25.078        .69720E-07   -.24118E-04
  11  Prefactor     .10000E-03    16.773       -.25217E-06** at limit **
  12  norm          .10000E-03    24.992       -.28323E-06** at limit **
  13  Prefactor     46.631        25.035        .13118E-06    .63303E-03
  14  norm          .10004E-03    4.9677       -.15089E-05** at limit **
  15  Prefactor     .10000E-03    5.3678        .54423E-06** at limit **
  16  Prefactor     .10000E-03    52.831       -.70653E-06** at limit **
  17  Prefactor     28.803        34.553        .92749E-07    .67112E-04
  18  Prefactor     .10000E-03    24.083        .29223E-06** at limit **
  19  Prefactor     72.787        61.764       -.75197E-06    .58929E-04
  20  Prefactor     .10000E-03    39.295        .13418E-05** at limit **
  21  Prefactor     6.7864        6.8594        .98660E-07    .24349E-04
  22  Prefactor     9.6532        3.2862        .11458E-08    .39158E-05
  23  Prefactor     15.400        18.293        .16106E-06    .72519E-05
  24  norm          .10000E-03    .50048        .39511E-07** at limit **
  25  Normalizat    1.2150        .26483       -.20089E-07    .18453E-03
  26  Prefactor     .99461        .13102       -.37925E-06    .26924E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 88.9557
  Prefactor  = 0.0001
  Prefactor  = 1.02181
  Prefactor  = 59.6042
  norm       = 1.37554
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.40523
  Prefactor  = 48.8356
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.6311
  norm       = 0.000100038
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 28.8028
  Prefactor  = 0.0001
  Prefactor  = 72.7873
  Prefactor  = 0.000100001
  Prefactor  = 6.7864
  Prefactor  = 9.65323
  Prefactor  = 15.4005
  norm       = 0.0001
  Normalizat = 1.21499
  Prefactor  = 0.994608
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.729     FROM HESSE     STATUS=OK           454 CALLS     3510 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    40.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     88.956        80.822        .21299E-03   -1.3819    
   3  Prefactor     .10000E-03    15.656        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.0218        32.138        .47132E-02   -1.5506    
   5  Prefactor     59.604        69.392        .51962E-04   -1.4162    
   6  norm          1.3755        1.3707        .89381E-04   -1.5473    
   7  Prefactor     .10000E-03    5.5481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     9.4052        7.8544        .65337E-03   -1.5095    
  10  Prefactor     48.836        25.112        .57379E-04   -1.4309    
  11  Prefactor     .10000E-03    16.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    25.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     46.631        22.102        .58713E-04   -1.4341    
  14  norm          .10004E-03    13.978        .27991E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.4111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    52.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     28.803        34.511        .74667E-04   -1.4634    
  18  Prefactor     .10000E-03    24.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     72.787        61.730        .47060E-04   -1.4000    
  20  Prefactor     .10000E-03    39.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.7864        6.8640        .15403E-03   -1.5187    
  22  Prefactor     9.6532        3.2894        .82814E-04   -1.5086    
  23  Prefactor     15.400        18.303        .10206E-03   -1.4923    
  24  norm          .10000E-03    .51229        .57216E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2150        .31062        .35992E-03   -.86141    
  26  Prefactor     .99461        .15430        .20471E-03   -.92909    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.76057e-08
Minuit parameter uncertainties:
  1  0.000201124
  2  80.9216
  3  6.82521e-05
  4  11.4672
  5  69.4865
  6  1.37074
  7  2.08662e-06
  8  0.000203127
  9  7.8553
  10  25.1173
  11  8.20313e-05
  12  8.10136e-05
  13  22.1061
  14  0.00146221
  15  3.93214e-06
  16  0.000563047
  17  34.535
  18  7.22886e-05
  19  61.7842
  20  0.000335917
  21  6.86481
  22  3.28951
  23  18.3093
  24  7.2456e-07
  25  0.31109
  26  0.154365
Done.

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

Extracting fit parameters...

4FGL J1159.3-2142
   Spectrum: LogParabola
308         norm:  1.000e-04  1.462e-03  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.946e-01  1.544e-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.215e+00  3.111e-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.28e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228276/likelihoodResults_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.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): 102
logL (Free Index) = 6864.72915482
delta logL = -0.000340838369084

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6864.7288162
delta logL = -2.22150174523e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19991E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4769       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99437       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6864.386     FROM MIGRAD    STATUS=FAILED       143 CALLS      308 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15653        10.949        .37206E-04    .84884E-03
   2  alpha         4.8676        3.1253        .79407E-01   -.32929E-03
   3  Normalizat    1.1199        .31447        .37235E-03   -.13147E-03
   4  Prefactor     1.0237        .15251        .20197E-03   -.43548E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6864.386     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      403 TOTAL
                     EDM=   .52E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15653        10.949        .46036E-04    .84884E-03
   2  alpha         4.8676        3.1253        .52315E-02   -.32929E-03
   3  Normalizat    1.1199        .31447        .17935E-03   -.13147E-03
   4  Prefactor     1.0237        .15251        .65901E-04   -.43548E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6864.386     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      432 TOTAL
                     EDM=   .71E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .15653        1.3254        .14882E-05    .30632E-03
   2  alpha         4.8676        4.2934        .15881E-01    .32664E-05
   3  Normalizat    1.1199        .31353        .14894E-04   -.44424E-04
   4  Prefactor     1.0237        .15791        .40394E-04   -.19329E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.156526
  alpha      = 4.86764
  Normalizat = 1.11987
  Prefactor  = 1.02371
 **********
 **   18 **HESSE 
 **********

 FCN=   6864.386     FROM HESSE     STATUS=OK            25 CALLS      457 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .15653        .97013        .37262E-06   -1.5629    
   2  alpha         4.8676        4.7760        .63525E-03    1.2439    
   3  Normalizat    1.1199        .31420        .29788E-05   -.89116    
   4  Prefactor     1.0237        .15810        .80789E-05   -.91943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.3672e-11
Minuit parameter uncertainties:
  1  0.77913
  2  2.667
  3  0.314722
  4  0.158168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228276': 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) = 6864.38649638
delta logL = 0.342317598608

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
590    Prefactor:  1.024e+00  1.582e-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.120e+00  3.147e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/228276/cmap_HighResolution_528854401_529113601_4FGL_J1159.3-2142_daily_bin1117.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.43e-05', job_status='DONE', photon_flux_upper_limit='1.28e-07', time_completed='2021-09-04 19:15:19.876764', job_id='228276', GAL2='1.02', fit_tolerance='1e-08', EG2='1.12', EG='1.21', time_epoch_completed='1630808119.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.42e-01', ts2='0.77', photon_index_error='0.00', photon_index='2.38' WHERE bin_id='1117' AND source_name='4FGL J1159.3-2142' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 19:15:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0289>
Subject: Job 228276: <4FGL_J1159.3-2142_daily_bin1117> in cluster <slac> Done

Job <4FGL_J1159.3-2142_daily_bin1117> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 19:00:29 2021
Job was executed on host(s) <bullet0289>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 19:00:31 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:00:31 2021
Terminated at Sat Sep  4 19:15:21 2021
Results reported at Sat Sep  4 19:15:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.3-2142_daily_bin1117 179.843 -21.7038 528854401 529113601 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 :                                   797.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            892 sec.

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

