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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin740
RA = 179.811, Dec = -22.4605
tmin = 431136001, tmax = 431395201
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='216248', job_status='RUN', time_executed='2021-09-04 18:28:13.237578', time_epoch_executed='1630805293.24' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/216248

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/216248/ft1_4FGL_J1159.2-2227_daily_bin740.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/216248/ft1_4FGL_J1159.2-2227_daily_bin740.fits outfile=/scratch/kocevski/216248/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin740.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=431136001.0 tmax=431395201.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 5.56
user 5.32
sys 0.22

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits" evtable="EVENTS" scfile=/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits sctable="SC_DATA" outfile=/scratch/kocevski/216248/ltcube_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.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/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits
.....................!
real 12.79
user 12.42
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits sctable="SC_DATA" expcube=/scratch/kocevski/216248/ltcube_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.fits outfile=/scratch/kocevski/216248/expmap_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.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/216248/ltcube_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.fits
.....................!
real 192.96
user 187.02
sys 5.55

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/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits scfile=/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits outfile=/scratch/kocevski/216248/cmap_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits scfile=/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits outfile=/scratch/kocevski/216248/cmap_HighResolution_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=179.811 yref=-22.4605 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits evtable="EVENTS" scfile=/scratch/kocevski/216248/ft2_4FGL_J1159.2-2227_daily_bin740.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/216248/Model_4FGL_J1159.2-2227_daily_bin740.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/216248/ft1_filtered_4FGL_J1159.2-2227_daily_bin740.fits....................!
real 63.83
user 62.44
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    34.523       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .49398       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .78544       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.5831       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.7528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10191E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.184       1.0000         .10000E-03   10000.    
    13 'norm      '    2.9390       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .29275E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0056       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.8227       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.3720       1.0000         .10000E-03   10000.    
    22 'Prefactor '    14.300       1.0000         .10000E-03   10000.    
    23 'norm      '    .50166       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .85504       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0947       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=   7358.762     FROM MIGRAD    STATUS=CONVERGED    632 CALLS     2952 TOTAL
                     EDM=   .13E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     34.480        56.208       -.18377E-04   -.20898E-06
   2  Prefactor     .24797        25.173        .21485E-06   -.23193E-04
   3  Prefactor     .79570        .35959        .15264E-07   -.45832E-03
   4  Prefactor     .10000E-03    27.599       -.11649E-05** at limit **
   5  norm          1.5830        .99222        .17590E-06    .20060E-03
   6  Prefactor     4.7531        7.1029       -.23279E-05   -.12879E-04
   7  Prefactor     .10000E-03    21.209        .16417E-05** at limit **
   8  Prefactor     .10000E-03    2.0592       -.31995E-07** at limit **
   9  Prefactor     .10000E-03    4.7682       -.23123E-07** at limit **
  10  Prefactor     .10000E-03    8.4948       -.52370E-06** at limit **
  11  norm          .10000E-03    30.883        .19344E-05** at limit **
  12  Prefactor     17.180        13.272       -.21846E-07   -.29685E-04
  13  norm          2.9393        4.0301       -.10883E-06   -.44378E-04
  14  Prefactor     .10000E-03    1.2659       -.12140E-06** at limit **
  15  Prefactor     .10000E-03    168.59        .66127E-05** at limit **
  16  Prefactor     7.0043        16.162       -.87164E-06   -.28721E-05
  17  Prefactor     .10000E-03    6.4096        .11451E-06** at limit **
  18  Prefactor     .10000E-03    56.038        .58718E-06** at limit **
  19  Prefactor     .10000E-03    7.8103        .11287E-05** at limit **
  20  Prefactor     9.8226        7.3327        .33541E-05   -.68850E-05
  21  Prefactor     6.3720        2.7513       -.52804E-06    .43773E-04
  22  Prefactor     14.298        14.080       -.66912E-06   -.42891E-05
  23  norm          .50240        .95794       -.20345E-07   -.66457E-04
  24  Normalizat    .85502        .21340        .10706E-05   -.56680E-04
  25  Prefactor     1.0947        .11562       -.37911E-06   -.20777E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 34.4798
  Prefactor  = 0.24797
  Prefactor  = 0.795696
  Prefactor  = 0.0001
  norm       = 1.58298
  Prefactor  = 4.75307
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1798
  norm       = 2.93925
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.00428
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.82264
  Prefactor  = 6.37205
  Prefactor  = 14.2977
  norm       = 0.502398
  Normalizat = 0.855021
  Prefactor  = 1.09474
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.762     FROM HESSE     STATUS=OK           439 CALLS     3391 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     34.480        56.210        .68203E-04   -1.4533    
   2  Prefactor     .24797        30.372        .12819       -1.5608    
   3  Prefactor     .79570        9.9473        .24771E-02   -1.5530    
   4  Prefactor     .10000E-03    27.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.5830        .98762        .64783E-04   -1.5456    
   6  Prefactor     4.7531        7.1165        .18456E-03   -1.5272    
   7  Prefactor     .10000E-03    21.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.0816        .12016E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.7718        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.5045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    31.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.180        13.216        .96619E-04   -1.4879    
  13  norm          2.9393        3.9983        .17138E-03   -1.5365    
  14  Prefactor     .10000E-03    1.2725        .94217E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    175.39        .39709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     7.0043        16.157        .15157E-03   -1.5179    
  17  Prefactor     .10000E-03    6.4136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    56.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.8312        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.8226        7.3375        .12786E-03   -1.5081    
  21  Prefactor     6.3720        2.7533        .87339E-04   -1.5203    
  22  Prefactor     14.298        14.080        .10592E-03   -1.4952    
  23  norm          .50240        .87206        .11091E-02   -1.5566    
  24  Normalizat    .85502        .24747        .34585E-03   -.98059    
  25  Prefactor     1.0947        .13523        .17309E-03   -.89635    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15169e-09
