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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin959
RA = 178.35, Dec = 49.5169
tmin = 487900801, tmax = 488160001
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='154301', job_status='RUN', time_executed='2021-09-04 15:18:48.450116', time_epoch_executed='1630793928.45' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='959'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154301

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154301/ft1_4FGL_J1153.4+4931_daily_bin959.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154301/ft1_4FGL_J1153.4+4931_daily_bin959.fits outfile=/scratch/kocevski/154301/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin959.fits ra=178.35 dec=49.5169 rad=12.0 tmin=487900801.0 tmax=488160001.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 6.04
user 5.83
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.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/154301/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin959.fits evtable="EVENTS" outfile="/scratch/kocevski/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits" evtable="EVENTS" scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits sctable="SC_DATA" outfile=/scratch/kocevski/154301/ltcube_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.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/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits
.....................!
real 11.98
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits sctable="SC_DATA" expcube=/scratch/kocevski/154301/ltcube_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.fits outfile=/scratch/kocevski/154301/expmap_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.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/154301/ltcube_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.fits
.....................!
real 190.04
user 185.10
sys 4.55

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/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits outfile=/scratch/kocevski/154301/cmap_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits outfile=/scratch/kocevski/154301/cmap_HighResolution_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.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/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits evtable="EVENTS" scfile=/scratch/kocevski/154301/ft2_4FGL_J1153.4+4931_daily_bin959.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/154301/Model_4FGL_J1153.4+4931_daily_bin959.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/154301/ft1_filtered_4FGL_J1153.4+4931_daily_bin959.fits.....................!
real 43.27
user 41.85
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    59.166       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    88.963       1.0000         .10000E-03   10000.    
     6 'Prefactor '    40.078       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .69496       1.0000         .10000E-03   10000.    
    10 'Prefactor '    39.172       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10690E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .15207       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.7415       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.000       1.0000         .10000E-03   10000.    
    18 'norm      '    .20904E-01   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8296       1.0000         .10000E-03   10000.    
    21 'norm      '    .37835       1.0000         .10000E-03   10000.    
    22 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.5582       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    5.9228       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.0462       1.0000         .10000E-03   10000.    
    27 'norm      '    1.8236       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1217       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .47731       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=   4435.786     FROM MIGRAD    STATUS=CONVERGED    769 CALLS     3792 TOTAL
                     EDM=   .41E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    88.763        .54385E-06** at limit **
   2  Prefactor     59.151        70.179        .12547E-06    .20569E-04
   3  Prefactor     .10000E-03    96.836        .26516E-06** at limit **
   4  norm          .10000E-03    .76041       -.61728E-07** at limit **
   5  Prefactor     89.003        55.743       -.72404E-06   -.28064E-04
   6  Prefactor     40.085        28.195       -.50916E-06    .79954E-04
   7  Prefactor     .10000E-03    37.112       -.54219E-06** at limit **
   8  norm          .10000E-03    16.070       -.19226E-07** at limit **
   9  Prefactor     .72437        24.114        .39647E-05    .15727E-03
  10  Prefactor     39.102        34.317        .18876E-06    .28683E-03
  11  norm          .10000E-03    1.1757        .51546E-07** at limit **
  12  Prefactor     .10000E-03    34.620        .10855E-05** at limit **
  13  norm          .10000E-03    6.0555       -.17681E-08** at limit **
  14  norm          .14891        .84075       -.29034E-06    .21094E-03
  15  norm          .10000E-03    4.7877       -.31811E-06** at limit **
  16  Prefactor     1.7423        2.0982       -.51858E-07    .31857E-04
  17  Prefactor     22.172        63.234        .20869E-05    .33121E-04
  18  norm          .89685E-01    8.8056       -.29768E-05    .45838E-03
  19  Prefactor     .10000E-03    14.780        .14549E-06** at limit **
  20  Prefactor     4.7548        10.504        .17502E-05    .32484E-03
  21  norm          .37802        1.2075        .61776E-07   -.11488E-03
  22  norm          .10000E-03    2.5206        .12444E-07** at limit **
  23  Prefactor     6.5686        18.640       -.39103E-06    .20955E-04
  24  Prefactor     .10000E-03    2.7106        .26073E-07** at limit **
  25  norm          5.9235        3.6370       -.40868E-07    .61606E-04
  26  Prefactor     6.0506        17.291       -.13829E-05   -.40875E-04
  27  norm          1.8237        1.5924       -.15919E-07    .28869E-04
  28  Normalizat    1.1210        .19090        .14851E-05    .35197E-03
  29  Prefactor     .47795        .21508       -.15520E-05    .31863E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 59.151
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 89.0032
  Prefactor  = 40.0852
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.724375
  Prefactor  = 39.1019
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 0.148913
  norm       = 0.0001
  Prefactor  = 1.74227
  Prefactor  = 22.1719
  norm       = 0.0896853
  Prefactor  = 0.0001
  Prefactor  = 4.75484
  norm       = 0.378022
  norm       = 0.0001
  Prefactor  = 6.5686
  Prefactor  = 0.0001
  norm       = 5.9235
  Prefactor  = 6.05055
  norm       = 1.82375
  Normalizat = 1.121
  Prefactor  = 0.477949
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.786     FROM HESSE     STATUS=OK           559 CALLS     4351 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    89.166        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     59.151        70.191        .26079E-03   -1.4168    
   3  Prefactor     .10000E-03    96.940        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .77077        .56649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     89.003        55.721        .21300E-03   -1.3818    
   6  Prefactor     40.085        27.778        .63316E-04   -1.4441    
   7  Prefactor     .10000E-03    37.205        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .72437        26.008        .26198E-02   -1.5538    
  10  Prefactor     39.102        35.076        .64041E-04   -1.4457    
  11  norm          .10000E-03    1.1826        .70494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    34.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.0562        .16007E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .14891        1.2743        .10343E-02   -1.5631    
  15  norm          .10000E-03    4.8054        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.7423        2.0879        .10219E-03   -1.5444    
  17  Prefactor     22.172        63.895        .85397E-04   -1.4766    
  18  norm          .89685E-01    146.68        .22559E-02   -1.5648    
  19  Prefactor     .10000E-03    14.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.7548        13.171        .18305E-03   -1.5272    
  21  norm          .37802        1.1379        .12469E-02   -1.5585    
  22  norm          .10000E-03    2.5234        .10315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     6.5686        18.619        .15671E-03   -1.5195    
  24  Prefactor     .10000E-03    2.7183        .10703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          5.9235        3.6345        .96669E-04   -1.5221    
  26  Prefactor     6.0506        17.340        .81644E-03   -1.5216    
  27  norm          1.8237        1.5921        .76519E-04   -1.5438    
  28  Normalizat    1.1210        .20179        .18268E-03   -.89080    
  29  Prefactor     .47795        .22846        .32872E-03   -1.1300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.75082e-08
