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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1082
RA = 179.811, Dec = -22.4605
tmin = 519782401, tmax = 520041601
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='217783', job_status='RUN', time_executed='2021-09-04 18:31:49.564926', time_epoch_executed='1630805509.56' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1082'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217783

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217783/ft1_4FGL_J1159.2-2227_daily_bin1082.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217783/ft1_4FGL_J1159.2-2227_daily_bin1082.fits outfile=/scratch/kocevski/217783/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1082.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=519782401.0 tmax=520041601.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.21
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits" evtable="EVENTS" scfile=/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits sctable="SC_DATA" outfile=/scratch/kocevski/217783/ltcube_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.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/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits
.....................!
real 11.72
user 11.34
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits sctable="SC_DATA" expcube=/scratch/kocevski/217783/ltcube_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.fits outfile=/scratch/kocevski/217783/expmap_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.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/217783/ltcube_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.fits
.....................!
real 192.44
user 187.45
sys 4.63

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/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits scfile=/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits outfile=/scratch/kocevski/217783/cmap_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits scfile=/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits outfile=/scratch/kocevski/217783/cmap_HighResolution_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits evtable="EVENTS" scfile=/scratch/kocevski/217783/ft2_4FGL_J1159.2-2227_daily_bin1082.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217783/Model_4FGL_J1159.2-2227_daily_bin1082.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/217783/ft1_filtered_4FGL_J1159.2-2227_daily_bin1082.fits.....................!
real 58.51
user 57.09
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.493       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.377       1.0000         .10000E-03   10000.    
     4 'Prefactor '    233.01       1.0000         .10000E-03   10000.    
     5 'norm      '    .96277       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .28449E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.701       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64353       1.0000         .10000E-03   10000.    
     9 'Prefactor '    32.880       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .26302E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.482       1.0000         .10000E-03   10000.    
    13 'norm      '    .10132E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.6977       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    8.6779       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .59137       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5085       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .86597       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=   6327.936     FROM MIGRAD    STATUS=CONVERGED   1064 CALLS     3849 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.462        124.46        .61497E-04    .27952E-04
   2  Prefactor     .10000E-03    32.552        .18142E-02** at limit **
   3  Prefactor     22.370        19.637        .84675E-04    .45112E-04
   4  Prefactor     232.97        85.932        .13257E-03    .11241E-03
   5  norm          .96416        1.1781        .99097E-03   -.38657E-03
   6  Prefactor     .10055E-03    13.700        .65568E-01** at limit **
   7  Prefactor     24.712        41.020        .80598E-04   -.35828E-04
   8  Prefactor     .64310        7.6005        .29658E-02    .22103E-03
   9  Prefactor     32.881        20.933        .69881E-04   -.29284E-05
  10  Prefactor     .10000E-03    9.0984        .18142E-02** at limit **
  11  norm          .10001E-03    36.193        .12760    ** at limit **
  12  Prefactor     13.464        16.991        .10909E-03   -.64405E-04
  13  norm          .10000E-03    4.1458        .15668E-02** at limit **
  14  Prefactor     3.6968        6.2468        .21002E-03   -.25182E-03
  15  Prefactor     .10000E-03    38.609        .18142E-02** at limit **
  16  Prefactor     .10000E-03    12.589        .18142E-02** at limit **
  17  Prefactor     .10000E-03    9.2236        .18142E-02** at limit **
  18  Prefactor     .10000E-03    29.702        .18142E-02** at limit **
  19  Prefactor     .10000E-03    24.519        .18142E-02** at limit **
  20  Prefactor     .10000E-03    5.5544        .18142E-02** at limit **
  21  Prefactor     8.6782        3.0970        .81380E-04    .19418E-04
  22  Prefactor     .10000E-03    11.944        .18142E-02** at limit **
  23  norm          .58978        .81713        .99543E-03    .21960E-03
  24  Normalizat    1.5087        .33247        .32507E-03    .62182E-04
  25  Prefactor     .86588        .16371        .20993E-03    .61898E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.4621
  Prefactor  = 0.0001
  Prefactor  = 22.3696
  Prefactor  = 232.975
  norm       = 0.964162
  Prefactor  = 0.00010055
  Prefactor  = 24.712
  Prefactor  = 0.6431
  Prefactor  = 32.8806
  Prefactor  = 0.0001
  norm       = 0.00010001
  Prefactor  = 13.4644
  norm       = 0.0001
  Prefactor  = 3.69679
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.67816
  Prefactor  = 0.0001
  norm       = 0.589784
  Normalizat = 1.50867
  Prefactor  = 0.865879
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.936     FROM HESSE     STATUS=OK           427 CALLS     4276 TOTAL
                     EDM=   .38E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.462        124.44        .12299E-04   -1.4404    
   2  Prefactor     .10000E-03    32.553        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     22.370        19.636        .33870E-05   -1.4762    
   4  Prefactor     232.97        85.910        .26515E-04   -1.2643    
   5  norm          .96416        1.1770        .39639E-04   -1.5512    
   6  Prefactor     .10055E-03    11.553        .73117E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.712        41.003        .32239E-05   -1.4713    
   8  Prefactor     .64310        7.5902        .11863E-03   -1.5548    
   9  Prefactor     32.881        20.933        .13976E-04   -1.4561    
  10  Prefactor     .10000E-03    9.0985        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10001E-03    35.373        .12960       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.464        16.986        .43635E-05   -1.4974    
  13  norm          .10000E-03    4.1465        .31336E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.6968        6.2452        .84009E-05   -1.5323    
  15  Prefactor     .10000E-03    38.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    12.589        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.2237        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.703        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    24.522        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    5.5579        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     8.6782        3.0969        .32552E-05   -1.5119    
  22  Prefactor     .10000E-03    11.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .58978        .81678        .39817E-04   -1.5554    
  24  Normalizat    1.5087        .33260        .13003E-04   -.77535    
  25  Prefactor     .86588        .16390        .83973E-05   -.97344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75085e-10
