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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin873
RA = 179.811, Dec = -22.4605
tmin = 465609601, tmax = 465868801
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='217442', job_status='RUN', time_executed='2021-09-04 18:34:56.649943', time_epoch_executed='1630805696.65' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='873'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/217442

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/217442/ft1_4FGL_J1159.2-2227_daily_bin873.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/217442/ft1_4FGL_J1159.2-2227_daily_bin873.fits outfile=/scratch/kocevski/217442/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin873.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=465609601.0 tmax=465868801.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.58
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.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/217442/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin873.fits evtable="EVENTS" outfile="/scratch/kocevski/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits" evtable="EVENTS" scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits sctable="SC_DATA" outfile=/scratch/kocevski/217442/ltcube_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.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/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits
.....................!
real 12.52
user 12.18
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits sctable="SC_DATA" expcube=/scratch/kocevski/217442/ltcube_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.fits outfile=/scratch/kocevski/217442/expmap_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.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/217442/ltcube_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.fits
.....................!
real 190.85
user 185.45
sys 4.92

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/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits outfile=/scratch/kocevski/217442/cmap_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits outfile=/scratch/kocevski/217442/cmap_HighResolution_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.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.61
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits evtable="EVENTS" scfile=/scratch/kocevski/217442/ft2_4FGL_J1159.2-2227_daily_bin873.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/217442/Model_4FGL_J1159.2-2227_daily_bin873.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/217442/ft1_filtered_4FGL_J1159.2-2227_daily_bin873.fits.....................!
real 53.93
user 52.55
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .24391E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.465       1.0000         .10000E-03   10000.    
     4 'Prefactor '    52.594       1.0000         .10000E-03   10000.    
     5 'norm      '    3.3781       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.332       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.362       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    19.471       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3066       1.0000         .10000E-03   10000.    
    11 'norm      '    .12019E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10373E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11756E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10331E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.5261       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.3911       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.5402       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82703       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=   5689.831     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2886 TOTAL
                     EDM=   .44E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    228.16        .34784E-04** at limit **
   2  Prefactor     .10000E-03    20.532       -.37559E-05** at limit **
   3  Prefactor     17.463        18.923        .15907E-05    .18557E-05
   4  Prefactor     52.517        54.745       -.51311E-04   -.20713E-04
   5  norm          3.3737        1.7698        .93116E-06   -.21624E-03
   6  Prefactor     10.332        13.815       -.50376E-06   -.55735E-04
   7  Prefactor     36.373        42.520        .39736E-05   -.13059E-05
   8  Prefactor     .10000E-03    4.7695       -.62766E-07** at limit **
   9  Prefactor     19.462        23.849        .12795E-05   -.56424E-05
  10  Prefactor     2.2854        90.117        .75385E-05   -.32089E-04
  11  norm          .10000E-03    35.795        .17196E-04** at limit **
  12  Prefactor     .10000E-03    9.8408       -.15783E-06** at limit **
  13  norm          .10000E-03    2.2989        .51078E-07** at limit **
  14  Prefactor     .10000E-03    2.6028       -.12808E-06** at limit **
  15  Prefactor     .10000E-03    43.329       -.24740E-04** at limit **
  16  Prefactor     .10000E-03    15.868        .31916E-05** at limit **
  17  Prefactor     .10000E-03    13.778       -.19297E-05** at limit **
  18  Prefactor     .10000E-03    61.272        .96374E-05** at limit **
  19  Prefactor     5.5109        24.513        .55088E-05   -.30424E-04
  20  Prefactor     .10000E-03    5.5319        .68435E-07** at limit **
  21  Prefactor     4.3916        2.4722       -.44943E-07    .28888E-04
  22  Prefactor     .10000E-03    10.872        .22124E-06** at limit **
  23  norm          .10000E-03    .33790       -.14380E-07** at limit **
  24  Normalizat    1.5402        .26743        .12674E-05   -.87432E-04
  25  Prefactor     .82690        .13183       -.12849E-06   -.33324E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 17.4632
  Prefactor  = 52.5174
  norm       = 3.37373
  Prefactor  = 10.332
  Prefactor  = 36.3727
  Prefactor  = 0.0001
  Prefactor  = 19.4622
  Prefactor  = 2.28543
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.51088
  Prefactor  = 0.0001
  Prefactor  = 4.39156
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.54018
  Prefactor  = 0.826903
 **********
 **   18 **HESSE 
 **********

 FCN=   5689.831     FROM HESSE     STATUS=OK           423 CALLS     3309 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    229.11        .20042E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.463        18.950        .95837E-04   -1.4872    
   4  Prefactor     52.517        54.805        .27652E-03   -1.4257    
   5  norm          3.3737        1.7672        .68525E-04   -1.5341    
   6  Prefactor     10.332        13.862        .12465E-03   -1.5065    
   7  Prefactor     36.373        42.511        .66461E-04   -1.4501    
   8  Prefactor     .10000E-03    4.8096        .16073E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     19.462        23.919        .90769E-04   -1.4825    
  10  Prefactor     2.2854        90.434        .27017E-03   -1.5406    
  11  norm          .10000E-03    35.963        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    9.8762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.3224        .11166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    2.6186        .11881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    43.394        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.878        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.796        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    61.399        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.5109        24.554        .17091E-03   -1.5238    
  20  Prefactor     .10000E-03    5.5749        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.3916        2.4721        .86587E-04   -1.5289    
  22  Prefactor     .10000E-03    10.951        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .34206        .42809E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.5402        .32031        .31181E-03   -.76655    
  25  Prefactor     .82690        .15751        .20480E-03   -.98744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.01029e-10
