/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 115 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 = 7399
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1159.2-2227_daily_bin200
RA = 179.811, Dec = -22.4605
tmin = 291168001, tmax = 291427201
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='212549', job_status='RUN', time_executed='2021-09-04 18:18:26.055858', time_epoch_executed='1630804706.06' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='200'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212549/ft1_4FGL_J1159.2-2227_daily_bin200.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212549/ft1_4FGL_J1159.2-2227_daily_bin200.fits outfile=/scratch/kocevski/212549/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin200.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=291168001.0 tmax=291427201.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.48
user 3.24
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits" evtable="EVENTS" scfile=/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits sctable="SC_DATA" outfile=/scratch/kocevski/212549/ltcube_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.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/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits
.....................!
real 12.80
user 12.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits sctable="SC_DATA" expcube=/scratch/kocevski/212549/ltcube_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.fits outfile=/scratch/kocevski/212549/expmap_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.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/212549/ltcube_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.fits
.....................!
real 190.39
user 185.61
sys 4.18

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/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits scfile=/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits outfile=/scratch/kocevski/212549/cmap_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits scfile=/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits outfile=/scratch/kocevski/212549/cmap_HighResolution_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits evtable="EVENTS" scfile=/scratch/kocevski/212549/ft2_4FGL_J1159.2-2227_daily_bin200.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212549/Model_4FGL_J1159.2-2227_daily_bin200.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/212549/ft1_filtered_4FGL_J1159.2-2227_daily_bin200.fits.....................!
real 56.32
user 55.02
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    74.821       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.0366       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .86454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10295E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10603E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10770E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    50.720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    8.5812       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.261       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11250E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .40824E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10351E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6353       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.554       1.0000         .10000E-03   10000.    
    23 'norm      '    7.3832       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4610       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .79220       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=   5904.179     FROM MIGRAD    STATUS=CONVERGED    561 CALLS     2840 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     74.780        81.858       -.45016E-06   -.50946E-04
   2  Prefactor     .10000E-03    14.451       -.20007E-07** at limit **
   3  Prefactor     .10000E-03    6.7374       -.25777E-07** at limit **
   4  Prefactor     .10000E-03    27.810       -.23667E-06** at limit **
   5  norm          2.0365        1.2862       -.15801E-07   -.10420E-03
   6  Prefactor     .86282        9.6702        .45435E-05   -.37981E-04
   7  Prefactor     .10000E-03    67.129       -.49568E-06** at limit **
   8  Prefactor     .10000E-03    13.020        .33760E-07** at limit **
   9  Prefactor     .10000E-03    11.116       -.91675E-08** at limit **
  10  Prefactor     .10000E-03    47.970        .38868E-06** at limit **
  11  norm          50.758        31.163        .29648E-06    .10206E-03
  12  Prefactor     .10000E-03    10.769        .39008E-06** at limit **
  13  norm          8.5826        5.8148        .13041E-06    .55457E-04
  14  Prefactor     10.266        8.2305       -.40756E-06    .33639E-04
  15  Prefactor     .10000E-03    44.307        .34100E-06** at limit **
  16  Prefactor     .10000E-03    179.37       -.22900E-05** at limit **
  17  Prefactor     .10000E-03    9.6379        .32371E-07** at limit **
  18  Prefactor     .10000E-03    27.923       -.85522E-07** at limit **
  19  Prefactor     .10000E-03    18.654        .21260E-06** at limit **
  20  Prefactor     .10000E-03    1.7383        .10130E-08** at limit **
  21  Prefactor     8.6354        3.0604        .13797E-07   -.55377E-05
  22  Prefactor     21.556        18.921        .15901E-06   -.25299E-05
  23  norm          7.3832        2.1048        .29988E-07   -.10466E-04
  24  Normalizat    1.4611        .26283        .10558E-06   -.66195E-04
  25  Prefactor     .79218        .13264       -.74947E-06   -.19668E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 74.7795
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.0365
  Prefactor  = 0.862819
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 50.7575
  Prefactor  = 0.0001
  norm       = 8.58255
  Prefactor  = 10.2656
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.63537
  Prefactor  = 21.5561
  norm       = 7.38323
  Normalizat = 1.46106
  Prefactor  = 0.792181
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.179     FROM HESSE     STATUS=OK           421 CALLS     3261 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     74.780        82.010        .23209E-03   -1.3976    
   2  Prefactor     .10000E-03    14.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.7517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    27.830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.0365        1.2818        .66742E-04   -1.5423    
   6  Prefactor     .86282        9.7593        .46234E-03   -1.5522    
   7  Prefactor     .10000E-03    67.800        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.135        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    48.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          50.758        31.217        .28156E-03   -1.4282    
  12  Prefactor     .10000E-03    10.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          8.5826        5.8166        .13684E-03   -1.5122    
  14  Prefactor     10.266        8.1884        .12508E-03   -1.5067    
  15  Prefactor     .10000E-03    44.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    184.91        .42509E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    27.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.715        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.7407        .98934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.6354        3.0617        .77908E-04   -1.5120    
  22  Prefactor     21.556        18.937        .86274E-04   -1.4779    
  23  norm          7.3832        2.1062        .57220E-04   -1.5164    
  24  Normalizat    1.4611        .31047        .32015E-03   -.78878    
  25  Prefactor     .79218        .15591        .21227E-03   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62285e-11
