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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1040
RA = 178.081, Dec = -8.6663
tmin = 508896001, tmax = 509155201
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='122058', job_status='RUN', time_executed='2021-09-04 13:46:26.906571', time_epoch_executed='1630788386.91' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1040'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/122058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/122058/ft1_4FGL_J1152.3-0839_daily_bin1040.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/122058/ft1_4FGL_J1152.3-0839_daily_bin1040.fits outfile=/scratch/kocevski/122058/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1040.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=508896001.0 tmax=509155201.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.27
user 3.46
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.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/122058/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1040.fits evtable="EVENTS" outfile="/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.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.81
user 0.34
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits" evtable="EVENTS" scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits sctable="SC_DATA" outfile=/scratch/kocevski/122058/ltcube_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.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/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits
.....................!
real 12.04
user 11.54
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits sctable="SC_DATA" expcube=/scratch/kocevski/122058/ltcube_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits outfile=/scratch/kocevski/122058/expmap_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.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/122058/ltcube_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits
.....................!
real 189.70
user 184.96
sys 4.38

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 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1152.3-0839 @ 178.081 -8.6663

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits outfile=/scratch/kocevski/122058/cmap_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.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=178.081 yref=-8.6663 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits outfile=/scratch/kocevski/122058/cmap_HighResolution_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.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=178.081 yref=-8.6663 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.41
sys 0.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits evtable="EVENTS" scfile=/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/122058/Model_4FGL_J1152.3-0839_daily_bin1040.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/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits.....................!
real 74.06
user 72.63
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits', '/scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits', expMap='/scratch/kocevski/122058/expmap_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits', expCube='/scratch/kocevski/122058/ltcube_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/122058/Model_4FGL_J1152.3-0839_daily_bin1040.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1152.3-0839'

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.838e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/122058/ft1_filtered_4FGL_J1152.3-0839_daily_bin1040.fits
Spacecraft file(s): /scratch/kocevski/122058/ft2_4FGL_J1152.3-0839_daily_bin1040.fits
Exposure map: /scratch/kocevski/122058/expmap_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits
Exposure cube: /scratch/kocevski/122058/ltcube_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/122058/Model_4FGL_J1152.3-0839_daily_bin1040.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) = 9206.85493794

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.8999       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .19993E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .89150       1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7222       1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .35050       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.9858       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.3139       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .22235E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4752       1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.855       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.991       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.4550       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.2366       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .18334E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.5494       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    5.8735       1.0000         .10000E-03   10000.    
    26 'Prefactor '    52.466       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1094       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .99241       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9206.759     FROM MIGRAD    STATUS=CONVERGED    730 CALLS     3647 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.8969        10.433        .14244E-05    .55519E-03
   2  Prefactor     .10001E-03    5.5724       -.93276E-06** at limit **
   3  Prefactor     .89150        3.0945        .11972E-05   -.16955E-04
   4  Prefactor     8.7069        26.256        .14987E-05    .48450E-04
   5  norm          .10000E-03    1.7416       -.11545E-07** at limit **
   6  norm          .35063        .95844        .61040E-06   -.74111E-04
   7  Prefactor     1.9848        3.6331        .38453E-06    .12226E-03
   8  Prefactor     .10000E-03    5.5246        .30045E-07** at limit **
   9  norm          .10000E-03    13.171       -.36108E-06** at limit **
  10  Prefactor     1.3140        1.5104        .90539E-07   -.13650E-04
  11  Prefactor     .10042E-03    13.240       -.88383E-06** at limit **
  12  Prefactor     .10000E-03    16.644       -.11595E-05** at limit **
  13  norm          6.4748        5.0165        .23039E-07    .14854E-04
  14  Prefactor     10.855        4.4945        .14217E-06    .21603E-04
  15  Prefactor     11.992        14.037        .99720E-08   -.24657E-04
  16  Prefactor     .10000E-03    8.5840        .42203E-07** at limit **
  17  Prefactor     .10000E-03    54.922       -.38117E-06** at limit **
  18  Prefactor     3.4550        5.3348        .51293E-06   -.85301E-05
  19  Prefactor     7.2387        13.469       -.47863E-07   -.82795E-04
  20  Prefactor     .10000E-03    16.793        .52369E-06** at limit **
  21  Prefactor     .10000E-03    14.227        .62521E-06** at limit **
  22  Prefactor     .10050E-03    8.2247        .11941E-05** at limit **
  23  norm          4.5492        2.5693        .39492E-07   -.95965E-03
  24  Prefactor     .10000E-03    2.0715        .16489E-07** at limit **
  25  Prefactor     5.8736        1.8684        .15162E-07    .11911E-05
  26  Prefactor     52.467        15.367        .27507E-07   -.50892E-04
  27  Normalizat    1.1092        .18977       -.12568E-05   -.41059E-05
  28  Prefactor     .99249        .11911       -.80062E-07   -.74995E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.89694
  Prefactor  = 0.000100012
  Prefactor  = 0.891502
  Prefactor  = 8.7069
  norm       = 0.0001
  norm       = 0.350632
  Prefactor  = 1.98482
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.314
  Prefactor  = 0.000100424
  Prefactor  = 0.0001
  norm       = 6.47481
  Prefactor  = 10.8551
  Prefactor  = 11.9918
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.45496
  Prefactor  = 7.23874
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100504
  norm       = 4.54922
  Prefactor  = 0.0001
  Prefactor  = 5.87355
  Prefactor  = 52.4669
  Normalizat = 1.10924
  Prefactor  = 0.992489
 **********
 **   18 **HESSE 
 **********

 FCN=   9206.759     FROM HESSE     STATUS=OK           553 CALLS     4200 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.8969        12.255        .14266E-03   -1.5146    
   2  Prefactor     .10001E-03    8.2025        .68722E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .89150        3.1498        .30587E-03   -1.5519    
   4  Prefactor     8.7069        26.190        .13572E-03   -1.5118    
   5  norm          .10000E-03    1.7434        .12364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .35063        .96487        .15397E-03   -1.5590    
   7  Prefactor     1.9848        3.5876        .22209E-03   -1.5426    
   8  Prefactor     .10000E-03    5.7361        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    13.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.3140        1.4917        .12240E-03   -1.5479    
  11  Prefactor     .10042E-03    15.555        .97967E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4748        5.0092        .15772E-03   -1.5199    
  14  Prefactor     10.855        4.4833        .11487E-03   -1.5049    
  15  Prefactor     11.992        14.038        .11568E-03   -1.5015    
  16  Prefactor     .10000E-03    8.6033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    55.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.4550        5.3143        .21758E-03   -1.5336    
  19  Prefactor     7.2387        13.593        .14911E-03   -1.5170    
  20  Prefactor     .10000E-03    16.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10050E-03    10.130        .74670E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.5492        2.6010        .10265E-03   -1.5281    
  24  Prefactor     .10000E-03    2.1080        .13476E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     5.8736        1.8684        .71797E-04   -1.5223    
  26  Prefactor     52.467        15.377        .55371E-04   -1.4258    
  27  Normalizat    1.1092        .22336        .30138E-03   -.89456    
  28  Prefactor     .99249        .14122        .21545E-03   -.92980    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05365e-09
