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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin652
RA = 178.35, Dec = 49.5169
tmin = 408326401, tmax = 408585601
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='152722', job_status='RUN', time_executed='2021-09-04 15:15:13.835205', time_epoch_executed='1630793713.84' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152722

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152722/ft1_4FGL_J1153.4+4931_daily_bin652.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152722/ft1_4FGL_J1153.4+4931_daily_bin652.fits outfile=/scratch/kocevski/152722/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin652.fits ra=178.35 dec=49.5169 rad=12.0 tmin=408326401.0 tmax=408585601.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 4.94
user 4.68
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.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/152722/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin652.fits evtable="EVENTS" outfile="/scratch/kocevski/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.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.50
user 0.32
sys 0.15

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits sctable="SC_DATA" expcube=/scratch/kocevski/152722/ltcube_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits outfile=/scratch/kocevski/152722/expmap_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.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/152722/ltcube_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits
.....................!
real 192.25
user 187.64
sys 4.26

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/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits scfile=/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits outfile=/scratch/kocevski/152722/cmap_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.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/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits scfile=/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits outfile=/scratch/kocevski/152722/cmap_HighResolution_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.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.56
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits evtable="EVENTS" scfile=/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152722/Model_4FGL_J1153.4+4931_daily_bin652.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/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits......................!
real 33.84
user 32.50
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits', '/scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits', expMap='/scratch/kocevski/152722/expmap_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits', expCube='/scratch/kocevski/152722/ltcube_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/152722/Model_4FGL_J1153.4+4931_daily_bin652.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/152722/ft1_filtered_4FGL_J1153.4+4931_daily_bin652.fits
Spacecraft file(s): /scratch/kocevski/152722/ft2_4FGL_J1153.4+4931_daily_bin652.fits
Exposure map: /scratch/kocevski/152722/expmap_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits
Exposure cube: /scratch/kocevski/152722/ltcube_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/152722/Model_4FGL_J1153.4+4931_daily_bin652.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) = 3045.52075109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    81.312       1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.933       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.6196       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0098       1.0000         .10000E-03   10000.    
    12 'Prefactor '    96.197       1.0000         .10000E-03   10000.    
    13 'norm      '    9.4075       1.0000         .10000E-03   10000.    
    14 'norm      '    2.0360       1.0000         .10000E-03   10000.    
    15 'norm      '    .42507E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.7167       1.0000         .10000E-03   10000.    
    19 'Prefactor '    43.411       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    3.7815       1.0000         .10000E-03   10000.    
    22 'norm      '    17.818       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.4154       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.3324       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.0597       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .99688       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .68806       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=   3045.520     FROM MIGRAD    STATUS=CONVERGED    703 CALLS     4338 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    47.278        .47661E-06** at limit **
   2  Prefactor     .10000E-03    47.925        .45722E-06** at limit **
   3  Prefactor     81.335        175.71        .25237E-05    .10942E-04
   4  norm          .10000E-03    .91780        .58220E-09** at limit **
   5  Prefactor     .10000E-03    19.808        .12222E-06** at limit **
   6  Prefactor     13.935        31.713       -.21662E-05   -.11651E-04
   7  Prefactor     .10000E-03    59.957       -.11435E-05** at limit **
   8  norm          .10000E-03    29.270       -.44297E-06** at limit **
   9  Prefactor     7.6248        12.279        .45019E-05    .16401E-04
  10  Prefactor     .10000E-03    30.589       -.66199E-06** at limit **
  11  norm          3.0106        5.3039        .29134E-06    .14735E-05
  12  Prefactor     96.199        83.226        .36259E-06    .36341E-05
  13  norm          9.4008        27.490       -.13512E-06   -.31018E-04
  14  norm          2.0356        1.9929        .10894E-06    .12249E-03
  15  norm          .10001E-03    11.663       -.82469E-06** at limit **
  16  Prefactor     .10000E-03    5.1412        .21193E-05** at limit **
  17  Prefactor     .10000E-03    41.727        .61039E-06** at limit **
  18  norm          8.7176        7.5094       -.67141E-07   -.37492E-04
  19  Prefactor     43.442        32.582        .54772E-06    .16205E-03
  20  Prefactor     .10000E-03    3.7945       -.21002E-07** at limit **
  21  norm          3.7826        3.0834        .34037E-07   -.94531E-04
  22  norm          17.818        15.890        .45295E-07   -.55203E-04
  23  Prefactor     8.4242        40.649        .10520E-05    .18990E-04
  24  Prefactor     .10000E-03    8.5771        .93539E-08** at limit **
  25  norm          9.3349        6.5822        .15404E-06   -.84169E-05
  26  Prefactor     .10000E-03    9.2475       -.11294E-07** at limit **
  27  norm          8.0600        4.3208        .10059E-06    .14996E-03
  28  Normalizat    .99633        .24909       -.35320E-05    .38725E-04
  29  Prefactor     .68863        .27361        .24933E-05   -.84740E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 81.3346
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9348
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 7.62483
  Prefactor  = 0.0001
  norm       = 3.01058
  Prefactor  = 96.1987
  norm       = 9.40083
  norm       = 2.03557
  norm       = 0.000100007
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 8.71761
  Prefactor  = 43.4418
  Prefactor  = 0.0001
  norm       = 3.78261
  norm       = 17.818
  Prefactor  = 8.42416
  Prefactor  = 0.0001
  norm       = 9.33489
  Prefactor  = 0.0001
  norm       = 8.05998
  Normalizat = 0.996333
  Prefactor  = 0.688625
 **********
 **   18 **HESSE 
 **********

 FCN=   3045.520     FROM HESSE     STATUS=OK           551 CALLS     4889 TOTAL
                     EDM=   .60E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    47.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     81.335        176.13        .44542E-04   -1.3902    
   4  norm          .10000E-03    .91887        .51606E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.935        31.804        .10731E-03   -1.4961    
   7  Prefactor     .10000E-03    60.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    29.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.6248        12.319        .72640E-03   -1.5156    
  10  Prefactor     .10000E-03    30.659        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0106        5.2680        .15496E-03   -1.5361    
  12  Prefactor     96.199        83.000        .40981E-04   -1.3743    
  13  norm          9.4008        27.482        .13066E-03   -1.5095    
  14  norm          2.0356        1.9607        .63417E-04   -1.5423    
  15  norm          .10001E-03    38.393        .36083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.2071        .24287E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    41.753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.7176        7.5175        .13201E-03   -1.5117    
  19  Prefactor     43.442        32.380        .60846E-04   -1.4389    
  20  Prefactor     .10000E-03    3.7951        .10499E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          3.7826        3.0914        .83475E-04   -1.5319    
  22  norm          17.818        15.784        .94884E-04   -1.4863    
  23  Prefactor     8.4242        40.145        .13819E-03   -1.5127    
  24  Prefactor     .10000E-03    8.6103        .15765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.3349        6.5810        .11463E-03   -1.5097    
  26  Prefactor     .10000E-03    9.2498        .16392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.0600        4.3207        .81289E-04   -1.5140    
  28  Normalizat    .99633        .28561        .22304E-03   -.93153    
  29  Prefactor     .68863        .31299        .31573E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.01196e-10