Minuit parameter uncertainties:
  1  82.1343
  2  3.08734e-06
  3  3.24867e-06
  4  6.59823e-05
  5  1.28183
  6  5.80449
  7  0.000168331
  8  1.45e-05
  9  1.97712e-06
  10  0.000193607
  11  31.2275
  12  1.63534e-05
  13  5.81703
  14  8.18933
  15  0.00012398
  16  6.49452e-05
  17  9.58017e-07
  18  5.93842e-05
  19  8.8483e-05
  20  3.64669e-07
  21  3.06175
  22  18.942
  23  2.10619
  24  0.310873
  25  0.155996
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  1.635e-05  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.922e-01  1.560e-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.461e+00  3.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/212549/likelihoodResults_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.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) = 5904.17907728
delta logL = -0.000441587255409

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5904.17863614
delta logL = -4.41112206317e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4412       1.0000          .0000       10.000    
     3 'Normalizat'    1.4609       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79228       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=   5904.179     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      236 TOTAL
                     EDM=   .86E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6231.2        .18142E-02** at limit **
   2  Index         2.1146        6.1218        .94992E-01   -.11968E-08
   3  Normalizat    1.4611        .23040        .32015E-03    .29154E-04
   4  Prefactor     .79218        .11733        .21227E-03    .48791E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11458
  Normalizat = 1.46106
  Prefactor  = 0.792181
 **********
 **   18 **HESSE 
 **********

 FCN=   5904.179     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .19E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.333        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1146        6.5788        .37997E-02   -.61515    
   3  Normalizat    1.4611        .30330        .12806E-04   -.78878    
   4  Prefactor     .79218        .15451        .84908E-05   -1.0002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.91418e-12
Minuit parameter uncertainties:
  1  8.62239e-07
  2  459.09
  3  0.303678
  4  0.15459
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212549': 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) = 5904.17863547
delta logL = 2.21411937673e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  8.622e-07  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.115e+00  4.591e+02  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.922e-01  1.546e-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.461e+00  3.037e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 179.811 -22.460

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/212549/cmap_HighResolution_291168001_291427201_4FGL_J1159.2-2227_daily_bin200.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.01e-02', job_status='DONE', photon_flux_upper_limit='1.31e-07', time_completed='2021-09-04 18:30:09.040460', job_id='212549', GAL2='0.79', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1630805409.04', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.21e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='200' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:30:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 212549: <4FGL_J1159.2-2227_daily_bin200> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin200> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 18:16:16 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:16:18 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:16:18 2021
Terminated at Sat Sep  4 18:30:09 2021
Results reported at Sat Sep  4 18:30:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin200 179.811 -22.4605 291168001 291427201 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 :                                   686.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

