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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin711
RA = 178.35, Dec = 49.5169
tmin = 423619201, tmax = 423878401
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='152815', job_status='RUN', time_executed='2021-09-04 15:14:01.826695', time_epoch_executed='1630793641.83' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='711'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152815

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152815/ft1_4FGL_J1153.4+4931_daily_bin711.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152815/ft1_4FGL_J1153.4+4931_daily_bin711.fits outfile=/scratch/kocevski/152815/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin711.fits ra=178.35 dec=49.5169 rad=12.0 tmin=423619201.0 tmax=423878401.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.80
user 5.51
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.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/152815/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin711.fits evtable="EVENTS" outfile="/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.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.34
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits" evtable="EVENTS" scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits sctable="SC_DATA" outfile=/scratch/kocevski/152815/ltcube_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.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/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits
.....................!
real 11.95
user 11.58
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits sctable="SC_DATA" expcube=/scratch/kocevski/152815/ltcube_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits outfile=/scratch/kocevski/152815/expmap_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.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/152815/ltcube_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits
.....................!
real 193.23
user 186.69
sys 4.98

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

Setting source of interest to:
4FGL J1153.4+4931 @ 178.35 49.5169

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits outfile=/scratch/kocevski/152815/cmap_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.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.35 yref=49.5169 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits outfile=/scratch/kocevski/152815/cmap_HighResolution_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.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.35 yref=49.5169 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/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits evtable="EVENTS" scfile=/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152815/Model_4FGL_J1153.4+4931_daily_bin711.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/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits.....................!
real 35.79
user 34.42
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits', '/scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits', expMap='/scratch/kocevski/152815/expmap_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits', expCube='/scratch/kocevski/152815/ltcube_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152815/Model_4FGL_J1153.4+4931_daily_bin711.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1153.4+4931'

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.122e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/152815/ft1_filtered_4FGL_J1153.4+4931_daily_bin711.fits
Spacecraft file(s): /scratch/kocevski/152815/ft2_4FGL_J1153.4+4931_daily_bin711.fits
Exposure map: /scratch/kocevski/152815/expmap_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits
Exposure cube: /scratch/kocevski/152815/ltcube_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152815/Model_4FGL_J1153.4+4931_daily_bin711.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) = 3530.65400353

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10152E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    27.670       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.2708       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.7602       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.922       1.0000         .10000E-03   10000.    
    11 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    117.47       1.0000         .10000E-03   10000.    
    13 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    8.0876       1.0000         .10000E-03   10000.    
    15 'norm      '    12.958       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .79069E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.871       1.0000         .10000E-03   10000.    
    18 'norm      '    1.4916       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7459       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .13741E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.3946       1.0000         .10000E-03   10000.    
    22 'norm      '    4.5670       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    8.0819       1.0000         .10000E-03   10000.    
    26 'Prefactor '    102.20       1.0000         .10000E-03   10000.    
    27 'norm      '    3.2943       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .46509       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.3012       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7050E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   3530.647     FROM MIGRAD    STATUS=CONVERGED    732 CALLS     4241 TOTAL
                     EDM=   .33E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    136.46        .44908E-05** at limit **
   2  Prefactor     27.667        94.710        .94532E-06    .43158E-06
   3  Prefactor     .10000E-03    122.42       -.28827E-05** at limit **
   4  norm          4.2708        2.5531        .20867E-07    .42360E-04
   5  Prefactor     .10000E-03    21.924       -.48742E-06** at limit **
   6  Prefactor     .10000E-03    8.9052       -.20394E-06** at limit **
   7  Prefactor     .10000E-03    32.131       -.13822E-05** at limit **
   8  norm          .10000E-03    30.379        .52991E-07** at limit **
   9  Prefactor     3.7607        5.8803        .14111E-05   -.18627E-03
  10  Prefactor     27.919        25.750       -.64975E-06   -.19066E-04
  11  norm          .10000E-03    7.1144        .70085E-06** at limit **
  12  Prefactor     117.48        86.348       -.41787E-07   -.55547E-04
  13  norm          .10000E-03    12.154       -.72073E-06** at limit **
  14  norm          8.0877        3.2221       -.29525E-08   -.74039E-04
  15  norm          12.956        22.362       -.33737E-06   -.30400E-04
  16  Prefactor     .78018E-01    2.2798        .71571E-07   -.35597E-04
  17  Prefactor     15.860        452.01        .60279E-05   -.30963E-06
  18  norm          1.4896        3.3054        .28961E-05   -.92832E-03
  19  Prefactor     6.7464        15.852        .36569E-06   -.34008E-04
  20  Prefactor     .10001E-03    22.365       -.14808E-04** at limit **
  21  norm          5.3946        3.2832       -.14824E-07   -.25765E-03
  22  norm          4.5671        5.9597       -.13642E-06   -.29940E-03
  23  Prefactor     .10000E-03    11.381        .72310E-06** at limit **
  24  Prefactor     .10000E-03    2.8080        .15540E-06** at limit **
  25  norm          8.0817        4.6430       -.11258E-06   -.36944E-04
  26  Prefactor     102.20        39.183        .27056E-06   -.67562E-04
  27  norm          3.2945        2.9842        .70772E-07   -.18923E-04
  28  Normalizat    .46510        .20960       -.22189E-05   -.23039E-03
  29  Prefactor     1.3012        .25797       -.71509E-06   -.30127E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 27.6666
  Prefactor  = 0.0001
  norm       = 4.27078
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.76067
  Prefactor  = 27.9187
  norm       = 0.000100001
  Prefactor  = 117.477
  norm       = 0.0001
  norm       = 8.08772
  norm       = 12.9559
  Prefactor  = 0.0780183
  Prefactor  = 15.8599
  norm       = 1.48964
  Prefactor  = 6.74636
  Prefactor  = 0.000100006
  norm       = 5.39463
  norm       = 4.56714
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.08175
  Prefactor  = 102.202
  norm       = 3.29446
  Normalizat = 0.465098
  Prefactor  = 1.30122
 **********
 **   18 **HESSE 
 **********

 FCN=   3530.647     FROM HESSE     STATUS=OK           557 CALLS     4798 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    136.70        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     27.667        94.767        .76161E-04   -1.4655    
   3  Prefactor     .10000E-03    122.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.2708        2.5553        .69339E-04   -1.5295    
   5  Prefactor     .10000E-03    21.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.9125        .17318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    32.120        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.7607        5.8961        .84899E-03   -1.5320    
  10  Prefactor     27.919        25.836        .75816E-04   -1.4651    
  11  norm          .10000E-03    7.3608        .30934E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     117.48        86.463        .37125E-04   -1.3536    
  13  norm          .10000E-03    12.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          8.0877        3.2659        .48381E-04   -1.5139    
  15  norm          12.956        22.296        .11127E-03   -1.4988    
  16  Prefactor     .78018E-01    28.065        .16743E-02   -1.5652    
  17  Prefactor     15.860        456.90        .10053E-03   -1.4911    
  18  norm          1.4896        5.3305        .12263E-02   -1.5464    
  19  Prefactor     6.7464        15.954        .15449E-03   -1.5188    
  20  Prefactor     .10001E-03    26.620        .33494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.3946        3.2819        .78728E-04   -1.5243    
  22  norm          4.5671        5.9546        .16084E-03   -1.5281    
  23  Prefactor     .10000E-03    11.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8167        .97262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          8.0817        4.6430        .94443E-04   -1.5139    
  26  Prefactor     102.20        39.177        .19885E-03   -1.3683    
  27  norm          3.2945        2.9835        .94885E-04   -1.5345    
  28  Normalizat    .46510        .23727        .30162E-03   -1.1406    
  29  Prefactor     1.3012        .29678        .24641E-03   -.83271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16066e-08
