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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1065
RA = 179.811, Dec = -22.4605
tmin = 515376001, tmax = 515635201
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='217751', job_status='RUN', time_executed='2021-09-04 18:33:19.092414', time_epoch_executed='1630805599.09' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1065'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217751

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217751/ft1_4FGL_J1159.2-2227_daily_bin1065.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217751/ft1_4FGL_J1159.2-2227_daily_bin1065.fits outfile=/scratch/kocevski/217751/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1065.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=515376001.0 tmax=515635201.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.46
user 3.23
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.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/217751/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1065.fits evtable="EVENTS" outfile="/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.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.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits" evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits sctable="SC_DATA" outfile=/scratch/kocevski/217751/ltcube_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.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/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits
.....................!
real 11.90
user 11.53
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits sctable="SC_DATA" expcube=/scratch/kocevski/217751/ltcube_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits outfile=/scratch/kocevski/217751/expmap_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.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/217751/ltcube_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits
.....................!
real 191.13
user 185.64
sys 5.09

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 182 point sources and 0 extended sources

Setting source of interest to:
4FGL J1159.2-2227 @ 179.811 -22.4605

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits outfile=/scratch/kocevski/217751/cmap_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.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.811 yref=-22.4605 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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits outfile=/scratch/kocevski/217751/cmap_HighResolution_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.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.811 yref=-22.4605 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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits evtable="EVENTS" scfile=/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217751/Model_4FGL_J1159.2-2227_daily_bin1065.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/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits.....................!
real 54.75
user 53.35
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits', '/scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits', expMap='/scratch/kocevski/217751/expmap_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits', expCube='/scratch/kocevski/217751/ltcube_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/217751/Model_4FGL_J1159.2-2227_daily_bin1065.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1159.2-2227'

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  6.706e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/217751/ft1_filtered_4FGL_J1159.2-2227_daily_bin1065.fits
Spacecraft file(s): /scratch/kocevski/217751/ft2_4FGL_J1159.2-2227_daily_bin1065.fits
Exposure map: /scratch/kocevski/217751/expmap_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits
Exposure cube: /scratch/kocevski/217751/ltcube_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/217751/Model_4FGL_J1159.2-2227_daily_bin1065.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) = 5846.12758783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .38393E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.126       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.448       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .53474E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.234       1.0000         .10000E-03   10000.    
    11 'norm      '    20.160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    24.529       1.0000         .10000E-03   10000.    
    13 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.7427       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    10.421       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.2378       1.0000         .10000E-03   10000.    
    22 'Prefactor '    32.306       1.0000         .10000E-03   10000.    
    23 'norm      '    2.6573       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5418       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5846.122     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2875 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    232.13       -.16743E-05** at limit **
   2  Prefactor     .10000E-03    17.011        .29569E-07** at limit **
   3  Prefactor     16.126        13.982        .22680E-06    .82083E-05
   4  Prefactor     .10000E-03    39.752        .82728E-07** at limit **
   5  norm          .10000E-03    .44636        .19574E-07** at limit **
   6  Prefactor     18.444        13.294        .22553E-06   -.26716E-04
   7  Prefactor     .10000E-03    17.172        .36465E-07** at limit **
   8  Prefactor     .10204E-03    4.3982       -.86520E-06** at limit **
   9  Prefactor     .10000E-03    20.886       -.11647E-06** at limit **
  10  Prefactor     22.269        41.897       -.39041E-05   -.42013E-04
  11  norm          20.161        22.628        .71766E-07   -.92193E-05
  12  Prefactor     24.532        20.770       -.38677E-06   -.92449E-04
  13  norm          .10000E-03    2.0879        .12265E-06** at limit **
  14  Prefactor     4.7481        8.9096        .37358E-06    .10055E-04
  15  Prefactor     .10000E-03    23.308        .25770E-07** at limit **
  16  Prefactor     .10000E-03    37.556       -.29528E-06** at limit **
  17  Prefactor     .10000E-03    11.715       -.12206E-07** at limit **
  18  Prefactor     .10000E-03    44.045       -.17586E-06** at limit **
  19  Prefactor     10.421        32.275        .10728E-05   -.41516E-05
  20  Prefactor     .10000E-03    5.4697        .25342E-07** at limit **
  21  Prefactor     6.2380        2.8312        .47487E-07   -.18414E-04
  22  Prefactor     32.306        17.340        .20283E-06   -.10770E-04
  23  norm          2.6574        1.5747        .99877E-07    .35780E-04
  24  Normalizat    1.5420        .27403       -.10988E-05   -.20406E-03
  25  Prefactor     .77711        .13567       -.93174E-06   -.32250E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 16.1259
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 18.4439
  Prefactor  = 0.0001
  Prefactor  = 0.000102044
  Prefactor  = 0.0001
  Prefactor  = 22.2687
  norm       = 20.1612
  Prefactor  = 24.5315
  norm       = 0.0001
  Prefactor  = 4.74806
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.4208
  Prefactor  = 0.0001
  Prefactor  = 6.23799
  Prefactor  = 32.3061
  norm       = 2.65744
  Normalizat = 1.54198
  Prefactor  = 0.777106
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.122     FROM HESSE     STATUS=OK           425 CALLS     3300 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    230.42        .21282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    17.016        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     16.126        13.995        .49869E-03   -1.4905    
   4  Prefactor     .10000E-03    39.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .60759        .99495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     18.444        13.349        .93250E-04   -1.4849    
   7  Prefactor     .10000E-03    17.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10204E-03    79.238        .29520E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     22.269        41.681        .84947E-04   -1.4764    
  11  norm          20.161        22.630        .89205E-04   -1.4810    
  12  Prefactor     24.532        20.760        .80881E-04   -1.4717    
  13  norm          .10000E-03    2.0962        .10788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.7481        8.8443        .18476E-03   -1.5272    
  15  Prefactor     .10000E-03    23.314        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    37.570        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    44.157        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     10.421        32.317        .12412E-03   -1.5062    
  20  Prefactor     .10000E-03    5.5200        .17456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.2380        2.8306        .84251E-04   -1.5208    
  22  Prefactor     32.306        17.347        .70498E-04   -1.4571    
  23  norm          2.6574        1.5700        .71031E-04   -1.5382    
  24  Normalizat    1.5420        .33234        .31244E-03   -.76605    
  25  Prefactor     .77711        .16290        .21189E-03   -1.0058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.44695e-08
