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


Performing analysis on: 4FGL_J1153.3-1104_daily_bin324
RA = 178.348, Dec = -11.075
tmin = 323308801, tmax = 323568001
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='138894', job_status='RUN', time_executed='2021-09-04 14:35:25.576185', time_epoch_executed='1630791325.58' WHERE source_name='4FGL J1153.3-1104' and cadence='daily' and bin_id='324'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/138894

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/138894/ft1_4FGL_J1153.3-1104_daily_bin324.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/138894/ft1_4FGL_J1153.3-1104_daily_bin324.fits outfile=/scratch/kocevski/138894/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin324.fits ra=178.348 dec=-11.075 rad=12.0 tmin=323308801.0 tmax=323568001.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.30
user 3.08
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.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/138894/ft1_filteredMKT_4FGL_J1153.3-1104_daily_bin324.fits evtable="EVENTS" outfile="/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.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.48
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits" evtable="EVENTS" scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits sctable="SC_DATA" outfile=/scratch/kocevski/138894/ltcube_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.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/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits
.....................!
real 12.11
user 11.74
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits sctable="SC_DATA" expcube=/scratch/kocevski/138894/ltcube_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits outfile=/scratch/kocevski/138894/expmap_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.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/138894/ltcube_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits
.....................!
real 190.39
user 185.54
sys 4.49

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

Setting source of interest to:
4FGL J1153.3-1104 @ 178.348 -11.075

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits outfile=/scratch/kocevski/138894/cmap_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.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.348 yref=-11.075 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits outfile=/scratch/kocevski/138894/cmap_HighResolution_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.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.348 yref=-11.075 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits evtable="EVENTS" scfile=/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/138894/Model_4FGL_J1153.3-1104_daily_bin324.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/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits.....................!
real 48.78
user 47.55
sys 1.12

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits', '/scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits', expMap='/scratch/kocevski/138894/expmap_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits', expCube='/scratch/kocevski/138894/ltcube_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/138894/Model_4FGL_J1153.3-1104_daily_bin324.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.3-1104'

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  3.746e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/138894/ft1_filtered_4FGL_J1153.3-1104_daily_bin324.fits
Spacecraft file(s): /scratch/kocevski/138894/ft2_4FGL_J1153.3-1104_daily_bin324.fits
Exposure map: /scratch/kocevski/138894/expmap_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits
Exposure cube: /scratch/kocevski/138894/ltcube_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/138894/Model_4FGL_J1153.3-1104_daily_bin324.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) = 5188.30356614

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42575E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11301E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6831       1.0000         .10000E-03   10000.    
     6 'norm      '    .93025       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.0374       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .64034E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.5784       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.2151       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    44.217       1.0000         .10000E-03   10000.    
    17 'norm      '    .12801E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10215E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-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 '    14.470       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .96087       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.052       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3918       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5188.242     FROM MIGRAD    STATUS=CONVERGED    687 CALLS     3526 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.087        .55668E-06** at limit **
   2  Prefactor     .10000E-03    6.3724        .98550E-07** at limit **
   3  Prefactor     .10000E-03    3.4256       -.60117E-06** at limit **
   4  Prefactor     .10000E-03    51.327        .77537E-05** at limit **
   5  norm          4.6811        8.3896       -.38021E-06    .84835E-04
   6  norm          .93071        1.6037        .88604E-07   -.71646E-04
   7  Prefactor     6.0389        4.7908        .92387E-06    .81138E-05
   8  Prefactor     .10000E-03    6.7965       -.63906E-07** at limit **
   9  norm          .10000E-03    12.723       -.18535E-05** at limit **
  10  Prefactor     .10000E-03    8.6201       -.12308E-05** at limit **
  11  Prefactor     .10000E-03    17.492        .29792E-05** at limit **
  12  norm          2.5783        6.0223        .41123E-08   -.26227E-04
  13  Prefactor     1.2151        2.7988        .32174E-07   -.61025E-04
  14  Prefactor     .10000E-03    9.3934        .18304E-05** at limit **
  15  Prefactor     .10000E-03    40.009        .94032E-06** at limit **
  16  Prefactor     44.162        27.375        .24088E-06   -.62714E-04
  17  norm          .10005E-03    5.3059       -.75251E-06** at limit **
  18  Prefactor     .10000E-03    20.534       -.17207E-05** at limit **
  19  Prefactor     .10000E-03    5.9864       -.57463E-07** at limit **
  20  Prefactor     .10000E-03    13.675       -.20760E-06** at limit **
  21  Prefactor     .10000E-03    10.593       -.14316E-06** at limit **
  22  Prefactor     .10000E-03    34.986       -.60608E-05** at limit **
  23  norm          .10000E-03    1.2499        .71163E-08** at limit **
  24  Prefactor     14.474        8.2978       -.18531E-06    .13995E-04
  25  Prefactor     .95936        2.1828        .30465E-06    .56264E-04
  26  Prefactor     14.054        13.789       -.30028E-06   -.10010E-04
  27  Normalizat    1.3917        .25181        .17196E-05    .11066E-03
  28  Prefactor     .84906        .15617        .32477E-06    .17104E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.68105
  norm       = 0.930709
  Prefactor  = 6.03888
  Prefactor  = 0.000100004
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.57834
  Prefactor  = 1.2151
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.1616
  norm       = 0.000100053
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 14.4744
  Prefactor  = 0.959365
  Prefactor  = 14.0541
  Normalizat = 1.39175
  Prefactor  = 0.849063
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.242     FROM HESSE     STATUS=OK           519 CALLS     4045 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.345        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.3936        .17752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.632        .24975E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    51.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6811        8.2105        .18596E-03   -1.5275    
   6  norm          .93071        1.5768        .11311E-03   -1.5515    
   7  Prefactor     6.0389        4.8166        .66729E-03   -1.5216    
   8  Prefactor     .10000E-03    19.765        .36230E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    12.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    17.488        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.5783        5.9599        .25392E-03   -1.5387    
  13  Prefactor     1.2151        2.7206        .17235E-03   -1.5488    
  14  Prefactor     .10000E-03    9.3921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    40.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     44.162        27.331        .60292E-04   -1.4378    
  17  norm          .10005E-03    69.101        .27546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.9991        .17212E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    13.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    10.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    1.2662        .78633E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     14.474        8.2333        .10529E-03   -1.4947    
  25  Prefactor     .95936        1.9849        .14390E-02   -1.5512    
  26  Prefactor     14.054        13.771        .10685E-03   -1.4958    
  27  Normalizat    1.3917        .29661        .28483E-03   -.80868    
  28  Prefactor     .84906        .18572        .22364E-03   -.97944    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09203e-09
