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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin287
RA = 178.35, Dec = 49.5169
tmin = 313718401, tmax = 313977601
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='149500', job_status='RUN', time_executed='2021-09-04 15:01:41.177763', time_epoch_executed='1630792901.18' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='287'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149500

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149500/ft1_4FGL_J1153.4+4931_daily_bin287.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149500/ft2_4FGL_J1153.4+4931_daily_bin287.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149500/ft1_4FGL_J1153.4+4931_daily_bin287.fits outfile=/scratch/kocevski/149500/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin287.fits ra=178.35 dec=49.5169 rad=12.0 tmin=313718401.0 tmax=313977601.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.41
user 3.18
sys 0.19

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149500/ft1_filtered_4FGL_J1153.4+4931_daily_bin287.fits evtable="EVENTS" scfile=/scratch/kocevski/149500/ft2_4FGL_J1153.4+4931_daily_bin287.fits sctable="SC_DATA" expcube=/scratch/kocevski/149500/ltcube_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.fits outfile=/scratch/kocevski/149500/expmap_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.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/149500/ltcube_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.fits
.....................!
real 191.58
user 185.33
sys 5.02

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/149500/ft1_filtered_4FGL_J1153.4+4931_daily_bin287.fits scfile=/scratch/kocevski/149500/ft2_4FGL_J1153.4+4931_daily_bin287.fits outfile=/scratch/kocevski/149500/cmap_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149500/ft1_filtered_4FGL_J1153.4+4931_daily_bin287.fits scfile=/scratch/kocevski/149500/ft2_4FGL_J1153.4+4931_daily_bin287.fits outfile=/scratch/kocevski/149500/cmap_HighResolution_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.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.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.706       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    118.34       1.0000         .10000E-03   10000.    
     4 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    59.643       1.0000         .10000E-03   10000.    
     6 'Prefactor '    28.965       1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.20       1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.8073       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10930E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .15055E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    34.294       1.0000         .10000E-03   10000.    
    13 'norm      '    4.9063       1.0000         .10000E-03   10000.    
    14 'norm      '    .78523       1.0000         .10000E-03   10000.    
    15 'norm      '    34.026       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.9060       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.5516       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2341       1.0000         .10000E-03   10000.    
    22 'norm      '    .10537E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    30.738       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .92562E-02   1.0000         .10000E-03   10000.    
    25 'norm      '    6.5438       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.5958       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .84675       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0521       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=   5648.175     FROM MIGRAD    STATUS=CONVERGED    746 CALLS     3759 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.690        88.444       -.12219E-04   -.51863E-05
   2  Prefactor     .10000E-03    44.344        .88248E-05** at limit **
   3  Prefactor     118.34        92.289        .48538E-06    .43562E-05
   4  norm          .10000E-03    .76589        .99062E-08** at limit **
   5  Prefactor     59.631        59.363       -.85475E-05   -.30435E-05
   6  Prefactor     28.968        21.686       -.55048E-06    .33668E-04
   7  Prefactor     115.19        82.855       -.63970E-05   -.33127E-05
   8  norm          .10000E-03    14.793        .14816E-06** at limit **
   9  Prefactor     1.8115        1.5682        .24098E-06   -.16019E-02
  10  Prefactor     .10000E-03    40.318       -.11395E-04** at limit **
  11  norm          .10000E-03    2.1608       -.26389E-06** at limit **
  12  Prefactor     34.335        36.502        .54981E-05    .51579E-04
  13  norm          4.9056        12.505       -.84698E-07   -.11259E-03
  14  norm          .78387        1.0212       -.44082E-06   -.69571E-03
  15  norm          34.028        14.886       -.19791E-06    .19785E-04
  16  Prefactor     4.9061        3.6052       -.15662E-06    .16082E-04
  17  Prefactor     .10000E-03    33.004        .29399E-05** at limit **
  18  norm          2.5520        3.5374       -.35163E-07    .26135E-04
  19  Prefactor     .10000E-03    6.7219        .67313E-07** at limit **
  20  Prefactor     .10000E-03    2.2834       -.22685E-08** at limit **
  21  norm          2.2337        2.4365       -.18717E-06   -.18579E-04
  22  norm          .10000E-03    15.658       -.13233E-05** at limit **
  23  Prefactor     30.719        26.679        .40454E-05    .74058E-04
  24  Prefactor     .10003E-03    5.2194       -.13946E-06** at limit **
  25  norm          6.5452        4.1420       -.69724E-07    .85878E-04
  26  Prefactor     .10000E-03    9.3103       -.21816E-07** at limit **
  27  norm          4.5955        2.6472       -.96087E-07    .24098E-04
  28  Normalizat    .84661        .17416        .10346E-05    .13376E-03
  29  Prefactor     1.0524        .20542        .18499E-06    .13371E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.6899
  Prefactor  = 0.0001
  Prefactor  = 118.343
  norm       = 0.0001
  Prefactor  = 59.6313
  Prefactor  = 28.9683
  Prefactor  = 115.194
  norm       = 0.0001
  Prefactor  = 1.81151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 34.3352
  norm       = 4.90556
  norm       = 0.783874
  norm       = 34.0282
  Prefactor  = 4.90614
  Prefactor  = 0.0001
  norm       = 2.55201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.23372
  norm       = 0.000100003
  Prefactor  = 30.7194
  Prefactor  = 0.000100033
  norm       = 6.54518
  Prefactor  = 0.0001
  norm       = 4.59552
  Normalizat = 0.84661
  Prefactor  = 1.05243
 **********
 **   18 **HESSE 
 **********

 FCN=   5648.175     FROM HESSE     STATUS=OK           567 CALLS     4326 TOTAL
                     EDM=   .59E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.690        88.495        .41963E-04   -1.3790    
   2  Prefactor     .10000E-03    44.339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     118.34        92.456        .36990E-04   -1.3528    
   4  norm          .10000E-03    .77671        .64193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     59.631        59.617        .51951E-04   -1.4162    
   6  Prefactor     28.968        21.939        .74442E-04   -1.4631    
   7  Prefactor     115.19        82.861        .18742E-03   -1.3557    
   8  norm          .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.8115        6.2408        .15542E-02   -1.5439    
  10  Prefactor     .10000E-03    40.688        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    6.4206        .21360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     34.335        36.048        .68430E-04   -1.4535    
  13  norm          4.9056        12.545        .90793E-03   -1.5265    
  14  norm          .78387        .96732        .76705E-03   -1.5531    
  15  norm          34.028        14.870        .68698E-04   -1.4541    
  16  Prefactor     4.9061        3.6134        .11571E-03   -1.5265    
  17  Prefactor     .10000E-03    33.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.5520        3.5220        .16054E-03   -1.5388    
  19  Prefactor     .10000E-03    6.7252        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.2852        .11087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2337        2.4242        .11505E-03   -1.5409    
  22  norm          .10000E-03    16.038        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     30.719        26.746        .72269E-04   -1.4599    
  24  Prefactor     .10003E-03    14.091        .49696E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.5452        4.2400        .11225E-03   -1.5196    
  26  Prefactor     .10000E-03    9.3467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.5955        2.6474        .89586E-04   -1.5279    
  28  Normalizat    .84661        .20887        .23955E-03   -.98362    
  29  Prefactor     1.0524        .24156        .27559E-03   -.91002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.88998e-09