Minuit parameter uncertainties:
  1  0.00155081
  2  1.91484e-05
  3  13.9982
  4  7.47082e-05
  5  5.40288e-06
  6  13.3511
  7  1.67846e-05
  8  0.0254867
  9  1.05745e-05
  10  41.7354
  11  22.6395
  12  20.7664
  13  1.03039e-05
  14  8.84677
  15  1.01279e-05
  16  7.74133e-05
  17  9.19142e-06
  18  2.50542e-05
  19  32.3716
  20  1.00352e-05
  21  2.83063
  22  17.3495
  23  1.57005
  24  0.332811
  25  0.163004
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  2.453e+01  2.077e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.448e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.771e-01  1.630e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.542e+00  3.328e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.10
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 8.54e-08 +/- 7.22e-08
Energy Flux (Fixed Index): 2.63e-05 +/- 2.23e-05

TS (Fixed Index): 2.10
Ra Dec: 179.811 -22.460
Photon Flux Upper Limit: 2.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.79e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217751/likelihoodResults_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.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) = 5846.11380005
delta logL = 0.00782514264938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5846.0984481
delta logL = 0.0231771010167

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    19.145       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6415       1.0000          .0000       10.000    
     3 'Normalizat'    1.5243       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78425       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5840E+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=   5846.098     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      276 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     19.149        41.216        .91537E-04    .15649E-03
   2  Index         2.6414        1.2716        .63036E-02    .92472E-04
   3  Normalizat    1.5246        .33514        .31386E-03    .84361E-04
   4  Prefactor     .78408        .16551        .21105E-03    .36587E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 19.1489
  Index      = 2.64137
  Normalizat = 1.52459
  Prefactor  = 0.784077
 **********
 **   18 **HESSE 
 **********

 FCN=   5846.098     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     19.149        30.541        .36615E-05   -1.4832    
   2  Index         2.6414        .94598        .25214E-03   -.49125    
   3  Normalizat    1.5246        .32896        .12554E-04   -.77090    
   4  Prefactor     .78408        .16267        .42209E-04   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39727e-10
Minuit parameter uncertainties:
  1  30.5662
  2  0.95339
  3  0.329423
  4  0.162767
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217751': 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) = 5846.09844753
delta logL = 0.0231776673645

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.915e+01  3.057e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.641e+00  9.534e-01  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.841e-01  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.525e+00  3.294e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.15
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.64 +/- 0.95
Photon Flux (Free Index): 9.62e-08 +/- 9.01e-08
Energy Flux (Free Index): 2.43e-05 +/- 2.16e-05

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/217751/cmap_HighResolution_515376001_515635201_4FGL_J1159.2-2227_daily_bin1065.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.79e-02', comment='SUCCESS', photon_flux='8.54e-08', energy_flux2='2.43e-05', photon_flux_error='7.22e-08', dlogl='2.32e-02', energy_flux='2.63e-05', photon_flux2='9.62e-08', job_status='DONE', time_completed='2021-09-04 18:44:57.476214', photon_index_error2='0.95', photon_index2='2.64', ts='2.10', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='2.30e-07', energy_flux_error2='2.16e-05', EG='1.54', time_epoch_completed='1630806297.48', return_code='0', job_id='217751', GAL2='0.78', EG2='1.52', return_code2='0', energy_flux_error='2.23e-05', photon_flux_error2='9.01e-08', ts2='2.15', photon_index='2.45' WHERE bin_id='1065' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:44:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 217751: <4FGL_J1159.2-2227_daily_bin1065> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1065> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:31:20 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:31:21 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:31:21 2021
Terminated at Sat Sep  4 18:44:58 2021
Results reported at Sat Sep  4 18:44:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1065 179.811 -22.4605 515376001 515635201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1159.2-2227 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   693.04 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   816 sec.
    Turnaround time :                            818 sec.

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

