/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 74 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 = 7009
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1153.4+4931_daily_bin43
RA = 178.35, Dec = 49.5169
tmin = 250473601, tmax = 250732801
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='147861', job_status='RUN', time_executed='2021-09-04 14:58:35.525697', time_epoch_executed='1630792715.53' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='43'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147861

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147861/ft1_4FGL_J1153.4+4931_daily_bin43.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147861/ft2_4FGL_J1153.4+4931_daily_bin43.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147861/ft1_4FGL_J1153.4+4931_daily_bin43.fits outfile=/scratch/kocevski/147861/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin43.fits ra=178.35 dec=49.5169 rad=12.0 tmin=250473601.0 tmax=250732801.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 1.35
user 1.19
sys 0.15

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147861/ft1_filtered_4FGL_J1153.4+4931_daily_bin43.fits evtable="EVENTS" scfile=/scratch/kocevski/147861/ft2_4FGL_J1153.4+4931_daily_bin43.fits sctable="SC_DATA" expcube=/scratch/kocevski/147861/ltcube_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.fits outfile=/scratch/kocevski/147861/expmap_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.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/147861/ltcube_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.fits
.....................!
real 191.01
user 185.46
sys 5.14

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/147861/ft1_filtered_4FGL_J1153.4+4931_daily_bin43.fits scfile=/scratch/kocevski/147861/ft2_4FGL_J1153.4+4931_daily_bin43.fits outfile=/scratch/kocevski/147861/cmap_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/147861/ft1_filtered_4FGL_J1153.4+4931_daily_bin43.fits scfile=/scratch/kocevski/147861/ft2_4FGL_J1153.4+4931_daily_bin43.fits outfile=/scratch/kocevski/147861/cmap_HighResolution_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.379       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.7109       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9686       1.0000         .10000E-03   10000.    
     7 'Prefactor '    43.397       1.0000         .10000E-03   10000.    
     8 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    5.3004       1.0000         .10000E-03   10000.    
    11 'norm      '    .10302E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    68.759       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.3538       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0264       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.7852       1.0000         .10000E-03   10000.    
    18 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.770       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4158       1.0000         .10000E-03   10000.    
    21 'norm      '    2.0626       1.0000         .10000E-03   10000.    
    22 'norm      '    .11389E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3744       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8301       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .42580E-02   1.0000         .10000E-03   10000.    
    27 'norm      '    1.1241       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .94140       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90298       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=   5602.287     FROM MIGRAD    STATUS=CONVERGED    718 CALLS     3693 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.369        55.573        .24139E-06    .39362E-05
   2  Prefactor     .10000E-03    54.709       -.27647E-08** at limit **
   3  Prefactor     .10000E-03    46.978        .17211E-06** at limit **
   4  norm          3.7108        2.1779        .82067E-07    .42508E-04
   5  Prefactor     .10000E-03    32.513        .41030E-06** at limit **
   6  Prefactor     5.9681        12.690       -.16991E-05   -.13916E-03
   7  Prefactor     43.076        104.30       -.36497E-07    .23369E-04
   8  norm          .10000E-03    14.941        .23772E-06** at limit **
   9  Prefactor     .10000E-03    2.6416       -.13160E-06** at limit **
  10  Prefactor     5.3000        12.118       -.67657E-07    .21062E-05
  11  norm          .10000E-03    1.4178       -.29629E-06** at limit **
  12  Prefactor     68.755        38.130        .12556E-06    .61406E-04
  13  norm          .10000E-03    5.5578       -.88320E-08** at limit **
  14  norm          1.3536        .94387       -.53045E-08    .25386E-03
  15  norm          .10000E-03    2.8483       -.18096E-07** at limit **
  16  Prefactor     4.0260        4.0028        .10862E-06    .20036E-04
  17  Prefactor     2.7841        56.372       -.62246E-06   -.19769E-05
  18  norm          .10000E-03    2.9497       -.52344E-07** at limit **
  19  Prefactor     11.769        19.578       -.61860E-06   -.51105E-04
  20  Prefactor     8.4157        6.6088        .24698E-07    .21712E-04
  21  norm          2.0625        1.8934       -.85934E-08   -.32617E-04
  22  norm          .10000E-03    4.2903        .28162E-07** at limit **
  23  Prefactor     7.3596        16.933        .13030E-07    .69764E-05
  24  Prefactor     .10000E-03    2.7592       -.14209E-06** at limit **
  25  norm          2.8299        2.4725       -.19227E-07    .22402E-04
  26  Prefactor     .10000E-03    75.636       -.66047E-05** at limit **
  27  norm          1.1244        1.4462        .77436E-06    .56477E-03
  28  Normalizat    .94143        .16854       -.19368E-05    .24971E-03
  29  Prefactor     .90303        .20654        .22006E-05   -.15365E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.3693
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.71081
  Prefactor  = 0.0001
  Prefactor  = 5.96814
  Prefactor  = 43.0762
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.29995
  norm       = 0.0001
  Prefactor  = 68.755
  norm       = 0.0001
  norm       = 1.3536
  norm       = 0.0001
  Prefactor  = 4.02598
  Prefactor  = 2.78407
  norm       = 0.0001
  Prefactor  = 11.7685
  Prefactor  = 8.41575
  norm       = 2.06246
  norm       = 0.0001
  Prefactor  = 7.35958
  Prefactor  = 0.0001
  norm       = 2.82991
  Prefactor  = 0.000100001
  norm       = 1.12443
  Normalizat = 0.941431
  Prefactor  = 0.903034
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.287     FROM HESSE     STATUS=OK           559 CALLS     4252 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.369        55.576        .69358E-04   -1.4552    
   2  Prefactor     .10000E-03    54.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.7108        2.1794        .81279E-04   -1.5323    
   5  Prefactor     .10000E-03    32.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     5.9681        12.911        .82180E-03   -1.5219    
   7  Prefactor     43.076        104.68        .30428E-03   -1.4394    
   8  norm          .10000E-03    14.945        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.6672        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.3000        12.104        .17458E-03   -1.5247    
  11  norm          .10000E-03    2.4552        .16905E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     68.755        37.974        .48407E-04   -1.4048    
  13  norm          .10000E-03    5.5582        .17234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.3536        .93236        .55421E-04   -1.5475    
  15  norm          .10000E-03    2.8488        .12334E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.0260        3.9759        .13154E-03   -1.5307    
  17  Prefactor     2.7841        56.092        .24381E-03   -1.5374    
  18  norm          .10000E-03    3.0288        .25068E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     11.769        19.555        .58385E-03   -1.5022    
  20  Prefactor     8.4157        6.6028        .13819E-03   -1.5128    
  21  norm          2.0625        1.8843        .94222E-04   -1.5421    
  22  norm          .10000E-03    4.3259        .15090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3596        16.860        .14769E-03   -1.5165    
  24  Prefactor     .10000E-03    2.8028        .12135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8299        2.4746        .10706E-03   -1.5372    
  26  Prefactor     .10000E-03    74.042        .44083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.1244        1.4583        .11327E-02   -1.5496    
  28  Normalizat    .94143        .18193        .21554E-03   -.95019    
  29  Prefactor     .90303        .22303        .27536E-03   -.96035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.85632e-10
