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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1272
RA = 179.811, Dec = -22.4605
tmin = 569030401, tmax = 569289601
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='219302', job_status='RUN', time_executed='2021-09-04 18:36:57.182333', time_epoch_executed='1630805817.18' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1272'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219302

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219302/ft1_4FGL_J1159.2-2227_daily_bin1272.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219302/ft1_4FGL_J1159.2-2227_daily_bin1272.fits outfile=/scratch/kocevski/219302/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1272.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=569030401.0 tmax=569289601.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.60
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.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/219302/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1272.fits evtable="EVENTS" outfile="/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.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.59
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits" evtable="EVENTS" scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits sctable="SC_DATA" outfile=/scratch/kocevski/219302/ltcube_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.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/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits
.....................!
real 12.05
user 11.66
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits sctable="SC_DATA" expcube=/scratch/kocevski/219302/ltcube_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits outfile=/scratch/kocevski/219302/expmap_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.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/219302/ltcube_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits
.....................!
real 191.15
user 185.65
sys 4.28

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/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits outfile=/scratch/kocevski/219302/cmap_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.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.56
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits outfile=/scratch/kocevski/219302/cmap_HighResolution_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.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.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits evtable="EVENTS" scfile=/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219302/Model_4FGL_J1159.2-2227_daily_bin1272.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/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits.....................!
real 83.56
user 82.03
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits', '/scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits', expMap='/scratch/kocevski/219302/expmap_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits', expCube='/scratch/kocevski/219302/ltcube_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/219302/Model_4FGL_J1159.2-2227_daily_bin1272.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/219302/ft1_filtered_4FGL_J1159.2-2227_daily_bin1272.fits
Spacecraft file(s): /scratch/kocevski/219302/ft2_4FGL_J1159.2-2227_daily_bin1272.fits
Exposure map: /scratch/kocevski/219302/expmap_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits
Exposure cube: /scratch/kocevski/219302/ltcube_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/219302/Model_4FGL_J1159.2-2227_daily_bin1272.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) = 10409.019999

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    76.603       1.0000         .10000E-03   10000.    
     2 'Prefactor '    11.880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.1303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.906       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.2443       1.0000         .10000E-03   10000.    
     9 'Prefactor '    181.45       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    15.631       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.277       1.0000         .10000E-03   10000.    
    13 'norm      '    7.6526       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12899E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    14.299       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10897E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.157       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.370       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.7815       1.0000         .10000E-03   10000.    
    21 'Prefactor '    3.4044       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.7788       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94145       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0213       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=   10409.02     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2909 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     76.604        66.121        .39297E-06    .23136E-04
   2  Prefactor     11.880        12.743       -.30597E-06    .85792E-04
   3  Prefactor     6.1305        6.2069        .10744E-05   -.70563E-03
   4  Prefactor     .10000E-03    9.8294        .42879E-08** at limit **
   5  norm          .10000E-03    .26326       -.52270E-08** at limit **
   6  Prefactor     14.906        7.8403        .25248E-06   -.33751E-03
   7  Prefactor     .10000E-03    21.894       -.94795E-07** at limit **
   8  Prefactor     5.2449        3.9495        .51554E-07   -.12956E-03
   9  Prefactor     181.45        29.831        .17803E-06    .10360E-03
  10  Prefactor     .10000E-03    7.4489        .12500E-08** at limit **
  11  norm          15.632        15.584        .22792E-08   -.37432E-05
  12  Prefactor     14.274        12.417        .12660E-06    .15216E-04
  13  norm          7.6512        4.9991        .29467E-07   -.95279E-04
  14  Prefactor     .10000E-03    2.6245       -.39562E-07** at limit **
  15  Prefactor     .10000E-03    46.144        .19255E-06** at limit **
  16  Prefactor     14.293        25.583       -.20507E-05   -.12503E-03
  17  Prefactor     .10000E-03    13.820       -.52803E-07** at limit **
  18  Prefactor     22.147        23.142       -.23271E-05   -.24095E-03
  19  Prefactor     18.372        18.620        .64821E-06    .50618E-04
  20  Prefactor     2.7819        5.1686        .55723E-08   -.26862E-03
  21  Prefactor     3.4044        1.6916       -.15686E-08    .38810E-04
  22  Prefactor     3.7789        4.8813        .68271E-07   -.23691E-05
  23  norm          .10000E-03    .38963        .16099E-07** at limit **
  24  Normalizat    .94135        .19481       -.10588E-06   -.94754E-06
  25  Prefactor     1.0213        .10092        .45497E-07   -.91635E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 76.6044
  Prefactor  = 11.8804
  Prefactor  = 6.13052
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.9057
  Prefactor  = 0.0001
  Prefactor  = 5.24488
  Prefactor  = 181.453
  Prefactor  = 0.0001
  norm       = 15.6317
  Prefactor  = 14.2743
  norm       = 7.65121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.2929
  Prefactor  = 0.0001
  Prefactor  = 22.1473
  Prefactor  = 18.3725
  Prefactor  = 2.78188
  Prefactor  = 3.40441
  Prefactor  = 3.77887
  norm       = 0.0001
  Normalizat = 0.941353
  Prefactor  = 1.02127
 **********
 **   18 **HESSE 
 **********

 FCN=   10409.02     FROM HESSE     STATUS=OK           433 CALLS     3342 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     76.604        66.202        .45879E-04   -1.3955    
   2  Prefactor     11.880        12.798        .58112E-03   -1.5018    
   3  Prefactor     6.1305        7.1039        .81074E-03   -1.5213    
   4  Prefactor     .10000E-03    9.8338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    .41093        .10119E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     14.906        7.9978        .51871E-03   -1.4936    
   7  Prefactor     .10000E-03    21.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.2449        3.9521        .16865E-03   -1.5250    
   9  Prefactor     181.45        29.873        .29968E-04   -1.3006    
  10  Prefactor     .10000E-03    7.4521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          15.632        15.593        .10130E-03   -1.4917    
  12  Prefactor     14.274        12.447        .10600E-03   -1.4952    
  13  norm          7.6512        5.0096        .14496E-03   -1.5155    
  14  Prefactor     .10000E-03    2.6575        .16093E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     14.293        26.203        .10592E-03   -1.4952    
  17  Prefactor     .10000E-03    13.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.147        24.171        .85094E-04   -1.4766    
  19  Prefactor     18.372        18.645        .93447E-04   -1.4850    
  20  Prefactor     2.7819        5.2866        .24399E-03   -1.5374    
  21  Prefactor     3.4044        1.6935        .87880E-04   -1.5339    
  22  Prefactor     3.7789        4.8764        .20767E-03   -1.5319    
  23  norm          .10000E-03    .91062        .12349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94135        .22996        .35519E-03   -.95022    
  25  Prefactor     1.0213        .11949        .18498E-03   -.92024    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67339e-10
