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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin184
RA = 179.811, Dec = -22.4605
tmin = 287020801, tmax = 287280001
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='212523', job_status='RUN', time_executed='2021-09-04 18:19:23.711874', time_epoch_executed='1630804763.71' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='184'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212523

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212523/ft1_4FGL_J1159.2-2227_daily_bin184.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212523/ft1_4FGL_J1159.2-2227_daily_bin184.fits outfile=/scratch/kocevski/212523/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin184.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=287020801.0 tmax=287280001.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 4.64
user 4.37
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.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/212523/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin184.fits evtable="EVENTS" outfile="/scratch/kocevski/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.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.57
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits" evtable="EVENTS" scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits sctable="SC_DATA" outfile=/scratch/kocevski/212523/ltcube_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.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/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits
.....................!
real 16.13
user 15.76
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits sctable="SC_DATA" expcube=/scratch/kocevski/212523/ltcube_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.fits outfile=/scratch/kocevski/212523/expmap_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.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/212523/ltcube_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.fits
.....................!
real 190.29
user 185.37
sys 3.69

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/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits outfile=/scratch/kocevski/212523/cmap_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=179.811 yref=-22.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits outfile=/scratch/kocevski/212523/cmap_HighResolution_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits evtable="EVENTS" scfile=/scratch/kocevski/212523/ft2_4FGL_J1159.2-2227_daily_bin184.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212523/Model_4FGL_J1159.2-2227_daily_bin184.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/212523/ft1_filtered_4FGL_J1159.2-2227_daily_bin184.fits.....................!
real 53.27
user 51.89
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    121.77       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.743       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.025       1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.097       1.0000         .10000E-03   10000.    
     5 'norm      '    .66542       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    28.154       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.6898       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.0847       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .39721E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.926       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.294       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 '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.825       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.076       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6577       1.0000         .10000E-03   10000.    
    22 'Prefactor '    19.121       1.0000         .10000E-03   10000.    
    23 'norm      '    .81583       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0157       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0227       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=   5838.475     FROM MIGRAD    STATUS=CONVERGED    596 CALLS     3044 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     121.75        109.13       -.15872E-05   -.64796E-04
   2  Prefactor     17.774        63.818        .13779E-05    .18858E-04
   3  Prefactor     16.021        26.187       -.24802E-06   -.23102E-04
   4  Prefactor     28.106        50.916       -.16111E-05   -.69429E-04
   5  norm          .66537        1.5048        .40550E-06   -.13675E-03
   6  Prefactor     .10000E-03    4.3093        .35816E-08** at limit **
   7  Prefactor     28.153        39.782        .68556E-07    .19228E-04
   8  Prefactor     3.6878        8.5663        .11983E-05    .21470E-03
   9  Prefactor     3.0955        28.933        .11335E-04   -.27095E-03
  10  Prefactor     .10041E-03    45.596       -.10521E-05** at limit **
  11  norm          .10000E-03    67.799       -.57963E-06** at limit **
  12  Prefactor     14.925        10.945       -.24006E-05   -.10239E-02
  13  norm          .10000E-03    1.8235       -.19037E-06** at limit **
  14  Prefactor     .10000E-03    9.7531        .19410E-06** at limit **
  15  Prefactor     23.294        36.899        .13458E-06   -.31182E-04
  16  Prefactor     .10000E-03    81.453        .15312E-05** at limit **
  17  Prefactor     .10000E-03    6.1318       -.71902E-09** at limit **
  18  Prefactor     .10000E-03    12.813       -.12977E-07** at limit **
  19  Prefactor     12.823        21.567        .69537E-08   -.27448E-04
  20  Prefactor     13.076        8.5542       -.67172E-06   -.47487E-03
  21  Prefactor     9.6576        3.7192        .13600E-06    .34150E-04
  22  Prefactor     19.121        17.368        .17702E-06   -.29546E-05
  23  norm          .81578        1.1218        .17866E-06   -.28564E-04
  24  Normalizat    1.0155        .27252       -.58365E-06   -.18080E-04
  25  Prefactor     1.0228        .13664       -.23650E-06    .15001E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 121.754
  Prefactor  = 17.7739
  Prefactor  = 16.0209
  Prefactor  = 28.1064
  norm       = 0.665371
  Prefactor  = 0.0001
  Prefactor  = 28.1533
  Prefactor  = 3.68783
  Prefactor  = 3.0955
  Prefactor  = 0.000100407
  norm       = 0.0001
  Prefactor  = 14.9251
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.2938
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8232
  Prefactor  = 13.0764
  Prefactor  = 9.6576
  Prefactor  = 19.1211
  norm       = 0.815784
  Normalizat = 1.0155
  Prefactor  = 1.02285
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.475     FROM HESSE     STATUS=OK           439 CALLS     3483 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     121.75        109.13        .18236E-03   -1.3497    
   2  Prefactor     17.774        63.437        .95083E-04   -1.4865    
   3  Prefactor     16.021        26.088        .10005E-03   -1.4907    
   4  Prefactor     28.106        50.563        .75581E-04   -1.4647    
   5  norm          .66537        1.4679        .12836E-03   -1.5545    
   6  Prefactor     .10000E-03    4.3210        .15489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     28.153        39.802        .75504E-04   -1.4646    
   8  Prefactor     3.6878        8.5466        .21025E-03   -1.5324    
   9  Prefactor     3.0955        33.535        .11546E-02   -1.5356    
  10  Prefactor     .10041E-03    44.817        .13883       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    68.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.925        11.736        .10367E-03   -1.4935    
  13  norm          .10000E-03    1.8336        .10062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.151        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     23.294        36.899        .82993E-04   -1.4742    
  16  Prefactor     .10000E-03    82.481        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    6.1332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.823        21.595        .11185E-03   -1.4992    
  20  Prefactor     13.076        8.6461        .11077E-03   -1.4985    
  21  Prefactor     9.6576        3.7254        .85589E-04   -1.5086    
  22  Prefactor     19.121        17.375        .91594E-04   -1.4833    
  23  norm          .81578        1.0388        .91107E-03   -1.5527    
  24  Normalizat    1.0155        .32135        .36095E-03   -.92513    
  25  Prefactor     1.0228        .16270        .18705E-03   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.17496e-09
