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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin218
RA = 178.35, Dec = 49.5169
tmin = 295833601, tmax = 296092801
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='149373', job_status='RUN', time_executed='2021-09-04 15:04:48.706878', time_epoch_executed='1630793088.71' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='218'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149373

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149373/ft1_4FGL_J1153.4+4931_daily_bin218.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149373/ft1_4FGL_J1153.4+4931_daily_bin218.fits outfile=/scratch/kocevski/149373/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin218.fits ra=178.35 dec=49.5169 rad=12.0 tmin=295833601.0 tmax=296092801.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 2.37
user 2.18
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/149373/ft1_filtered_4FGL_J1153.4+4931_daily_bin218.fits" evtable="EVENTS" scfile=/scratch/kocevski/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits sctable="SC_DATA" outfile=/scratch/kocevski/149373/ltcube_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.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/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits
.....................!
real 12.14
user 11.77
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149373/ft1_filtered_4FGL_J1153.4+4931_daily_bin218.fits evtable="EVENTS" scfile=/scratch/kocevski/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits sctable="SC_DATA" expcube=/scratch/kocevski/149373/ltcube_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.fits outfile=/scratch/kocevski/149373/expmap_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.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/149373/ltcube_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.fits
.....................!
real 192.76
user 187.54
sys 4.88

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/149373/ft1_filtered_4FGL_J1153.4+4931_daily_bin218.fits scfile=/scratch/kocevski/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits outfile=/scratch/kocevski/149373/cmap_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.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/149373/ft1_filtered_4FGL_J1153.4+4931_daily_bin218.fits scfile=/scratch/kocevski/149373/ft2_4FGL_J1153.4+4931_daily_bin218.fits outfile=/scratch/kocevski/149373/cmap_HighResolution_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.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.57
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.0483       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.9317       1.0000         .10000E-03   10000.    
     4 'norm      '    10.073       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.7156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    26.345       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .44561       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .14485       1.0000         .10000E-03   10000.    
    13 'norm      '    .10988E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.0183       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.0040       1.0000         .10000E-03   10000.    
    17 'Prefactor '    35.982       1.0000         .10000E-03   10000.    
    18 'norm      '    2.9876       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.682       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.560       1.0000         .10000E-03   10000.    
    21 'norm      '    6.9802       1.0000         .10000E-03   10000.    
    22 'norm      '    2.3846       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10383E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .11787E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.7017       1.0000         .10000E-03   10000.    
    26 'Prefactor '    16.403       1.0000         .10000E-03   10000.    
    27 'norm      '    3.7567       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .60044       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.4784       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=   5776.648     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3236 TOTAL
                     EDM=   .29E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.0336        1005.4       -.12959E-04   -.50243E-05
   2  Prefactor     .10000E-03    57.471       -.10171E-06** at limit **
   3  Prefactor     3.9335        724.86       -.64594E-05   -.27310E-06
   4  norm          10.074        3.4652       -.56322E-08   -.85375E-04
   5  Prefactor     9.7230        52.432       -.15017E-05   -.20822E-04
   6  Prefactor     .10000E-03    13.502       -.20478E-06** at limit **
   7  Prefactor     .10000E-03    59.561       -.16645E-05** at limit **
   8  norm          26.360        38.972        .14670E-06   -.37185E-04
   9  Prefactor     .10000E-03    2.7275       -.20894E-06** at limit **
  10  Prefactor     .37146        505.86       -.43360E-04   -.37418E-05
  11  norm          .10000E-03    1.6660       -.16840E-06** at limit **
  12  Prefactor     .94151E-01    1140.5       -.52768E-04    .50950E-05
  13  norm          .10000E-03    46.029       -.21742E-06** at limit **
  14  norm          1.0198        1.1801        .46934E-06    .94403E-04
  15  norm          .10000E-03    4.7282        .11603E-06** at limit **
  16  Prefactor     5.0038        3.0583       -.96115E-07    .73345E-04
  17  Prefactor     35.950        34.962       -.86229E-06    .10595E-03
  18  norm          2.9902        4.0747        .56089E-07    .18760E-04
  19  Prefactor     18.678        16.339       -.30869E-06    .23253E-04
  20  Prefactor     18.561        10.982        .33957E-06   -.54799E-04
  21  norm          6.9799        2.5294        .11389E-08    .15098E-03
  22  norm          2.3823        4.6787       -.15283E-05    .23236E-04
  23  Prefactor     .10001E-03    51.640       -.34597E-05** at limit **
  24  Prefactor     .10000E-03    13.520        .36124E-05** at limit **
  25  norm          4.7025        3.0924        .76531E-06    .67368E-03
  26  Prefactor     16.404        17.527       -.86247E-06    .27885E-04
  27  norm          3.7564        2.1929       -.11708E-07    .14139E-03
  28  Normalizat    .60056        .18064        .27493E-05    .50777E-04
  29  Prefactor     1.4784        .22065       -.36535E-06   -.70756E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.03355
  Prefactor  = 0.0001
  Prefactor  = 3.93348
  norm       = 10.0736
  Prefactor  = 9.723
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 26.3599
  Prefactor  = 0.0001
  Prefactor  = 0.371461
  norm       = 0.0001
  Prefactor  = 0.0941513
  norm       = 0.000100001
  norm       = 1.01977
  norm       = 0.0001
  Prefactor  = 5.0038
  Prefactor  = 35.9502
  norm       = 2.99015
  Prefactor  = 18.6779
  Prefactor  = 18.5606
  norm       = 6.97995
  norm       = 2.38231
  Prefactor  = 0.000100009
  Prefactor  = 0.0001
  norm       = 4.70253
  Prefactor  = 16.4042
  norm       = 3.7564
  Normalizat = 0.600562
  Prefactor  = 1.47839
 **********
 **   18 **HESSE 
 **********

 FCN=   5776.648     FROM HESSE     STATUS=OK           577 CALLS     3813 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.0336        1019.5        .28887E-03   -1.5423    
   2  Prefactor     .10000E-03    57.476        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.9335        726.31        .20345E-03   -1.5311    
   4  norm          10.074        3.4644        .80241E-04   -1.5073    
   5  Prefactor     9.7230        52.331        .12856E-03   -1.5084    
   6  Prefactor     .10000E-03    13.522        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    59.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          26.360        38.970        .78048E-04   -1.4681    
   9  Prefactor     .10000E-03    2.7383        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .37146        34.218        .10467       -1.5586    
  11  norm          .10000E-03    1.7036        .95875E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .94151E-01    26.092        .11316       -1.5647    
  13  norm          .10000E-03    46.625        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.0198        1.1180        .77691E-03   -1.5506    
  15  norm          .10000E-03    4.7560        .16147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.0038        3.0560        .98164E-04   -1.5261    
  17  Prefactor     35.950        34.953        .66811E-04   -1.4508    
  18  norm          2.9902        4.0940        .83130E-03   -1.5362    
  19  Prefactor     18.678        16.334        .92665E-04   -1.4843    
  20  Prefactor     18.561        10.976        .92969E-04   -1.4846    
  21  norm          6.9799        2.5287        .69603E-04   -1.5180    
  22  norm          2.3823        4.6464        .22189E-03   -1.5399    
  23  Prefactor     .10001E-03    52.022        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.399        .31992E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.7025        3.0026        .10222E-03   -1.5274    
  26  Prefactor     16.404        17.510        .98892E-04   -1.4898    
  27  norm          3.7564        2.1924        .83299E-04   -1.5320    
  28  Normalizat    .60056        .20845        .28794E-03   -1.0796    
  29  Prefactor     1.4784        .26073        .25182E-03   -.78147    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.10894e-10