Minuit parameter uncertainties:
  1  0.000193592
  2  70.2891
  3  5.54412e-05
  4  9.07024e-07
  5  55.7539
  6  27.7865
  7  0.000230072
  8  8.34772e-06
  9  8.68437
  10  35.0944
  11  7.51736e-08
  12  0.000273881
  13  1.70014e-06
  14  0.870969
  15  1.93435e-05
  16  2.08801
  17  64.0927
  18  7.26771
  19  1.84833e-05
  20  13.1789
  21  1.13796
  22  1.89556e-07
  23  18.6358
  24  1.56217e-06
  25  3.63468
  26  17.354
  27  1.59213
  28  0.201932
  29  0.228898
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.742e+00  2.088e+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:  4.779e-01  2.289e-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:  1.121e+00  2.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.54
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.71e-08 +/- 2.04e-08
Energy Flux (Fixed Index): 5.50e-06 +/- 6.60e-06

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

Saving results to:
/scratch/kocevski/154301/likelihoodResults_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.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) = 4435.78373061
delta logL = 0.00209385711423

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4435.78309929
delta logL = 0.00272517391204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8216       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3344       1.0000          .0000       10.000    
     3 'Normalizat'    1.1223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .47690       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=   4435.783     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      200 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8218        81.963        .77344E-02    .73691E-04
   2  Index         2.3343        5.2933        .24164        .24223E-04
   3  Normalizat    1.1223        .63238E-01    .37157E-01    .77210E-07
   4  Prefactor     .47690        .66064E-01    .74307E-01    .26738E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82179
  Index      = 2.33434
  Normalizat = 1.12231
  Prefactor  = 0.476899
 **********
 **   18 **HESSE 
 **********

 FCN=   4435.783     FROM HESSE     STATUS=OK            31 CALLS      231 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8218        2.4537        .10501E-03   -1.5438    
   2  Index         2.3343        1.0511        .10811E-01   -.56230    
   3  Normalizat    1.1223        .18373        .18258E-03   -.89039    
   4  Prefactor     .47690        .22276        .32905E-03   -1.1305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.94711e-10
Minuit parameter uncertainties:
  1  2.45381
  2  1.06222
  3  0.183834
  4  0.223166
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154301': 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) = 4435.78309929
delta logL = 0.00272517828671

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.822e+00  2.454e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.334e+00  1.062e+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:  4.769e-01  2.232e-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:  1.122e+00  1.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.54
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.33 +/- 1.06
Photon Flux (Free Index): 1.61e-08 +/- 2.29e-08
Energy Flux (Free Index): 5.79e-06 +/- 8.37e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/154301/cmap_HighResolution_487900801_488160001_4FGL_J1153.4+4931_daily_bin959.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.96e-03', comment='SUCCESS', photon_flux='1.71e-08', energy_flux2='5.79e-06', photon_flux_error='2.04e-08', dlogl='2.73e-03', energy_flux='5.50e-06', photon_flux2='1.61e-08', job_status='DONE', time_completed='2021-09-04 15:31:44.325725', photon_index_error2='1.06', photon_index2='2.33', ts='1.54', fit_tolerance='1e-08', GAL='0.48', photon_index_error='0.00', photon_flux_upper_limit='7.71e-08', energy_flux_error2='8.37e-06', EG='1.12', time_epoch_completed='1630794704.33', return_code='0', job_id='154301', GAL2='0.48', EG2='1.12', return_code2='0', energy_flux_error='6.60e-06', photon_flux_error2='2.29e-08', ts2='1.54', photon_index='2.41' WHERE bin_id='959' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 154301: <4FGL_J1153.4+4931_daily_bin959> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin959> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:23 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:24 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:16:24 2021
Terminated at Sat Sep  4 15:31:45 2021
Results reported at Sat Sep  4 15:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin959 178.35 49.5169 487900801 488160001 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 :                                   773.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             263.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            922 sec.

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

