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


Performing analysis on: 4FGL_J1152.3-0839_daily_bin188
RA = 178.081, Dec = -8.6663
tmin = 288057601, tmax = 288316801
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='117274', job_status='RUN', time_executed='2021-09-04 13:32:05.092502', time_epoch_executed='1630787525.09' WHERE source_name='4FGL J1152.3-0839' and cadence='daily' and bin_id='188'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/117274

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/117274/ft1_4FGL_J1152.3-0839_daily_bin188.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/117274/ft1_4FGL_J1152.3-0839_daily_bin188.fits outfile=/scratch/kocevski/117274/ft1_filteredMKT_4FGL_J1152.3-0839_daily_bin188.fits ra=178.081 dec=-8.6663 rad=12.0 tmin=288057601.0 tmax=288316801.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.59
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits" evtable="EVENTS" scfile=/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits sctable="SC_DATA" outfile=/scratch/kocevski/117274/ltcube_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.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/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits
.....................!
real 11.78
user 11.43
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits sctable="SC_DATA" expcube=/scratch/kocevski/117274/ltcube_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.fits outfile=/scratch/kocevski/117274/expmap_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.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/117274/ltcube_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.fits
.....................!
real 190.23
user 184.99
sys 4.81

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/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits scfile=/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits outfile=/scratch/kocevski/117274/cmap_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.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.56
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits scfile=/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits outfile=/scratch/kocevski/117274/cmap_HighResolution_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.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.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits evtable="EVENTS" scfile=/scratch/kocevski/117274/ft2_4FGL_J1152.3-0839_daily_bin188.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/117274/Model_4FGL_J1152.3-0839_daily_bin188.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/117274/ft1_filtered_4FGL_J1152.3-0839_daily_bin188.fits.....................!
real 69.48
user 67.71
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.2197       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.483       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.0931       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16803E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.9302       1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.6237       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.8667       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.4830       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1792       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10213E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.765       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10022E-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 'Prefactor '    2.0963       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.9622       1.0000         .10000E-03   10000.    
    26 'Prefactor '    35.770       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0811       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=   8275.724     FROM MIGRAD    STATUS=CONVERGED    683 CALLS     2975 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.2142        15.291        .43986E-02   -.17311E-03
   2  Prefactor     19.483        12.200        .22685E-02    .53222E-03
   3  Prefactor     2.0941        4.3641        .71330E-02    .15110E-02
   4  Prefactor     .10001E-03    108.21        .90712E-02** at limit **
   5  norm          .10000E-03    2.5070        .90712E-02** at limit **
   6  norm          1.9300        1.5903        .74742E-02    .64490E-03
   7  Prefactor     2.6233        4.4822        .62945E-02    .16420E-02
   8  Prefactor     .10002E-03    13.723        .90712E-02** at limit **
   9  norm          6.8685        16.031        .38277E-02    .29099E-03
  10  Prefactor     1.4831        1.5260        .88086E-02    .58562E-04
  11  Prefactor     .10002E-03    16.574        .90712E-02** at limit **
  12  Prefactor     .10001E-03    19.727        .90712E-02** at limit **
  13  norm          6.1796        5.0520        .40375E-02    .16640E-02
  14  Prefactor     .10000E-03    2.1938        .90712E-02** at limit **
  15  Prefactor     .10000E-03    4.4760        .90712E-02** at limit **
  16  Prefactor     .10000E-03    32.365        .90712E-02** at limit **
  17  Prefactor     .10000E-03    13.529        .90712E-02** at limit **
  18  Prefactor     .10000E-03    3.7440        .90712E-02** at limit **
  19  Prefactor     17.766        12.254        .23756E-02   -.11047E-03
  20  Prefactor     .10000E-03    15.932        .90712E-02** at limit **
  21  Prefactor     .10000E-03    4.2475        .90712E-02** at limit **
  22  Prefactor     .10000E-03    4.4236        .90712E-02** at limit **
  23  norm          .10000E-03    .63004        .90712E-02** at limit **
  24  Prefactor     2.0966        3.8454        .71267E-02    .36703E-02
  25  Prefactor     2.9622        1.6484        .58984E-02   -.23377E-03
  26  Prefactor     35.771        14.718        .16752E-02    .17072E-03
  27  Normalizat    1.0090        .19682        .70332E-01   -.54398E-05
  28  Prefactor     1.0811        .12808        .38352E-01   -.46688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.21416
  Prefactor  = 19.4831
  Prefactor  = 2.09405
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 1.93003
  Prefactor  = 2.6233
  Prefactor  = 0.000100016
  norm       = 6.86849
  Prefactor  = 1.4831
  Prefactor  = 0.000100015
  Prefactor  = 0.000100012
  norm       = 6.17961
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 17.7663
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.0966
  Prefactor  = 2.96218
  Prefactor  = 35.7706
  Normalizat = 1.00899
  Prefactor  = 1.08115
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.724     FROM HESSE     STATUS=OK           517 CALLS     3492 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.2142        15.224        .17594E-03   -1.5251    
   2  Prefactor     19.483        12.112        .90740E-04   -1.4825    
   3  Prefactor     2.0941        4.3192        .25381E-03   -1.5419    
   4  Prefactor     .10001E-03    110.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.5096        .14060E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.9300        1.5787        .99936E-04   -1.5430    
   7  Prefactor     2.6233        4.4300        .21651E-03   -1.5384    
   8  Prefactor     .10002E-03    14.227        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.8685        15.935        .15311E-03   -1.5184    
  10  Prefactor     1.4831        1.5272        .11058E-03   -1.5464    
  11  Prefactor     .10002E-03    16.629        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    19.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1796        5.0417        .16150E-03   -1.5211    
  14  Prefactor     .10000E-03    2.2688        .26240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.372        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.541        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.7718        .17189E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.766        12.290        .95025E-04   -1.4865    
  20  Prefactor     .10000E-03    15.947        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    4.2493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    4.4422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .63376        .70506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     2.0966        3.8139        .22580E-03   -1.5418    
  25  Prefactor     2.9622        1.6450        .82406E-04   -1.5364    
  26  Prefactor     35.771        14.713        .67008E-04   -1.4511    
  27  Normalizat    1.0090        .22987        .31114E-03   -.92730    
  28  Prefactor     1.0811        .14993        .20678E-03   -.90071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1501e-08
