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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin310
RA = 179.811, Dec = -22.4605
tmin = 319680001, tmax = 319939201
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='214329', job_status='RUN', time_executed='2021-09-04 18:22:46.232388', time_epoch_executed='1630804966.23' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='310'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/214329

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/214329/ft1_4FGL_J1159.2-2227_daily_bin310.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/214329/ft1_4FGL_J1159.2-2227_daily_bin310.fits outfile=/scratch/kocevski/214329/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin310.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=319680001.0 tmax=319939201.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.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/214329/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin310.fits evtable="EVENTS" outfile="/scratch/kocevski/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.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/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits" evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits sctable="SC_DATA" outfile=/scratch/kocevski/214329/ltcube_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.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/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits
.....................!
real 11.90
user 11.55
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits sctable="SC_DATA" expcube=/scratch/kocevski/214329/ltcube_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.fits outfile=/scratch/kocevski/214329/expmap_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.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/214329/ltcube_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.fits
.....................!
real 191.27
user 185.45
sys 5.37

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/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits outfile=/scratch/kocevski/214329/cmap_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits outfile=/scratch/kocevski/214329/cmap_HighResolution_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits evtable="EVENTS" scfile=/scratch/kocevski/214329/ft2_4FGL_J1159.2-2227_daily_bin310.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/214329/Model_4FGL_J1159.2-2227_daily_bin310.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/214329/ft1_filtered_4FGL_J1159.2-2227_daily_bin310.fits.....................!
real 61.91
user 60.44
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    179.55       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.8338       1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.924       1.0000         .10000E-03   10000.    
     5 'norm      '    4.7376       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.2938       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .72158E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    4.2515       1.0000         .10000E-03   10000.    
    12 'Prefactor '    26.396       1.0000         .10000E-03   10000.    
    13 'norm      '    5.3990       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6619       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.6905       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10269E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.8932       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.9798       1.0000         .10000E-03   10000.    
    22 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    23 'norm      '    1.5504       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3647       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77750       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=   7228.030     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2897 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     179.53        115.83       -.76420E-05   -.12668E-03
   2  Prefactor     .10000E-03    15.084        .47462E-05** at limit **
   3  Prefactor     2.8308        5.5139        .32203E-05   -.17971E-02
   4  Prefactor     29.922        32.787       -.39051E-06   -.14813E-04
   5  norm          4.7374        1.5444        .45241E-07    .33914E-04
   6  Prefactor     .10000E-03    2.7253        .11026E-07** at limit **
   7  Prefactor     .10000E-03    9.1682        .48284E-05** at limit **
   8  Prefactor     1.2941        5.3210       -.23267E-05   -.48741E-03
   9  Prefactor     .10005E-03    13.710       -.58144E-06** at limit **
  10  Prefactor     .10000E-03    9.0357       -.37417E-05** at limit **
  11  norm          4.2519        19.960       -.15070E-06   -.11623E-04
  12  Prefactor     26.392        21.629        .77397E-06    .16309E-03
  13  norm          5.3991        6.7487       -.16711E-07    .49400E-04
  14  Prefactor     4.6607        5.5376       -.49780E-06   -.18614E-03
  15  Prefactor     .10000E-03    11.420       -.27158E-05** at limit **
  16  Prefactor     8.6943        24.517       -.13669E-05   -.31503E-04
  17  Prefactor     .10000E-03    11.073        .62165E-07** at limit **
  18  Prefactor     .10000E-03    18.499       -.46872E-05** at limit **
  19  Prefactor     .10000E-03    28.423        .19244E-05** at limit **
  20  Prefactor     8.8928        7.1788        .46192E-07   -.14844E-05
  21  Prefactor     4.9798        2.3204       -.20602E-07    .11639E-04
  22  Prefactor     10.592        11.507        .76091E-07    .16549E-04
  23  norm          1.5505        .89991       -.10053E-07   -.17626E-04
  24  Normalizat    1.3650        .22285        .71294E-06    .82559E-04
  25  Prefactor     .77738        .11279       -.58430E-07    .18105E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 179.526
  Prefactor  = 0.000100001
  Prefactor  = 2.83078
  Prefactor  = 29.9217
  norm       = 4.73744
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 1.29405
  Prefactor  = 0.000100048
  Prefactor  = 0.0001
  norm       = 4.25188
  Prefactor  = 26.3917
  norm       = 5.39905
  Prefactor  = 4.66069
  Prefactor  = 0.0001
  Prefactor  = 8.69428
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 8.89282
  Prefactor  = 4.97979
  Prefactor  = 10.5918
  norm       = 1.55047
  Normalizat = 1.36498
  Prefactor  = 0.777378
 **********
 **   18 **HESSE 
 **********

 FCN=   7228.030     FROM HESSE     STATUS=OK           433 CALLS     3330 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     179.53        116.82        .15062E-03   -1.3020    
   2  Prefactor     .10000E-03    15.193        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.8308        8.0644        .12079E-02   -1.5371    
   4  Prefactor     29.922        32.792        .73242E-04   -1.4613    
   5  norm          4.7374        1.5451        .57773E-04   -1.5273    
   6  Prefactor     .10000E-03    2.7302        .13706E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.2941        5.5513        .37636E-03   -1.5480    
   9  Prefactor     .10005E-03    162.32        .60684E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.0758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          4.2519        19.985        .19541E-03   -1.5296    
  12  Prefactor     26.392        21.681        .77973E-04   -1.4680    
  13  norm          5.3991        6.7485        .17295E-03   -1.5243    
  14  Prefactor     4.6607        5.4979        .18639E-03   -1.5276    
  15  Prefactor     .10000E-03    11.460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.6943        24.381        .13597E-03   -1.5118    
  17  Prefactor     .10000E-03    11.110        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    18.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.8928        7.1906        .13441E-03   -1.5111    
  21  Prefactor     4.9798        2.3242        .82721E-04   -1.5262    
  22  Prefactor     10.592        11.509        .12310E-03   -1.5057    
  23  norm          1.5505        .90292        .59373E-04   -1.5459    
  24  Normalizat    1.3650        .26358        .30445E-03   -.81647    
  25  Prefactor     .77738        .13389        .20115E-03   -1.0057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.76528e-09