Minuit parameter uncertainties:
  1  6.0324e-05
  2  95.2886
  3  0.0004861
  4  2.55537
  5  1.43865e-05
  6  1.5166e-07
  7  2.50665e-05
  8  1.22919e-05
  9  5.89699
  10  25.846
  11  0.000123695
  12  86.5558
  13  2.08635e-05
  14  3.266
  15  22.3108
  16  2.95892
  17  171.716
  18  5.33223
  19  15.9639
  20  0.000793812
  21  3.28205
  22  5.95532
  23  3.08245e-05
  24  1.89315e-05
  25  4.6432
  26  39.1868
  27  2.98362
  28  0.237783
  29  0.297161
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.802e-02  2.959e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.412e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.301e+00  2.972e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  4.651e-01  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 8.75e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.77e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152815/likelihoodResults_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.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) = 3530.64688432
delta logL = 5.85954876442e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3530.64687835
delta logL = 1.18367715913e-05

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3529.798     FROM MIGRAD    STATUS=CONVERGED    144 CALLS      318 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .26631E-03    .72594E-02    .20400E-03** at limit **
   2  Index         8.1713        3.2391        .15352        .56743E-04
   3  Normalizat    .36649        .50317E-01    .76444E-01    .31139E-04
   4  Prefactor     1.3842        .66376E-01    .54295E-01    .54524E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000266308
  Index      = 8.17131
  Normalizat = 0.366486
  Prefactor  = 1.38423
 **********
 **   18 **HESSE 
 **********

 FCN=   3529.798     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      351 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .26631E-03    .16626E-01    .10681E-04   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.1713        8.6837        .62279E-02    .68705    
   3  Normalizat    .36649        .17585        .33852E-03   -1.1907    
   4  Prefactor     1.3842        .22776        .24003E-03   -.80836    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.95296e-09