Minuit parameter uncertainties:
  1  56.296
  2  5.49042
  3  5.62752
  4  2.44675e-05
  5  0.987635
  6  7.11773
  7  2.04815e-05
  8  5.3822e-07
  9  8.20464e-08
  10  1.90067e-07
  11  2.49923e-05
  12  13.2182
  13  3.99866
  14  5.41504e-07
  15  0.000352411
  16  16.1667
  17  1.04446e-06
  18  1.36319e-05
  19  6.80328e-07
  20  7.33816
  21  2.75335
  22  14.0833
  23  0.872082
  24  0.247793
  25  0.135271
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.718e+01  1.322e+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.095e+00  1.353e-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:  8.550e-01  2.478e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.15
Ra Dec: 179.811 -22.460
Photon Index (Fixed Index): 2.45 +/- 0.00
Photon Flux (Fixed Index): 5.98e-08 +/- 4.60e-08
Energy Flux (Fixed Index): 1.85e-05 +/- 1.42e-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) = 7358.62055737
delta logL = 0.141279351668

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7358.55144796
delta logL = 0.210388763594

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.149       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0958       1.0000          .0000       10.000    
     3 'Normalizat'    .87445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0889       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=   7358.551     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      220 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.171        539.78        .20813E-02    .11416E-04
   2  Index         2.0959        5.8286        .14112        .10531E-03
   3  Normalizat    .87411        .14954        .77377E-01    .41600E-04
   4  Prefactor     1.0891        .56975E-01    .38024E-01   -.44471E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.1706
  Index      = 2.09586
  Normalizat = 0.874108
  Prefactor  = 1.08907
 **********
 **   18 **HESSE 
 **********

 FCN=   7358.551     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.171        18.308        .83253E-04   -1.4745    
   2  Index         2.0959        .55672        .86288E-02   -.61974    
   3  Normalizat    .87411        .24026        .34248E-03   -.97376    
   4  Prefactor     1.0891        .13414        .17352E-03   -.89817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4558e-11
Minuit parameter uncertainties:
  1  18.3125
  2  0.558473
  3  0.240556
  4  0.134182
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/216248': 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) = 7358.55144622
delta logL = 0.210390503496

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  2.317e+01  1.831e+01  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.096e+00  5.585e-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.089e+00  1.342e-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:  8.741e-01  2.406e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.57
Ra Dec: 179.811 -22.460
Photon Index (Free Index): 2.10 +/- 0.56
Photon Flux (Free Index): 4.35e-08 +/- 4.33e-08
Energy Flux (Free Index): 2.41e-05 +/- 2.24e-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/216248/cmap_HighResolution_431136001_431395201_4FGL_J1159.2-2227_daily_bin740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.98e-08', energy_flux2='2.41e-05', photon_flux_error='4.60e-08', dlogl='2.10e-01', energy_flux='1.85e-05', photon_flux2='4.35e-08', job_status='DONE', time_completed='2021-09-04 18:40:35.069245', photon_index_error2='0.56', photon_index2='2.10', ts='5.15', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='2.24e-05', EG='0.86', time_epoch_completed='1630806035.07', return_code='0', job_id='216248', GAL2='1.09', EG2='0.87', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.33e-08', ts2='5.57', photon_index='2.45' WHERE bin_id='740' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:40:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 216248: <4FGL_J1159.2-2227_daily_bin740> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin740> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 18:25:57 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:25:59 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:25:59 2021
Terminated at Sat Sep  4 18:40:35 2021
Results reported at Sat Sep  4 18:40:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin740 179.811 -22.4605 431136001 431395201 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 :                                   740.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             292.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