Minuit parameter uncertainties:
  1  55.662
  2  8.03991e-06
  3  1.88539e-05
  4  2.1794
  5  5.95063e-05
  6  12.9165
  7  105.133
  8  1.65452e-05
  9  1.37364e-06
  10  12.1097
  11  6.18317e-05
  12  37.9877
  13  7.34705e-07
  14  0.932375
  15  2.99014e-07
  16  3.97612
  17  25.0195
  18  2.39727e-07
  19  19.566
  20  6.60342
  21  1.88432
  22  5.96771e-06
  23  16.8704
  24  3.66976e-06
  25  2.4747
  26  0.000488916
  27  1.45833
  28  0.182051
  29  0.223251
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.026e+00  3.976e+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:  9.030e-01  2.233e-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.414e-01  1.821e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.69
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.94e-08 +/- 3.89e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.26e-05

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

Saving results to:
/scratch/kocevski/147861/likelihoodResults_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.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) = 5602.28619622
delta logL = 0.00087788759356

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5602.28586737
delta logL = 0.00120674383834

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.9334       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4552       1.0000          .0000       10.000    
     3 'Normalizat'    .93944       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90469       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5602.286     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      233 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.9331        4.3779        .12876E-03    .64339E-03
   2  Index         2.4553        .93593        .93904E-02    .88880E-04
   3  Normalizat    .93941        .18184        .21574E-03   -.41631E-04
   4  Prefactor     .90473        .22420        .27513E-03   -.16731E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.93314
  Index      = 2.45534
  Normalizat = 0.939405
  Prefactor  = 0.904731
 **********
 **   18 **HESSE 
 **********

 FCN=   5602.286     FROM HESSE     STATUS=OK            25 CALLS      258 TOTAL
                     EDM=   .33E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.9331        4.1584        .51505E-05   -1.5311    
   2  Index         2.4553        .88793        .37562E-03   -.53394    
   3  Normalizat    .93941        .18152        .86294E-05   -.95089    
   4  Prefactor     .90473        .22390        .11005E-04   -.95976    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.28273e-10
Minuit parameter uncertainties:
  1  4.15873
  2  0.89435
  3  0.181639
  4  0.224129
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147861': 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) = 5602.28586734
delta logL = 0.00120676863116

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.933e+00  4.159e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.455e+00  8.943e-01  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:  9.047e-01  2.241e-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.394e-01  1.816e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.69
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.46 +/- 0.89
Photon Flux (Free Index): 4.08e-08 +/- 4.67e-08
Energy Flux (Free Index): 1.25e-05 +/- 1.24e-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/147861/cmap_HighResolution_250473601_250732801_4FGL_J1153.4+4931_daily_bin43.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.03e-03', comment='SUCCESS', photon_flux='3.94e-08', energy_flux2='1.25e-05', photon_flux_error='3.89e-08', dlogl='1.21e-03', energy_flux='1.27e-05', photon_flux2='4.08e-08', job_status='DONE', time_completed='2021-09-04 15:12:41.005022', photon_index_error2='0.89', photon_index2='2.46', ts='1.69', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.24e-05', EG='0.94', time_epoch_completed='1630793561.01', return_code='0', job_id='147861', GAL2='0.90', EG2='0.94', return_code2='0', energy_flux_error='1.26e-05', photon_flux_error2='4.67e-08', ts2='1.69', photon_index='2.41' WHERE bin_id='43' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 147861: <4FGL_J1153.4+4931_daily_bin43> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin43> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:11 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 14:57:12 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:57:12 2021
Terminated at Sat Sep  4 15:12:41 2021
Results reported at Sat Sep  4 15:12:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin43 178.35 49.5169 250473601 250732801 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 :                                   845.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            930 sec.

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