Minuit parameter uncertainties:
  1  4.21797e-05
  2  6.60757e-06
  3  6.04801e-06
  4  0.00025591
  5  8.21245
  6  1.57684
  7  4.81689
  8  0.000568762
  9  6.97448e-05
  10  3.35033e-05
  11  5.40307e-05
  12  5.96124
  13  2.72092
  14  1.41877e-05
  15  4.71497e-05
  16  27.3389
  17  0.00384986
  18  5.67658e-05
  19  1.09375e-05
  20  1.00037e-05
  21  1.39335e-05
  22  0.000190431
  23  2.21407e-06
  24  8.23398
  25  1.98503
  26  13.774
  27  0.296978
  28  0.185853
Done.

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

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  1.000e-04  1.419e-05  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  2.336e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  8.491e-01  1.859e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.392e+00  2.970e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.348 -11.075
Photon Flux Upper Limit: 8.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.88e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/138894/likelihoodResults_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.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) = 5188.24226254
delta logL = -0.000507030650624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5188.24175556
delta logL = -4.90563252242e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11225E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2861       1.0000          .0000       10.000    
     3 'Normalizat'    1.3918       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .84904       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6310E+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=   5188.225     FROM MIGRAD    STATUS=FAILED       153 CALLS      306 TOTAL
                     EDM=   .41E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2213        1743.4        .18142E-01    .65238E-03
   2  Index         1.3181        7.8757        .50000       -.27943E-04
   3  Normalizat    1.3942        .71802E-01    .28483E-03   -.14648E-04
   4  Prefactor     .84619        .47097E-01    .22364E-03   -.21300E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5188.225     FROM SIMPLEX   STATUS=UNCHANGED     91 CALLS      397 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2213        1743.4        .48298E-03    .65238E-03
   2  Index         1.3181        7.8757        .24019E-02   -.27943E-04
   3  Normalizat    1.3942        .71802E-01    .53715E-04   -.14648E-04
   4  Prefactor     .84619        .47097E-01    .34300E-04   -.21300E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5188.225     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      428 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2213        18.740        .60616E-03    .38073E-05
   2  Index         1.3181        1.3614        .19283E-01   -.11433E-03
   3  Normalizat    1.3942        .29041        .11393E-04   -.14569E-04
   4  Prefactor     .84619        .18484        .89455E-05   -.21097E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.22134
  Index      = 1.31814
  Normalizat = 1.39415
  Prefactor  = 0.846195
 **********
 **   18 **HESSE 
 **********

 FCN=   5188.225     FROM HESSE     STATUS=OK            25 CALLS      453 TOTAL
                     EDM=   .68E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2213        19.294        .24247E-04   -1.5410    
   2  Index         1.3181        1.3817        .38565E-02   -.82769    
   3  Normalizat    1.3942        .28977        .22787E-05   -.80798    
   4  Prefactor     .84619        .18447        .17891E-05   -.98047    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83728e-13
Minuit parameter uncertainties:
  1  13.0985
  2  1.42334
  3  0.29011
  4  0.184608
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/138894': 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) = 5188.22493915
delta logL = 0.0168163607768

Extracting fit parameters...

4FGL J1153.3-1104
   Spectrum: PowerLaw
289    Prefactor:  2.221e+00  1.310e+01  1.000e-04  1.000e+04 ( 1.000e-13)
290        Index:  1.318e+00  1.423e+00  0.000e+00  1.000e+01 (-1.000e+00)
291        Scale:  1.208e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
628    Prefactor:  8.462e-01  1.846e-01  0.000e+00  1.000e+01 ( 1.000e+00)
629        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
630        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
627   Normalization:  1.394e+00  2.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.348 -11.075

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/138894/cmap_HighResolution_323308801_323568001_4FGL_J1153.3-1104_daily_bin324.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.88e-03', job_status='DONE', photon_flux_upper_limit='8.94e-08', time_completed='2021-09-04 14:48:02.352106', job_id='138894', GAL2='0.85', fit_tolerance='1e-08', EG2='1.39', EG='1.39', time_epoch_completed='1630792082.35', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='1.68e-02', ts2='0.03', photon_index_error='0.00', photon_index='2.34' WHERE bin_id='324' AND source_name='4FGL J1153.3-1104' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 14:48:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 138894: <4FGL_J1153.3-1104_daily_bin324> in cluster <slac> Done

Job <4FGL_J1153.3-1104_daily_bin324> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 14:31:42 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:31: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 14:31:43 2021
Terminated at Sat Sep  4 14:48:03 2021
Results reported at Sat Sep  4 14:48:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.3-1104_daily_bin324 178.348 -11.075 323308801 323568001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.3-1104 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   756.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             240.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

