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


Performing analysis on: 4FGL_J1159.2-2227_daily_bin1302
RA = 179.811, Dec = -22.4605
tmin = 576806401, tmax = 577065601
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='219345', job_status='RUN', time_executed='2021-09-04 18:38:08.957047', time_epoch_executed='1630805888.96' WHERE source_name='4FGL J1159.2-2227' and cadence='daily' and bin_id='1302'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/219345

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/219345/ft1_4FGL_J1159.2-2227_daily_bin1302.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/219345/ft1_4FGL_J1159.2-2227_daily_bin1302.fits outfile=/scratch/kocevski/219345/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1302.fits ra=179.811 dec=-22.4605 rad=12.0 tmin=576806401.0 tmax=577065601.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.04
user 2.84
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.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/219345/ft1_filteredMKT_4FGL_J1159.2-2227_daily_bin1302.fits evtable="EVENTS" outfile="/scratch/kocevski/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.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.52
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits" evtable="EVENTS" scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits sctable="SC_DATA" outfile=/scratch/kocevski/219345/ltcube_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.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/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits
.....................!
real 12.55
user 12.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits sctable="SC_DATA" expcube=/scratch/kocevski/219345/ltcube_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.fits outfile=/scratch/kocevski/219345/expmap_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.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/219345/ltcube_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.fits
.....................!
real 190.92
user 185.18
sys 5.32

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/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits outfile=/scratch/kocevski/219345/cmap_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.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/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits outfile=/scratch/kocevski/219345/cmap_HighResolution_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits evtable="EVENTS" scfile=/scratch/kocevski/219345/ft2_4FGL_J1159.2-2227_daily_bin1302.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/219345/Model_4FGL_J1159.2-2227_daily_bin1302.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/219345/ft1_filtered_4FGL_J1159.2-2227_daily_bin1302.fits.........................!
real 18.97
user 17.36
sys 1.13

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10397E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .85032       1.0000         .10000E-03   10000.    
     4 'Prefactor '    147.54       1.0000         .10000E-03   10000.    
     5 'norm      '    .11111E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.444       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10890E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15324E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    24.818       1.0000         .10000E-03   10000.    
    11 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2955       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .74589       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=   607.1549     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2773 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    200.83        .14213E-05** at limit **
   2  Prefactor     .10000E-03    57.510        .79084E-06** at limit **
   3  Prefactor     .63974        897.74       -.61909E-04    .32451E-05
   4  Prefactor     147.81        245.07       -.78502E-05    .16407E-05
   5  norm          .10000E-03    4.4706       -.16286E-05** at limit **
   6  Prefactor     29.392        43.881       -.23023E-05   -.27615E-04
   7  Prefactor     .10000E-03    219.76        .33407E-05** at limit **
   8  Prefactor     .10003E-03    47.154        .10783E-04** at limit **
   9  Prefactor     .10000E-03    75.064        .57965E-06** at limit **
  10  Prefactor     24.529        139.18       -.31870E-05   -.53095E-05
  11  norm          .10000E-03    52.456        .33612E-06** at limit **
  12  Prefactor     .10000E-03    62.252        .24210E-05** at limit **
  13  norm          .10000E-03    19.061        .10659E-05** at limit **
  14  Prefactor     .10000E-03    16.376        .84044E-06** at limit **
  15  Prefactor     .10000E-03    253.05        .22629E-05** at limit **
  16  Prefactor     .10000E-03    103.38       -.94306E-06** at limit **
  17  Prefactor     .10000E-03    127.22       -.41631E-06** at limit **
  18  Prefactor     .10000E-03    267.84        .19816E-05** at limit **
  19  Prefactor     .10000E-03    145.89        .15762E-06** at limit **
  20  Prefactor     .10000E-03    35.452        .11579E-06** at limit **
  21  Prefactor     .10000E-03    25.749       -.34325E-08** at limit **
  22  Prefactor     .10000E-03    625.55       -.79299E-05** at limit **
  23  norm          .10000E-03    49.573       -.45635E-06** at limit **
  24  Normalizat    1.2985        .90973        .21101E-04   -.12646E-03
  25  Prefactor     .74516        .43077       -.15159E-04   -.49572E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.639735
  Prefactor  = 147.814
  norm       = 0.000100001
  Prefactor  = 29.3915
  Prefactor  = 0.000100001
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 24.5286
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.29851
  Prefactor  = 0.745159
 **********
 **   18 **HESSE 
 **********

 FCN=   607.1549     FROM HESSE     STATUS=OK           413 CALLS     3186 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    200.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    57.516        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .63974        975.74        .50284E-02   -1.5548    
   4  Prefactor     147.81        244.73        .16589E-03   -1.3270    
   5  norm          .10000E-03    4.7074        .10312E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     29.392        43.752        .73835E-04   -1.4623    
   7  Prefactor     .10000E-03    220.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10003E-03    49.935        .16952E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    75.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     24.529        140.22        .40205E-03   -1.4717    
  11  norm          .10000E-03    52.463        .17451E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    62.397        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    19.108        .10519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.396        .97485E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    253.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    103.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    127.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    267.88        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    145.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    35.452        .14342E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.749        .12221E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    625.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    49.571        .16963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2985        .97610        .31068E-03   -.83611    
  25  Prefactor     .74516        .45463        .20379E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38683e-09