Minuit parameter uncertainties:
  1  66.2661
  2  12.8012
  3  7.10486
  4  1.17604e-06
  5  1.70324e-06
  6  7.99833
  7  2.0603e-05
  8  3.95234
  9  29.8758
  10  1.29826e-06
  11  15.5966
  12  12.4493
  13  5.00989
  14  1.909e-05
  15  0.000109258
  16  26.2239
  17  8.37148e-05
  18  24.1816
  19  18.6507
  20  5.28745
  21  1.69352
  22  4.87688
  23  2.05934e-06
  24  0.230196
  25  0.119517
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.427e+01  1.245e+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:  1.021e+00  1.195e-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:  9.414e-01  2.302e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 4.97e-08 +/- 4.33e-08
Energy Flux (Fixed Index): 1.53e-05 +/- 1.34e-05

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) = 10408.959598
delta logL = 0.0584739728729

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10408.9563027
delta logL = 0.0617693212098

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.292       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1768       1.0000          .0000       10.000    
     3 'Normalizat'    .95922       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0161       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.

 FCN=   10408.96     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      262 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.340        343.20        .24807E-02   -.10293E-03
   2  Index         2.1817        5.9670        .18404       -.31439E-04
   3  Normalizat    .95886        .11395        .79607E-01    .27390E-03
   4  Prefactor     1.0161        .39566E-01    .42555E-01   -.19638E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.3397
  Index      = 2.18173
  Normalizat = 0.958858
  Prefactor  = 1.01607
 **********
 **   18 **HESSE 
 **********

 FCN=   10408.96     FROM HESSE     STATUS=OK            31 CALLS      293 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.340        13.672        .99227E-04   -1.4899    
   2  Index         2.1817        .79855        .11036E-01   -.59880    
   3  Normalizat    .95886        .22372        .35236E-03   -.94422    
   4  Prefactor     1.0161        .11892        .18543E-03   -.92196    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23249e-09
Minuit parameter uncertainties:
  1  13.675
  2  0.803609
  3  0.223943
  4  0.118955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219302': 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) = 10408.9562709
delta logL = 0.061801121592

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.634e+01  1.367e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.182e+00  8.036e-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:  1.016e+00  1.190e-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:  9.589e-01  2.239e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.46
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.18 +/- 0.80
Photon Flux (Free Index): 3.54e-08 +/- 5.00e-08
Energy Flux (Free Index): 1.65e-05 +/- 1.47e-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/219302/cmap_HighResolution_569030401_569289601_4FGL_J1159.2-2227_daily_bin1272.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.97e-08', energy_flux2='1.65e-05', photon_flux_error='4.33e-08', dlogl='6.18e-02', energy_flux='1.53e-05', photon_flux2='3.54e-08', job_status='DONE', time_completed='2021-09-04 18:51:53.010336', photon_index_error2='0.80', photon_index2='2.18', ts='5.32', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.94', time_epoch_completed='1630806713.01', return_code='0', job_id='219302', GAL2='1.02', EG2='0.96', return_code2='0', energy_flux_error='1.34e-05', photon_flux_error2='5.00e-08', ts2='5.46', photon_index='2.45' WHERE bin_id='1272' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:51:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 219302: <4FGL_J1159.2-2227_daily_bin1272> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1272> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 18:35:29 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:35: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 18:35:31 2021
Terminated at Sat Sep  4 18:51:53 2021
Results reported at Sat Sep  4 18:51:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1272 179.811 -22.4605 569030401 569289601 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 :                                   891.05 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             320.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