Minuit parameter uncertainties:
  1  116.967
  2  0.000235852
  3  8.06745
  4  32.8116
  5  1.54509
  6  3.3587e-07
  7  0.000192162
  8  5.36111
  9  0.00562151
  10  0.000132769
  11  18.446
  12  21.6872
  13  6.74949
  14  5.49847
  15  0.00012286
  16  24.4091
  17  2.84205e-06
  18  0.000267356
  19  0.000111289
  20  7.19125
  21  2.32424
  22  11.511
  23  0.902926
  24  0.263838
  25  0.133948
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  2.639e+01  2.169e+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:  7.774e-01  1.339e-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.365e+00  2.638e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.54
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 9.19e-08 +/- 7.55e-08
Energy Flux (Fixed Index): 2.83e-05 +/- 2.33e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.70184826
delta logL = 0.328458137026

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7227.70043901
delta logL = 0.32986739076

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    39.334       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0984       1.0000          .0000       10.000    
     3 'Normalizat'    1.3882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76887       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=   7227.700     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      272 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     39.361        515.02        .15978E-02   -.25491E-03
   2  Index         2.0990        3.1832        .16291       -.74192E-04
   3  Normalizat    1.3887        .12750        .68328E-01   -.25478E-03
   4  Prefactor     .76860        .50161E-01    .43311E-01   -.10822E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 39.3614
  Index      = 2.09902
  Normalizat = 1.38868
  Prefactor  = 0.768596
 **********
 **   18 **HESSE 
 **********

 FCN=   7227.700     FROM HESSE     STATUS=OK            29 CALLS      301 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     39.361        26.215        .63910E-04   -1.4452    
   2  Index         2.0990        .40861        .58739E-02   -.61897    
   3  Normalizat    1.3887        .25796        .30229E-03   -.80957    
   4  Prefactor     .76860        .13259        .20212E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.34929e-10
Minuit parameter uncertainties:
  1  26.2228
  2  0.409297
  3  0.2582
  4  0.13264
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/214329': 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) = 7227.70043352
delta logL = 0.32987287653

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  3.936e+01  2.622e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.099e+00  4.093e-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:  7.686e-01  1.326e-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.389e+00  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.24
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.10 +/- 0.41
Photon Flux (Free Index): 7.43e-08 +/- 5.11e-08
Energy Flux (Free Index): 4.09e-05 +/- 3.23e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/214329/cmap_HighResolution_319680001_319939201_4FGL_J1159.2-2227_daily_bin310.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.19e-08', energy_flux2='4.09e-05', photon_flux_error='7.55e-08', dlogl='3.30e-01', energy_flux='2.83e-05', photon_flux2='7.43e-08', job_status='DONE', time_completed='2021-09-04 18:34:26.416320', photon_index_error2='0.41', photon_index2='2.10', ts='4.54', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='3.23e-05', EG='1.36', time_epoch_completed='1630805666.42', return_code='0', job_id='214329', GAL2='0.77', EG2='1.39', return_code2='0', energy_flux_error='2.33e-05', photon_flux_error2='5.11e-08', ts2='5.24', photon_index='2.45' WHERE bin_id='310' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:34:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 214329: <4FGL_J1159.2-2227_daily_bin310> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin310> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 18:20:37 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:20:39 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:20:39 2021
Terminated at Sat Sep  4 18:34:27 2021
Results reported at Sat Sep  4 18:34:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin310 179.811 -22.4605 319680001 319939201 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 :                                   699.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   828 sec.
    Turnaround time :                            830 sec.

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