Minuit parameter uncertainties:
  1  0.000361167
  2  0.000322653
  3  177.281
  4  1.2789e-07
  5  6.78707e-05
  6  31.8429
  7  0.000851975
  8  0.000235622
  9  12.3227
  10  0.000224266
  11  5.26877
  12  83.0999
  13  27.5194
  14  1.96074
  15  0.00105553
  16  7.26215e-06
  17  0.000419002
  18  7.51829
  19  32.3934
  20  2.25113e-07
  21  3.09153
  22  15.7872
  23  36.8196
  24  1.45407e-05
  25  6.58148
  26  6.82474e-06
  27  4.3209
  28  0.286044
  29  0.313789
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  7.262e-06  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:  6.886e-01  3.138e-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:  9.963e-01  2.860e-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: 1.19e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152722/likelihoodResults_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.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) = 3045.5212025
delta logL = -0.000915647955935

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3045.52028691
delta logL = -6.28256202617e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4086       1.0000          .0000       10.000    
     3 'Normalizat'    .99637       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68864       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=   3045.520     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      210 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.7760        .90712E-02** at limit **
   2  Index         2.4055        8.4949        .50000        .48591E-05
   3  Normalizat    .99633        .76617E-02    .46121E-01    .16819E-04
   4  Prefactor     .68863        .92157E-02    .71339E-01    .20098E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.40553
  Normalizat = 0.99633
  Prefactor  = 0.688629
 **********
 **   18 **HESSE 
 **********

 FCN=   3045.520     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      243 TOTAL
                     EDM=   .90E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    453.07        .24294E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4055        6.0694        .50000       -.54556    
   3  Normalizat    .99633        .58039E-01    .22305E-03   -.93153    
   4  Prefactor     .68863        .69688E-01    .31573E-03   -1.0397    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.97926e-07
Minuit parameter uncertainties:
  1  0.000342126
  2  862.357
  3  0.0580425
  4  0.0696964
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152722': 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) = 3045.52028684
delta logL = 7.63247953728e-09

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  3.421e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.406e+00  8.624e+02  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:  6.886e-01  6.970e-02  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:  9.963e-01  5.804e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/152722/cmap_HighResolution_408326401_408585601_4FGL_J1153.4+4931_daily_bin652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.24e-03', job_status='DONE', photon_flux_upper_limit='1.19e-07', time_completed='2021-09-04 15:26:06.394079', job_id='152722', GAL2='0.69', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1630794366.39', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='7.63e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='652' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 152722: <4FGL_J1153.4+4931_daily_bin652> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin652> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:16 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:18 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:18 2021
Terminated at Sat Sep  4 15:26:07 2021
Results reported at Sat Sep  4 15:26:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin652 178.35 49.5169 408326401 408585601 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 :                                   649.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

