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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin1365
RA = 178.081, Dec = -8.6663
tmin = 593136001, tmax = 593395201
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='124219', job_status='RUN', time_executed='2021-09-04 13:51:57.543266', time_epoch_executed='1630788717.54' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='1365'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/124219

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/124219/ft1_4FGL_J1152.3-0839_daily_bin1365.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/124219/ft1_4FGL_J1152.3-0839_daily_bin1365.fits outfile=/scratch/kocevski/124219/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1365.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=593136001.0 tmax=593395201.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.18
user 4.91
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.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/124219/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin1365.fits evtable="EVENTS" outfile="/scratch/kocevski/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits" evtable="EVENTS" scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits sctable="SC_DATA" outfile=/scratch/kocevski/124219/ltcube_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.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/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits
.....................!
real 11.89
user 11.51
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits sctable="SC_DATA" expcube=/scratch/kocevski/124219/ltcube_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.fits outfile=/scratch/kocevski/124219/expmap_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.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/124219/ltcube_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.fits
.....................!
real 191.46
user 186.06
sys 4.91

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/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits outfile=/scratch/kocevski/124219/cmap_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.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.59
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits outfile=/scratch/kocevski/124219/cmap_HighResolution_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits evtable="EVENTS" scfile=/scratch/kocevski/124219/ft2_4FGL_J1152.3-0839_daily_bin1365.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/124219/Model_4FGL_J1152.3-0839_daily_bin1365.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/124219/ft1_filtered_4FGL_J1152.3-0839_daily_bin1365.fits.....................!
real 49.44
user 47.97
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.165       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9208       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.564       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.0990       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.0169       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .19401E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.7709       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    3.5413       1.0000         .10000E-03   10000.    
    26 'Prefactor '    34.877       1.0000         .10000E-03   10000.    
    27 'Normalizat'    .94177       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1335       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=   5074.047     FROM MIGRAD    STATUS=CONVERGED    682 CALLS     3447 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.173        20.943       -.23319E-05    .15070E-03
   2  Prefactor     .10000E-03    10.789       -.81803E-05** at limit **
   3  Prefactor     .10000E-03    6.1572       -.10460E-05** at limit **
   4  Prefactor     .10000E-03    30.567        .60111E-05** at limit **
   5  norm          .10000E-03    4.9841        .19357E-05** at limit **
   6  norm          1.9206        1.7039        .70598E-07    .86915E-04
   7  Prefactor     .10000E-03    3.5664        .51075E-07** at limit **
   8  Prefactor     12.563        11.724        .11343E-05   -.13491E-04
   9  norm          .10000E-03    21.716       -.81173E-05** at limit **
  10  Prefactor     3.0990        2.4414        .87018E-07   -.22694E-03
  11  Prefactor     .10000E-03    12.703       -.88688E-06** at limit **
  12  Prefactor     15.738        35.951       -.22996E-05    .85127E-05
  13  norm          .10000E-03    2.4112       -.83735E-07** at limit **
  14  Prefactor     .10000E-03    1.4795       -.53661E-07** at limit **
  15  Prefactor     .10000E-03    24.152       -.16821E-04** at limit **
  16  Prefactor     .10000E-03    9.3937        .64645E-05** at limit **
  17  Prefactor     .10000E-03    17.595        .15790E-04** at limit **
  18  Prefactor     .10000E-03    3.9822        .40404E-06** at limit **
  19  Prefactor     2.9750        30.040        .32521E-04   -.41742E-04
  20  Prefactor     .10001E-03    126.97       -.25832E-04** at limit **
  21  Prefactor     .10000E-03    30.654        .66747E-05** at limit **
  22  Prefactor     .10000E-03    4.5726       -.14856E-05** at limit **
  23  norm          1.7712        2.1379       -.14544E-06   -.31361E-03
  24  Prefactor     .10000E-03    2.5307        .29338E-07** at limit **
  25  Prefactor     3.5413        2.2410        .17951E-06    .10414E-02
  26  Prefactor     34.876        24.871       -.70839E-06   -.19262E-04
  27  Normalizat    .94186        .26224       -.49127E-05    .74084E-04
  28  Prefactor     1.1335        .16800        .63825E-06   -.41188E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.1729
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.9206
  Prefactor  = 0.0001
  Prefactor  = 12.5632
  norm       = 0.0001
  Prefactor  = 3.099
  Prefactor  = 0.0001
  Prefactor  = 15.7378
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.97498
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.7712
  Prefactor  = 0.0001
  Prefactor  = 3.54127
  Prefactor  = 34.8764
  Normalizat = 0.941856
  Prefactor  = 1.13352
 **********
 **   18 **HESSE 
 **********

 FCN=   5074.047     FROM HESSE     STATUS=OK           509 CALLS     3956 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.173        20.942        .71773E-04   -1.4591    
   2  Prefactor     .10000E-03    10.793        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.3303        .34463E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    5.0071        .15536E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9206        1.7128        .84793E-04   -1.5431    
   7  Prefactor     .10000E-03    3.6761        .26252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     12.563        11.721        .11301E-03   -1.4999    
   9  norm          .10000E-03    21.801        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     3.0990        2.4381        .95253E-04   -1.5356    
  11  Prefactor     .10000E-03    12.748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     15.738        35.951        .10096E-03   -1.4914    
  13  norm          .10000E-03    2.4170        .10801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.4860        .84585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    9.3989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    17.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.9892        .13881E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.9750        29.698        .23366E-03   -1.5363    
  20  Prefactor     .10001E-03    130.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    30.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.5787        .14876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.7712        2.1242        .11110E-03   -1.5442    
  24  Prefactor     .10000E-03    2.5348        .11064E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     3.5413        2.2442        .41283E-03   -1.5332    
  26  Prefactor     34.876        24.898        .67857E-04   -1.4526    
  27  Normalizat    .94186        .30327        .33359E-03   -.95005    
  28  Prefactor     1.1335        .19538        .20685E-03   -.88402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5179e-10