Minuit parameter uncertainties:
  1  0.000230838
  2  3.73554e-05
  3  50.8168
  4  246.436
  5  0.000136097
  6  43.7993
  7  0.0011399
  8  0.00259919
  9  0.000210327
  10  117.715
  11  7.65734e-05
  12  0.000377575
  13  0.000122626
  14  0.000102276
  15  0.000284779
  16  0.000107855
  17  0.000139576
  18  0.000250317
  19  8.68648e-05
  20  2.4866e-06
  21  7.24717e-07
  22  0.000179786
  23  9.66107e-07
  24  0.990482
  25  0.456933
Done.

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

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.776e-04  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.452e-01  4.569e-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.299e+00  9.905e-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: 8.63e-07 ph cm-2 s-1
Energy Flux Upper Limit: 6.69e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/219345/likelihoodResults_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.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) = 607.155018818
delta logL = -7.53462886678e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 607.154943489
delta logL = -1.65944129549e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3955       1.0000          .0000       10.000    
     3 'Normalizat'    1.2985       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74511       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=   607.1549     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      237 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8674.3        .90712E-02** at limit **
   2  Index         2.3902        5.9142        .50000        .73158E-06
   3  Normalizat    1.2985        .34073        .70219E-01    .29329E-06
   4  Prefactor     .74515        .17607        .42999E-01    .12971E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.39015
  Normalizat = 1.29854
  Prefactor  = 0.745146
 **********
 **   18 **HESSE 
 **********

 FCN=   607.1549     FROM HESSE     STATUS=OK            33 CALLS      270 TOTAL
                     EDM=   .56E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3902        6.1680        .50000       -.54916    
   3  Normalizat    1.2985        .82983        .31069E-03   -.83610    
   4  Prefactor     .74515        .43172        .20378E-03   -1.0178    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63691e-13
Minuit parameter uncertainties:
  1  3.67443e-05
  2  4.9851
  3  0.838569
  4  0.43369
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/219345': 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) = 607.154943462
delta logL = 1.03653974293e-08

Extracting fit parameters...

4FGL J1159.2-2227
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  3.674e-05  1.000e-04  1.000e+04 ( 1.000e-13)
300        Index:  2.390e+00  4.985e+00  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  1.270e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
581    Prefactor:  7.451e-01  4.337e-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.299e+00  8.386e-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/219345/cmap_HighResolution_576806401_577065601_4FGL_J1159.2-2227_daily_bin1302.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.69e-02', job_status='DONE', photon_flux_upper_limit='8.63e-07', time_completed='2021-09-04 18:44:12.509030', job_id='219345', GAL2='0.75', fit_tolerance='1e-08', EG2='1.30', EG='1.30', time_epoch_completed='1630806252.51', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='1.04e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.45' WHERE bin_id='1302' AND source_name='4FGL J1159.2-2227' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 18:44:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 219345: <4FGL_J1159.2-2227_daily_bin1302> in cluster <slac> Done

Job <4FGL_J1159.2-2227_daily_bin1302> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 18:35:32 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 18:35:34 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:35:34 2021
Terminated at Sat Sep  4 18:44:13 2021
Results reported at Sat Sep  4 18:44:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1159.2-2227_daily_bin1302 179.811 -22.4605 576806401 577065601 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 :                                   355.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             257.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            521 sec.

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

