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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin225
RA = 178.081, Dec = -8.6663
tmin = 297648001, tmax = 297907201
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='117332', job_status='RUN', time_executed='2021-09-04 13:32:06.946707', time_epoch_executed='1630787526.95' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117332

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117332/ft1_4FGL_J1152.3-0839_daily_bin225.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117332/ft1_4FGL_J1152.3-0839_daily_bin225.fits outfile=/scratch/kocevski/117332/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin225.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=297648001.0 tmax=297907201.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.70
user 3.45
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits" evtable="EVENTS" scfile=/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits sctable="SC_DATA" outfile=/scratch/kocevski/117332/ltcube_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.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/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits
.....................!
real 11.85
user 11.36
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits sctable="SC_DATA" expcube=/scratch/kocevski/117332/ltcube_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits outfile=/scratch/kocevski/117332/expmap_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.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/117332/ltcube_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits
.....................!
real 189.89
user 185.18
sys 4.30

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/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits scfile=/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits outfile=/scratch/kocevski/117332/cmap_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.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.62
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits scfile=/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits outfile=/scratch/kocevski/117332/cmap_HighResolution_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.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.56
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits evtable="EVENTS" scfile=/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117332/Model_4FGL_J1152.3-0839_daily_bin225.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/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits.....................!
real 77.54
user 75.60
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits', '/scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits', expMap='/scratch/kocevski/117332/expmap_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits', expCube='/scratch/kocevski/117332/ltcube_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/117332/Model_4FGL_J1152.3-0839_daily_bin225.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/117332/ft1_filtered_4FGL_J1152.3-0839_daily_bin225.fits
Spacecraft file(s): /scratch/kocevski/117332/ft2_4FGL_J1152.3-0839_daily_bin225.fits
Exposure map: /scratch/kocevski/117332/expmap_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits
Exposure cube: /scratch/kocevski/117332/ltcube_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/117332/Model_4FGL_J1152.3-0839_daily_bin225.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) = 9101.21185644

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9456       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.5784       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .89741       1.0000         .10000E-03   10000.    
     8 'Prefactor '    11.908       1.0000         .10000E-03   10000.    
     9 'norm      '    .60056E-01   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2168       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    47.704       1.0000         .10000E-03   10000.    
    13 'norm      '    4.4484       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.5456       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.8711       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.5233       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-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      '    3.0024       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.7149       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.7802       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2801       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81974       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6100E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9101.111     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     2442 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.9548        .15604E-06** at limit **
   2  Prefactor     .10000E-03    2.6368       -.11670E-06** at limit **
   3  Prefactor     8.9420        1.9170       -.65796E-07    .37172E-02
   4  Prefactor     .10000E-03    4.8588       -.84173E-06** at limit **
   5  norm          .10000E-03    7.7554        .15768E-05** at limit **
   6  norm          2.5784        1.3915       -.13310E-06   -.10471E-03
   7  Prefactor     .91283        3.5450       -.21810E-06   -.23831E-03
   8  Prefactor     11.908        1.0096       -.30812E-08   -.65320E-04
   9  norm          .10000E-03    201.83       -.12080E-04** at limit **
  10  Prefactor     1.2168        1.1081        .48351E-07    .34314E-04
  11  Prefactor     .10000E-03    16.458        .20708E-06** at limit **
  12  Prefactor     47.701        1.0114       -.98016E-08    .29136E-03
  13  norm          4.4484        1.4729       -.53197E-07   -.11841E-02
  14  Prefactor     2.5446        2.6787       -.14421E-06    .42369E-03
  15  Prefactor     2.8700        1.0952        .29068E-07   -.43109E-03
  16  Prefactor     7.5232        1.0025        .23881E-09   -.44281E-05
  17  Prefactor     .10001E-03    7.0649       -.12638E-05** at limit **
  18  Prefactor     .10000E-03    1.7780       -.86443E-07** at limit **
  19  Prefactor     .10000E-03    2.0150        .12767E-06** at limit **
  20  Prefactor     .10000E-03    8.0056        .95270E-06** at limit **
  21  Prefactor     .10000E-03    3.4434        .12033E-05** at limit **
  22  Prefactor     .10000E-03    1.9384       -.15910E-06** at limit **
  23  norm          3.0023        1.7353       -.17147E-07    .20437E-05
  24  Prefactor     5.7148        1.0462        .16259E-07   -.38448E-03
  25  Prefactor     4.7801        1.8286        .29693E-07    .79966E-04
  26  Prefactor     .10000E-03    1.9679        .16442E-06** at limit **
  27  Normalizat    1.2800        .21016        .19789E-06    .92258E-05
  28  Prefactor     .81982        .13763        .91636E-07    .13583E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.94199
  Prefactor  = 0.000100005
  norm       = 0.000100001
  norm       = 2.57837
  Prefactor  = 0.912829
  Prefactor  = 11.9077
  norm       = 0.000100002
  Prefactor  = 1.21676
  Prefactor  = 0.0001
  Prefactor  = 47.7015
  norm       = 4.44845
  Prefactor  = 2.54459
  Prefactor  = 2.86997
  Prefactor  = 7.52324
  Prefactor  = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.00233
  Prefactor  = 5.7148
  Prefactor  = 4.7801
  Prefactor  = 0.000100001
  Normalizat = 1.28002
  Prefactor  = 0.819823
 **********
 **   18 **HESSE 
 **********

 FCN=   9101.111     FROM HESSE     STATUS=OK           585 CALLS     3027 TOTAL
                     EDM=   .66E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4306        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6339        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.9420        4.8298        .33502E-02   -1.5110    
   4  Prefactor     .10000E-03    10.844        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.9819        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.5784        1.3998        .63542E-02   -1.5387    
   7  Prefactor     .91283        3.1787        .47369E-01   -1.5517    
   8  Prefactor     11.908        7.5092        .29021E-02   -1.5018    
   9  norm          .10000E-03    8.9892        .14507       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2168        1.1078        .10234E-02   -1.5487    
  11  Prefactor     .10000E-03    16.410        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     47.701        31.220        .14514E-02   -1.4326    
  13  norm          4.4484        3.8132        .47730E-02   -1.5286    
  14  Prefactor     2.5446        3.2009        .63985E-02   -1.5389    
  15  Prefactor     2.8700        13.863        .59972E-02   -1.5369    
  16  Prefactor     7.5232        16.838        .36553E-02   -1.5159    
  17  Prefactor     .10001E-03    11.322        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.4692        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.4088        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.1046        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    3.4533        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.4975        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.0023        1.7368        .58563E-02   -1.5361    
  24  Prefactor     5.7148        5.0766        .42005E-02   -1.5230    
  25  Prefactor     4.7801        1.9343        .46005E-02   -1.5271    
  26  Prefactor     .10000E-03    5.4201        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2800        .18246        .61898E-01   -.84165    
  28  Prefactor     .81982        .11650        .43974E-01   -.99002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.57026e-08