Minuit parameter uncertainties:
  1  88.6224
  2  6.97816e-05
  3  92.5689
  4  2.89988e-06
  5  59.6767
  6  21.9453
  7  82.9447
  8  3.63358e-06
  9  6.24307
  10  5.94302e-05
  11  8.4472e-05
  12  36.0707
  13  12.5517
  14  0.967341
  15  14.8711
  16  3.61356
  17  1.59121e-05
  18  3.52233
  19  6.22181e-06
  20  2.5204e-07
  21  2.42427
  22  0.000424661
  23  26.7566
  24  0.00137423
  25  4.24016
  26  2.40119e-05
  27  2.64748
  28  0.209073
  29  0.241805
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.906e+00  3.614e+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.052e+00  2.418e-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:  8.466e-01  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.67
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.80e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 1.55e-05 +/- 1.14e-05

TS (Fixed Index): 2.67
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.21e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.35e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/149500/likelihoodResults_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.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): 0
logL (Free Index) = 5646.44822572
delta logL = 1.72649296933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5646.43377604
delta logL = 1.74094264016

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .85235       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0468       1.0000          .0000       10.000    
     3 'Normalizat'    .76015       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1262       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=   5646.434     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      251 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .85221        5.9183        .72592E-02    .58339E-03
   2  Index         4.0472        2.6857        .95172E-01    .14033E-03
   3  Normalizat    .76028        .55177E-01    .43088E-01    .18304E-04
   4  Prefactor     1.1262        .68704E-01    .60476E-01    .70306E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.852208
  Index      = 4.04722
  Normalizat = 0.760276
  Prefactor  = 1.12619
 **********
 **   18 **HESSE 
 **********

 FCN=   5646.434     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      284 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .85221        9.8012        .32528E-04   -1.5523    
   2  Index         4.0472        3.6197        .38657E-02   -.19173    
   3  Normalizat    .76028        .20105        .25117E-03   -1.0156    
   4  Prefactor     1.1262        .25362        .26746E-03   -.88634    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.43075e-10
Minuit parameter uncertainties:
  1  5.78104
  2  4.07041
  3  0.201244
  4  0.253889
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149500': 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) = 5646.43377389
delta logL = 1.74094479474

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  8.522e-01  5.781e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  4.047e+00  4.070e+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.126e+00  2.539e-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:  7.603e-01  2.012e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.42
Ra Dec: 178.350 49.517
Photon Index (Free Index): 4.05 +/- 4.07
Photon Flux (Free Index): 1.10e-07 +/- 5.90e-08
Energy Flux (Free Index): 1.63e-05 +/- 1.07e-05

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/149500/cmap_HighResolution_313718401_313977601_4FGL_J1153.4+4931_daily_bin287.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.35e-03', comment='SUCCESS', photon_flux='4.80e-08', energy_flux2='1.63e-05', photon_flux_error='3.54e-08', dlogl='1.74e+00', energy_flux='1.55e-05', photon_flux2='1.10e-07', job_status='DONE', time_completed='2021-09-04 15:16:36.748348', photon_index_error2='4.07', photon_index2='4.05', ts='2.67', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='1.07e-05', EG='0.85', time_epoch_completed='1630793796.75', return_code='0', job_id='149500', GAL2='1.13', EG2='0.76', return_code2='102', energy_flux_error='1.14e-05', photon_flux_error2='5.90e-08', ts2='6.42', photon_index='2.41' WHERE bin_id='287' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:16:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0036>
Subject: Job 149500: <4FGL_J1153.4+4931_daily_bin287> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin287> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 15:01:19 2021
Job was executed on host(s) <bullet0036>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:01:21 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:01:21 2021
Terminated at Sat Sep  4 15:16:37 2021
Results reported at Sat Sep  4 15:16:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin287 178.35 49.5169 313718401 313977601 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 :                                   889.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             327.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            918 sec.

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