Minuit parameter uncertainties:
  1  92.6955
  2  5.95888e-05
  3  108.26
  4  3.46451
  5  45.1751
  6  1.16164e-06
  7  0.000698164
  8  39.0075
  9  6.49814e-06
  10  7.13362
  11  6.39327e-06
  12  3.13444
  13  0.000414372
  14  1.11799
  15  1.217e-05
  16  3.05614
  17  34.9728
  18  4.09436
  19  16.3378
  20  10.9772
  21  2.52874
  22  4.64706
  23  0.00133251
  24  0.000111259
  25  3.00268
  26  17.5156
  27  2.19242
  28  0.208725
  29  0.260969
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  5.004e+00  3.056e+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.478e+00  2.610e-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:  6.006e-01  2.087e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.90
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.90e-08 +/- 2.99e-08
Energy Flux (Fixed Index): 1.58e-05 +/- 9.66e-06

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) = 5775.34942622
delta logL = 1.29833549582

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5775.29797404
delta logL = 1.34978768035

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3250       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7043       1.0000          .0000       10.000    
     3 'Normalizat'    .62472       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4586       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=   5775.298     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      216 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3244        3.9520        .39901E-02    .26361E-03
   2  Index         1.7039        .35067        .16655       -.15901E-03
   3  Normalizat    .62477        .16505        .63886E-01   -.66023E-04
   4  Prefactor     1.4586        .21714        .57252E-01   -.11935E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.32444
  Index      = 1.70392
  Normalizat = 0.624766
  Prefactor  = 1.45858
 **********
 **   18 **HESSE 
 **********

 FCN=   5775.298     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3244        3.9997        .11262E-03   -1.5205    
   2  Index         1.7039        .39028        .66920E-02   -.71978    
   3  Normalizat    .62477        .19558        .28267E-03   -1.0694    
   4  Prefactor     1.4586        .25786        .25315E-03   -.78706    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.78689e-10
Minuit parameter uncertainties:
  1  3.99984
  2  0.390987
  3  0.195795
  4  0.258095
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149373': 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) = 5775.29797344
delta logL = 1.34978827509

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  6.324e+00  4.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.704e+00  3.910e-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:  1.459e+00  2.581e-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:  6.248e-01  1.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.64
Ra Dec: 178.350 49.517
Photon Index (Free Index): 1.70 +/- 0.39
Photon Flux (Free Index): 2.90e-08 +/- 2.18e-08
Energy Flux (Free Index): 4.68e-05 +/- 4.70e-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/149373/cmap_HighResolution_295833601_296092801_4FGL_J1153.4+4931_daily_bin218.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.90e-08', energy_flux2='4.68e-05', photon_flux_error='2.99e-08', dlogl='1.35e+00', energy_flux='1.58e-05', photon_flux2='2.90e-08', job_status='DONE', time_completed='2021-09-04 15:16:50.411449', photon_index_error2='0.39', photon_index2='1.70', ts='6.90', fit_tolerance='1e-08', GAL='1.48', photon_index_error='0.00', energy_flux_error2='4.70e-05', EG='0.60', time_epoch_completed='1630793810.41', return_code='0', job_id='149373', GAL2='1.46', EG2='0.62', return_code2='0', energy_flux_error='9.66e-06', photon_flux_error2='2.18e-08', ts2='9.64', photon_index='2.41' WHERE bin_id='218' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0245>
Subject: Job 149373: <4FGL_J1153.4+4931_daily_bin218> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin218 178.35 49.5169 295833601 296092801 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 :                                   721.29 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.94 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            939 sec.

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