Minuit parameter uncertainties:
  1  0.00332569
  2  6.5055
  3  0.176116
  4  0.227921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152815': 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) = 3529.79757674
delta logL = 0.849313446885

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.663e-04  3.326e-03  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  8.171e+00  6.505e+00  0.000e+00  1.000e+01 (-1.000e+00)
364        Scale:  7.717e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
702    Prefactor:  1.384e+00  2.279e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  3.665e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 178.350 49.517
Photon Index (Free Index): 8.17 +/- 6.51
Photon Flux (Free Index): 6.76e-08 +/- 5.73e-08
Energy Flux (Free Index): 7.82e-06 +/- 6.85e-06

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/152815/cmap_HighResolution_423619201_423878401_4FGL_J1153.4+4931_daily_bin711.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.77e-03', comment='SUCCESS', energy_flux2='7.82e-06', dlogl='8.49e-01', photon_flux2='6.76e-08', job_status='DONE', time_completed='2021-09-04 15:25:47.345570', photon_index_error2='6.51', photon_index2='8.17', ts='0.00', fit_tolerance='1e-08', GAL='1.30', photon_index_error='0.00', photon_flux_upper_limit='8.75e-08', energy_flux_error2='6.85e-06', EG='0.47', time_epoch_completed='1630794347.35', return_code='0', job_id='152815', GAL2='1.38', EG2='0.37', return_code2='102', photon_flux_error2='5.73e-08', ts2='1.87', photon_index='2.41' WHERE bin_id='711' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:25:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 152815: <4FGL_J1153.4+4931_daily_bin711> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin711> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:24 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:11:25 2021
Terminated at Sat Sep  4 15:25:48 2021
Results reported at Sat Sep  4 15:25:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin711 178.35 49.5169 423619201 423878401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1153.4+4931 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   703.00 sec.
    Max Memory :                                 1141 MB
    Average Memory :                             255.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   862 sec.
    Turnaround time :                            864 sec.

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