Minuit parameter uncertainties:
  1  125.215
  2  0.000173666
  3  19.6418
  4  85.9565
  5  1.17703
  6  0.00504157
  7  41.0499
  8  4.41908
  9  20.9372
  10  2.54115e-06
  11  0.00116108
  12  16.992
  13  6.56637e-05
  14  6.24635
  15  3.1155e-05
  16  2.76116e-05
  17  7.67374e-06
  18  4.81973e-05
  19  3.9787e-05
  20  1.56064e-06
  21  3.09698
  22  6.06859e-06
  23  0.816796
  24  0.333086
  25  0.16399
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.346e+01  1.699e+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:  8.659e-01  1.640e-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.509e+00  3.331e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/217783/likelihoodResults_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.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) = 6327.91871746
delta logL = 0.0170286131197

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6327.89279914
delta logL = 0.0429469329938

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.2604       1.0000         .10000E-03   10000.    
     2 'Index     '    2.8315       1.0000          .0000       10.000    
     3 'Normalizat'    1.4875       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87401       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6327.893     FROM MIGRAD    STATUS=FAILED       108 CALLS      280 TOTAL
                     EDM=   .98E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2095        513.43        .69745E-03   -.29667E-04
   2  Index         2.8361        5.5614        .76684E-02    .49172E-03
   3  Normalizat    1.4877        .44794        .32695E-03   -.39083E-04
   4  Prefactor     .87386        .22289        .20909E-03   -.17290E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6327.893     FROM SIMPLEX   STATUS=UNCHANGED     89 CALLS      369 TOTAL
                     EDM=   .15E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2095        513.43        .20408E-03   -.29667E-04
   2  Index         2.8361        5.5614        .72832E-03    .49172E-03
   3  Normalizat    1.4877        .44794        .28777E-03   -.39083E-04
   4  Prefactor     .87386        .22289        .22298E-03   -.17290E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6327.893     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      401 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.2096        22.843        .27898E-04   -.17930E-04
   2  Index         2.8361        1.5236        .15337E-02   -.81020E-05
   3  Normalizat    1.4877        .32665        .13078E-04   -.36510E-04
   4  Prefactor     .87386        .16334        .83636E-05   -.15224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.20956
  Index      = 2.83614
  Normalizat = 1.48771
  Prefactor  = 0.873859
 **********
 **   18 **HESSE 
 **********

 FCN=   6327.893     FROM HESSE     STATUS=OK            23 CALLS      424 TOTAL
                     EDM=   .74E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.2096        20.993        .11159E-05   -1.5135    
   2  Index         2.8361        1.4041        .61347E-04   -.44757    
   3  Normalizat    1.4877        .32525        .26156E-05   -.78124    
   4  Prefactor     .87386        .16261        .16727E-05   -.97061    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.36609e-12
Minuit parameter uncertainties:
  1  21.0119
  2  1.42782
  3  0.325706
  4  0.1627
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217783': 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) = 6327.89279217
delta logL = 0.0429539072311

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  8.210e+00  2.101e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.836e+00  1.428e+00  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:  8.739e-01  1.627e-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.488e+00  3.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.79
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/217783/cmap_HighResolution_519782401_520041601_4FGL_J1159.2-2227_daily_bin1082.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.74e-07', time_completed='2021-09-04 18:45:30.760526', job_id='217783', GAL2='0.87', fit_tolerance='1e-08', EG2='1.49', EG='1.51', time_epoch_completed='1630806330.76', return_code2='0', ts='0.79', comment='SUCCESS', return_code='0', GAL='0.87', dlogl='4.30e-02', ts2='0.88', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1082' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:45:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 217783: <4FGL_J1159.2-2227_daily_bin1082> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1082 179.811 -22.4605 519782401 520041601 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 :                                   808.18 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   848 sec.
    Turnaround time :                            849 sec.

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