Minuit parameter uncertainties:
  1  109.312
  2  63.6791
  3  26.1067
  4  50.6404
  5  1.468
  6  1.53582e-06
  7  39.8392
  8  8.54939
  9  20.3915
  10  0.00854942
  11  0.000244389
  12  11.7379
  13  1.94762e-05
  14  1.82031e-05
  15  36.9354
  16  0.000470646
  17  3.25638e-06
  18  2.62079e-06
  19  21.608
  20  8.64696
  21  3.72549
  22  17.3793
  23  1.03883
  24  0.321967
  25  0.162777
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.493e+01  1.174e+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.023e+00  1.628e-01  0.000e+00  1.000e+01 ( 1.000e+00)
582        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
583        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
580   Normalization:  1.016e+00  3.220e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.86
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.20e-08 +/- 4.08e-08
Energy Flux (Fixed Index): 1.60e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/212523/likelihoodResults_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.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) = 5838.05118069
delta logL = 0.423745148145

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5838.05037469
delta logL = 0.424551148864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.052       1.0000         .10000E-03   10000.    
     2 'Index     '    1.9273       1.0000          .0000       10.000    
     3 'Normalizat'    1.0337       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0158       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=   5838.050     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      263 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.018        637.14        .19621E-02   -.46643E-05
   2  Index         1.9259        5.7270        .20647        .52158E-04
   3  Normalizat    1.0339        .16504        .80871E-01    .11126E-04
   4  Prefactor     1.0158        .66211E-01    .42584E-01    .48829E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.0179
  Index      = 1.92589
  Normalizat = 1.0339
  Prefactor  = 1.01576
 **********
 **   18 **HESSE 
 **********

 FCN=   5838.050     FROM HESSE     STATUS=OK            31 CALLS      294 TOTAL
                     EDM=   .72E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.018        21.208        .78484E-04   -1.4687    
   2  Index         1.9259        .52506        .74770E-02   -.66216    
   3  Normalizat    1.0339        .30454        .35800E-03   -.91903    
   4  Prefactor     1.0158        .15944        .18756E-03   -.92206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17183e-12
Minuit parameter uncertainties:
  1  21.2144
  2  0.526623
  3  0.305052
  4  0.159517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212523': 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) = 5838.05036695
delta logL = 0.424558885462

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  2.602e+01  2.121e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  1.926e+00  5.266e-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.595e-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.034e+00  3.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.71
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 1.93 +/- 0.53
Photon Flux (Free Index): 3.75e-08 +/- 3.31e-08
Energy Flux (Free Index): 3.14e-05 +/- 3.80e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/212523/cmap_HighResolution_287020801_287280001_4FGL_J1159.2-2227_daily_bin184.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.19e-02', comment='SUCCESS', photon_flux='5.20e-08', energy_flux2='3.14e-05', photon_flux_error='4.08e-08', dlogl='4.25e-01', energy_flux='1.60e-05', photon_flux2='3.75e-08', job_status='DONE', time_completed='2021-09-04 18:31:27.206936', photon_index_error2='0.53', photon_index2='1.93', ts='3.86', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.53e-07', energy_flux_error2='3.80e-05', EG='1.02', time_epoch_completed='1630805487.21', return_code='0', job_id='212523', GAL2='1.02', EG2='1.03', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='3.31e-08', ts2='4.71', photon_index='2.45' WHERE bin_id='184' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:31:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 212523: <4FGL_J1159.2-2227_daily_bin184> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin184 179.811 -22.4605 287020801 287280001 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 :                                   717.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.46 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   910 sec.
    Turnaround time :                            912 sec.

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