Minuit parameter uncertainties:
  1  12.2584
  2  0.000638903
  3  3.15037
  4  26.2241
  5  2.33601e-06
  6  0.964917
  7  3.58799
  8  6.65991e-06
  9  2.49145e-05
  10  1.49172
  11  0.0051355
  12  6.76937e-05
  13  5.00952
  14  4.48344
  15  14.0414
  16  5.11689e-06
  17  4.64184e-06
  18  5.31505
  19  13.599
  20  4.59572e-05
  21  4.24198e-05
  22  0.00452151
  23  2.60105
  24  2.70772e-06
  25  1.86846
  26  15.3781
  27  0.223551
  28  0.141277
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.086e+01  4.483e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  9.925e-01  1.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.109e+00  2.236e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.42
Ra Dec: 178.081 -8.666
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.31e-07 +/- 5.39e-08
Energy Flux (Fixed Index): 4.21e-05 +/- 1.74e-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) = 9205.52466225
delta logL = 1.23476662621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9205.52028176
delta logL = 1.23914711672

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5111       1.0000         .10000E-03   10000.    
     2 'Index     '    3.1864       1.0000          .0000       10.000    
     3 'Normalizat'    1.0278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0346       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9205.520     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      251 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5096        18.254        .47389E-02    .42794E-03
   2  Index         3.1868        2.2016        .91932E-01    .23282E-03
   3  Normalizat    1.0277        .81516E-01    .70347E-01    .42490E-04
   4  Prefactor     1.0346        .51321E-01    .40913E-01    .73508E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50964
  Index      = 3.18679
  Normalizat = 1.02774
  Prefactor  = 1.03459
 **********
 **   18 **HESSE 
 **********

 FCN=   9205.520     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5096        6.5531        .65478E-04   -1.5283    
   2  Index         3.1868        .90143        .37564E-02   -.37110    
   3  Normalizat    1.0277        .21656        .31125E-03   -.92107    
   4  Prefactor     1.0346        .14528        .21158E-03   -.91585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.91214e-11
Minuit parameter uncertainties:
  1  6.55417
  2  0.907152
  3  0.216744
  4  0.145336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/122058': 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) = 9205.5202814
delta logL = 1.23914746998

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  4.510e+00  6.554e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  3.187e+00  9.072e-01  0.000e+00  1.000e+01 (-1.000e+00)
287        Scale:  8.403e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
607    Prefactor:  1.035e+00  1.453e-01  0.000e+00  1.000e+01 ( 1.000e+00)
608        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
609        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
606   Normalization:  1.028e+00  2.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.35
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 3.19 +/- 0.91
Photon Flux (Free Index): 1.82e-07 +/- 6.58e-08
Energy Flux (Free Index): 3.36e-05 +/- 1.42e-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/122058/cmap_HighResolution_508896001_509155201_4FGL_J1152.3-0839_daily_bin1040.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.31e-07', energy_flux2='3.36e-05', photon_flux_error='5.39e-08', dlogl='1.24e+00', energy_flux='4.21e-05', photon_flux2='1.82e-07', job_status='DONE', time_completed='2021-09-04 14:02:31.742018', photon_index_error2='0.91', photon_index2='3.19', ts='10.42', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', energy_flux_error2='1.42e-05', EG='1.11', time_epoch_completed='1630789351.74', return_code='0', job_id='122058', GAL2='1.03', EG2='1.03', return_code2='0', energy_flux_error='1.74e-05', photon_flux_error2='6.58e-08', ts2='13.35', photon_index='2.41' WHERE bin_id='1040' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:02:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0243>
Subject: Job 122058: <4FGL_J1152.3-0839_daily_bin1040> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1040> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 13:46:13 2021
Job was executed on host(s) <bullet0243>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:46:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 13:46:14 2021
Terminated at Sat Sep  4 14:02:32 2021
Results reported at Sat Sep  4 14:02:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1040 178.081 -8.6663 508896001 509155201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1152.3-0839 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   962.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   978 sec.
    Turnaround time :                            979 sec.

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