Minuit parameter uncertainties:
  1  5.65446e-05
  2  1.72909e-06
  3  4.83
  4  0.00045753
  5  0.000205795
  6  1.39981
  7  3.1793
  8  7.50983
  9  0.000295421
  10  1.10777
  11  0.00010723
  12  31.2303
  13  3.81343
  14  3.20116
  15  12.6198
  16  16.849
  17  0.000561742
  18  2.55491e-05
  19  0.000161919
  20  0.00020359
  21  1.93022e-05
  22  1.20323e-05
  23  1.73678
  24  5.07699
  25  1.93437
  26  0.000120209
  27  0.182554
  28  0.116532
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  2.545e+00  3.201e+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:  8.198e-01  1.165e-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.280e+00  1.826e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.88
Ra Dec: 178.081 -8.666
Photon Flux Upper Limit: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.16e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117332/likelihoodResults_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.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) = 9099.69528237
delta logL = 1.41612250173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9099.67915502
delta logL = 1.43224985439

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .39426       1.0000         .10000E-03   10000.    
     2 'Index     '    4.1797       1.0000          .0000       10.000    
     3 'Normalizat'    1.1944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85792       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=   9099.679     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      234 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .39449        2.6979        .75356E-02    .18895E-02
   2  Index         4.1796        2.1957        .13245        .20494E-03
   3  Normalizat    1.1944        .43522E-01    .63705E-01    .15269E-04
   4  Prefactor     .85792        .29292E-01    .44466E-01    .15119E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.394487
  Index      = 4.17961
  Normalizat = 1.19438
  Prefactor  = 0.857922
 **********
 **   18 **HESSE 
 **********

 FCN=   9099.679     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      269 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .39449        6.5505        .34244E-03   -1.5582    
   2  Index         4.1796        3.8773        .48079E-02   -.16482    
   3  Normalizat    1.1944        .16784        .28180E-03   -.86777    
   4  Prefactor     .85792        .11254        .21951E-03   -.97627    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.26147e-07
Minuit parameter uncertainties:
  1  3.21503
  2  4.46122
  3  0.167918
  4  0.112574
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117332': 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): 102
logL (Free Index) = 9099.6791548
delta logL = 1.43225007609

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  3.945e-01  3.215e+00  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  4.180e+00  4.461e+00  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:  8.579e-01  1.126e-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.194e+00  1.679e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.95
Ra Dec: 178.081 -8.666
Photon Index (Free Index): 4.18 +/- 4.46
Photon Flux (Free Index): 9.10e-08 +/- 5.19e-08
Energy Flux (Free Index): 1.33e-05 +/- 1.18e-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/117332/cmap_HighResolution_297648001_297907201_4FGL_J1152.3-0839_daily_bin225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.16e-03', comment='SUCCESS', energy_flux2='1.33e-05', dlogl='1.43e+00', photon_flux2='9.10e-08', job_status='DONE', time_completed='2021-09-04 13:47:58.379891', photon_index_error2='4.46', photon_index2='4.18', ts='0.88', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.18e-05', EG='1.28', time_epoch_completed='1630788478.38', return_code='0', job_id='117332', GAL2='0.86', EG2='1.19', return_code2='102', photon_flux_error2='5.19e-08', ts2='3.95', photon_index='2.41' WHERE bin_id='225' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:47:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0236>
Subject: Job 117332: <4FGL_J1152.3-0839_daily_bin225> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin225> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:31:50 2021
Job was executed on host(s) <bullet0236>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:31:52 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:31:52 2021
Terminated at Sat Sep  4 13:47:59 2021
Results reported at Sat Sep  4 13:47:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin225 178.081 -8.6663 297648001 297907201 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 :                                   948.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             309.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   966 sec.
    Turnaround time :                            969 sec.

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