Minuit parameter uncertainties:
  1  15.2351
  2  12.1137
  3  4.31981
  4  0.00154746
  5  6.21911e-06
  6  1.57874
  7  4.4305
  8  0.000950415
  9  15.9449
  10  1.52727
  11  0.00100116
  12  0.000962467
  13  5.04207
  14  1.47326e-06
  15  0.000134626
  16  0.000374165
  17  0.000387289
  18  5.13343e-06
  19  12.292
  20  0.000287625
  21  1.79075e-05
  22  0.000108352
  23  3.15956e-07
  24  3.81438
  25  1.64499
  26  14.714
  27  0.230097
  28  0.149993
Done.

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

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  1.473e-06  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.081e+00  1.500e-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.009e+00  2.301e-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: 7.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.61e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/117274/likelihoodResults_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.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) = 8275.72611769
delta logL = -0.00210337168392

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8275.72401437
delta logL = -4.82596078655e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3898       1.0000          .0000       10.000    
     3 'Normalizat'    1.0089       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0812       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=   8275.724     FROM MIGRAD    STATUS=FAILED        95 CALLS      241 TOTAL
                     EDM=   .51E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    520.26        .26800E-02** at limit **
   2  Index         1.9098        7.6560        .50000        .27090E-05
   3  Normalizat    1.0090        .84107E-01    .31114E-03    .68473E-04
   4  Prefactor     1.0812        .58107E-01    .20678E-03    .24543E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8275.724     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      396 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10111E-03    520.26        .26572E-03** at limit **
   2  Index         1.9098        7.6560        .27413E-04    .27090E-05
   3  Normalizat    1.0090        .84107E-01    .27117E-05    .68473E-04
   4  Prefactor     1.0812        .58107E-01    .17632E-05    .24543E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8275.724     FROM MIGRAD    STATUS=CONVERGED     41 CALLS      437 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.1347        .53600E-03** at limit **
   2  Index         1.8967        5.9943        .50000       -.53815E-06
   3  Normalizat    1.0090        .21325        .12446E-04   -.21740E-03
   4  Prefactor     1.0811        .14711        .41356E-04   -.32405E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.89667
  Normalizat = 1.00899
  Prefactor  = 1.08115
 **********
 **   18 **HESSE 
 **********

 FCN=   8275.724     FROM HESSE     STATUS=OK            29 CALLS      466 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.1209        .10720E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8967        6.0961        .50000       -.66959    
   3  Normalizat    1.0090        .21307        .24892E-05   -.92730    
   4  Prefactor     1.0811        .14702        .82713E-05   -.90071    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59392e-10
Minuit parameter uncertainties:
  1  7.41098e-06
  2  71.9907
  3  0.213255
  4  0.147077
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/117274': 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) = 8275.7240083
delta logL = 6.01416286372e-06

Extracting fit parameters...

4FGL J1152.3-0839
   Spectrum: PowerLaw
285    Prefactor:  1.000e-04  7.411e-06  1.000e-04  1.000e+04 ( 1.000e-12)
286        Index:  1.897e+00  7.199e+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.081e+00  1.471e-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.009e+00  2.133e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/117274/cmap_HighResolution_288057601_288316801_4FGL_J1152.3-0839_daily_bin188.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.61e-03', job_status='DONE', photon_flux_upper_limit='7.25e-08', time_completed='2021-09-04 13:47:45.366339', job_id='117274', GAL2='1.08', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630788465.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='6.01e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='188' AND source_name='4FGL J1152.3-0839' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 13:47:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 117274: <4FGL_J1152.3-0839_daily_bin188> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1152.3-0839_daily_bin188 178.081 -8.6663 288057601 288316801 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 :                                   939.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             329.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