Minuit parameter uncertainties:
  1  0.00112418
  2  1.37293e-05
  3  18.9563
  4  54.8573
  5  1.76725
  6  13.866
  7  42.5467
  8  1.27191e-05
  9  23.9312
  10  28.7989
  11  7.60074e-05
  12  2.23137e-06
  13  6.95685e-07
  14  6.37297e-06
  15  2.3428e-07
  16  2.04906e-05
  17  5.15321e-06
  18  4.40867e-05
  19  23.2805
  20  5.80822e-06
  21  2.47212
  22  1.01932e-05
  23  6.5848e-07
  24  0.320737
  25  0.157599
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.231e-06  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.269e-01  1.576e-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.540e+00  3.207e-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.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.95e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/217442/likelihoodResults_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5689.83158411
delta logL = -0.000482432551507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5689.83110432
delta logL = -2.64487698587e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4141       1.0000          .0000       10.000    
     3 'Normalizat'    1.5395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82724       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=   5689.831     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      239 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    780.47        .90712E-02** at limit **
   2  Index         2.3921        6.1580        .50000        .18409E-04
   3  Normalizat    1.5402        .66064E-01    .70481E-01    .25989E-04
   4  Prefactor     .82690        .33216E-01    .44071E-01    .36909E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3921
  Normalizat = 1.54018
  Prefactor  = 0.826902
 **********
 **   18 **HESSE 
 **********

 FCN=   5689.831     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    67.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3921        6.2055        .50000       -.54870    
   3  Normalizat    1.5402        .30379        .31181E-03   -.76655    
   4  Prefactor     .82690        .15300        .20480E-03   -.98744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45307e-09
Minuit parameter uncertainties:
  1  0.000260913
  2  10.8933
  3  0.304153
  4  0.153076
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/217442': 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) = 5689.83110143
delta logL = 2.48825926974e-07

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  2.609e-04  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.392e+00  1.089e+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:  8.269e-01  1.531e-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.540e+00  3.042e-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/217442/cmap_HighResolution_465609601_465868801_4FGL_J1159.2-2227_daily_bin873.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.95e-03', job_status='DONE', photon_flux_upper_limit='1.15e-07', time_completed='2021-09-04 18:46:14.749983', job_id='217442', GAL2='0.83', fit_tolerance='1e-08', EG2='1.54', EG='1.54', time_epoch_completed='1630806374.75', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='2.49e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='873' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:46:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 217442: <4FGL_J1159.2-2227_daily_bin873> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin873> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:30:49 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:30:50 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:30:50 2021
Terminated at Sat Sep  4 18:46:15 2021
Results reported at Sat Sep  4 18:46:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin873 179.811 -22.4605 465609601 465868801 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 :                                   677.24 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             269.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            926 sec.

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