Minuit parameter uncertainties:
  1  20.9473
  2  0.000123964
  3  7.42643e-05
  4  4.57811e-05
  5  2.85968e-05
  6  1.71283
  7  2.88638e-05
  8  11.7236
  9  4.26082e-05
  10  2.4382
  11  1.18971e-05
  12  36.0005
  13  1.07968e-05
  14  1.00503e-05
  15  5.39563e-05
  16  6.59069e-06
  17  8.88861e-05
  18  4.67912e-07
  19  18.8109
  20  0.00211748
  21  0.000209635
  22  4.73297e-06
  23  2.12434
  24  3.13726e-06
  25  2.24427
  26  24.9053
  27  0.303822
  28  0.195506
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.005e-05  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:  1.134e+00  1.955e-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:  9.419e-01  3.038e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.081 -8.666
Photon Flux Upper Limit: 8.62e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.66e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/124219/likelihoodResults_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.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) = 5074.04994985
delta logL = -0.00316138686048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5074.04678846
delta logL = -7.07586877979e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4056       1.0000          .0000       10.000    
     3 'Normalizat'    .94184       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1336       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5074.047     FROM MIGRAD    STATUS=FAILED        88 CALLS      239 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    62.739        .84752E-03** at limit **
   2  Index         2.3557        5.9636        .50000        .32208E-04
   3  Normalizat    .94185        .42032E-01    .33359E-03   -.55890E-05
   4  Prefactor     1.1335        .28490E-01    .20685E-03   -.11432E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5074.047     FROM SIMPLEX   STATUS=UNCHANGED    138 CALLS      377 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10050E-03    62.739        .19914E-03** at limit **
   2  Index         2.3557        5.9636        .40769E-03    .32208E-04
   3  Normalizat    .94185        .42032E-01    .91420E-05   -.55890E-05
   4  Prefactor     1.1335        .28490E-01    .48383E-05   -.11432E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5074.047     FROM MIGRAD    STATUS=CONVERGED     39 CALLS      416 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    318.17        .16950E-03** at limit **
   2  Index         2.1451        8.0584        .50000       -.29356E-06
   3  Normalizat    .94185        .14978        .13344E-04    .95934E-04
   4  Prefactor     1.1335        .10143        .82739E-05    .16241E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14509
  Normalizat = 0.941854
  Prefactor  = 1.13352
 **********
 **   18 **HESSE 
 **********

 FCN=   5074.047     FROM HESSE     STATUS=OK            29 CALLS      445 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1.6732        .33901E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1451        5.9095        .50000       -.60770    
   3  Normalizat    .94185        .28569        .26688E-05   -.95005    
   4  Prefactor     1.1335        .19383        .16548E-05   -.88402    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31929e-10
Minuit parameter uncertainties:
  1  3.1891e-05
  2  82.8179
  3  0.286157
  4  0.193952
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/124219': 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) = 5074.04678719
delta logL = 1.27293151309e-06

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  3.189e-05  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  2.145e+00  8.282e+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.134e+00  1.940e-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:  9.419e-01  2.862e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.081 -8.666

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/124219/cmap_HighResolution_593136001_593395201_4FGL_J1152.3-0839_daily_bin1365.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.66e-03', job_status='DONE', photon_flux_upper_limit='8.62e-08', time_completed='2021-09-04 14:04:24.877705', job_id='124219', GAL2='1.13', fit_tolerance='1e-08', EG2='0.94', EG='0.94', time_epoch_completed='1630789464.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='1.27e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='1365' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:04:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0078>
Subject: Job 124219: <4FGL_J1152.3-0839_daily_bin1365> in cluster <slac> Done

Job <4FGL_J1152.3-0839_daily_bin1365> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 13:51:41 2021
Job was executed on host(s) <bullet0078>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 13:51:43 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:51:43 2021
Terminated at Sat Sep  4 14:04:25 2021
Results reported at Sat Sep  4 14:04:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin1365 178.081 -8.6663 593136001 593395201 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 :                                   741.14 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   762 sec.
    Turnaround time :                            764 sec.

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

