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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin731
RA = 178.35, Dec = 49.5169
tmin = 428803201, tmax = 429062401
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='152846', job_status='RUN', time_executed='2021-09-04 15:14:47.685343', time_epoch_executed='1630793687.69' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152846

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152846/ft1_4FGL_J1153.4+4931_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152846/ft1_4FGL_J1153.4+4931_daily_bin731.fits outfile=/scratch/kocevski/152846/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin731.fits ra=178.35 dec=49.5169 rad=12.0 tmin=428803201.0 tmax=429062401.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.55
user 6.30
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152846/ft1_filtered_4FGL_J1153.4+4931_daily_bin731.fits" evtable="EVENTS" scfile=/scratch/kocevski/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits sctable="SC_DATA" outfile=/scratch/kocevski/152846/ltcube_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.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/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits
.....................!
real 13.03
user 12.63
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152846/ft1_filtered_4FGL_J1153.4+4931_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/152846/ltcube_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.fits outfile=/scratch/kocevski/152846/expmap_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.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/152846/ltcube_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.fits
.....................!
real 191.39
user 186.84
sys 4.09

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/152846/ft1_filtered_4FGL_J1153.4+4931_daily_bin731.fits scfile=/scratch/kocevski/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits outfile=/scratch/kocevski/152846/cmap_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=178.35 yref=49.5169 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152846/ft1_filtered_4FGL_J1153.4+4931_daily_bin731.fits scfile=/scratch/kocevski/152846/ft2_4FGL_J1153.4+4931_daily_bin731.fits outfile=/scratch/kocevski/152846/cmap_HighResolution_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=178.35 yref=49.5169 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.56
user 0.37
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    79.192       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.2155       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.595       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    122.63       1.0000         .10000E-03   10000.    
     8 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.2300       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    6.1849       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.1391       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.180       1.0000         .10000E-03   10000.    
    21 'norm      '    8.0488       1.0000         .10000E-03   10000.    
    22 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    18.998       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    6.1587       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .49829E-02   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0292       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .56541       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=   3124.117     FROM MIGRAD    STATUS=CONVERGED    717 CALLS     3664 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     79.051        79.274       -.52428E-06   -.42129E-04
   2  Prefactor     .10000E-03    44.674        .41624E-07** at limit **
   3  Prefactor     .10000E-03    79.765        .33051E-06** at limit **
   4  norm          2.2160        1.9209       -.60670E-08   -.79441E-04
   5  Prefactor     19.600        53.578       -.12561E-05   -.26546E-04
   6  Prefactor     .10000E-03    8.6989        .19428E-06** at limit **
   7  Prefactor     122.52        123.12       -.76328E-07   -.28587E-04
   8  norm          .10000E-03    26.582       -.41603E-06** at limit **
   9  Prefactor     .10000E-03    9.4400        .83524E-06** at limit **
  10  Prefactor     .10000E-03    7.7010        .12620E-06** at limit **
  11  norm          1.2306        3.9632        .13328E-05    .34640E-03
  12  Prefactor     .10000E-03    12.820        .56527E-07** at limit **
  13  norm          .10000E-03    6.6655        .38320E-07** at limit **
  14  norm          6.1851        1.8397       -.54602E-07   -.24082E-03
  15  norm          .10000E-03    4.4325        .60501E-07** at limit **
  16  Prefactor     3.1402        4.5308       -.17512E-06   -.79236E-04
  17  Prefactor     .10000E-03    49.976        .45392E-06** at limit **
  18  norm          .10000E-03    2.7622        .22035E-06** at limit **
  19  Prefactor     .10000E-03    27.751        .13721E-05** at limit **
  20  Prefactor     11.180        8.7836       -.68776E-07   -.48891E-04
  21  norm          8.0510        4.1533       -.15403E-06   -.25363E-03
  22  norm          .10000E-03    3.3167        .18742E-06** at limit **
  23  Prefactor     19.006        31.156       -.27231E-06   -.51199E-04
  24  Prefactor     .10000E-03    8.7871        .21106E-06** at limit **
  25  norm          6.1597        6.0921       -.79379E-09   -.39753E-04
  26  Prefactor     .10000E-03    13.383        .23980E-06** at limit **
  27  norm          .10017E-03    5.2986        .18866E-05** at limit **
  28  Normalizat    1.0285        .24208        .43130E-05   -.41787E-03
  29  Prefactor     .56626        .27892       -.84696E-05   -.28530E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 79.0508
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.21598
  Prefactor  = 19.5997
  Prefactor  = 0.0001
  Prefactor  = 122.515
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.23056
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 6.18509
  norm       = 0.0001
  Prefactor  = 3.14016
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 11.1797
  norm       = 8.05102
  norm       = 0.0001
  Prefactor  = 19.0058
  Prefactor  = 0.0001
  norm       = 6.15973
  Prefactor  = 0.0001
  norm       = 0.000100172
  Normalizat = 1.02849
  Prefactor  = 0.56626
 **********
 **   18 **HESSE 
 **********

 FCN=   3124.117     FROM HESSE     STATUS=OK           547 CALLS     4211 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     79.051        79.321        .22564E-03   -1.3927    
   2  Prefactor     .10000E-03    44.676        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    79.837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.2160        1.9196        .69942E-04   -1.5410    
   5  Prefactor     19.600        53.527        .90481E-04   -1.4822    
   6  Prefactor     .10000E-03    8.7125        .16103E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     122.52        123.17        .18173E-03   -1.3490    
   8  norm          .10000E-03    26.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.8928        .33593E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.7078        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.2306        4.0523        .19604E-03   -1.5486    
  12  Prefactor     .10000E-03    12.821        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    6.6665        .14095E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          6.1851        1.8364        .39454E-04   -1.5211    
  15  norm          .10000E-03    4.4337        .11494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.1402        4.5160        .13411E-03   -1.5354    
  17  Prefactor     .10000E-03    50.037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    2.7874        .90715E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    28.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.180        8.7777        .11982E-03   -1.5039    
  21  norm          8.0510        4.1579        .76616E-04   -1.5140    
  22  norm          .10000E-03    3.3207        .99432E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     19.006        31.145        .91890E-04   -1.4836    
  24  Prefactor     .10000E-03    8.8098        .16177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          6.1597        6.0897        .13356E-03   -1.5212    
  26  Prefactor     .10000E-03    13.391        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10017E-03    27.990        .20083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    1.0285        .24900        .19886E-03   -.92082    
  29  Prefactor     .56626        .28631        .32018E-03   -1.0903    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.52177e-09
Minuit parameter uncertainties:
  1  79.4278
  2  4.34105e-06
  3  0.000113684
  4  1.91961
  5  53.6589
  6  2.15764e-05
  7  123.433
  8  6.73265e-05
  9  8.12258e-05
  10  8.99152e-06
  11  4.0532
  12  1.14017e-06
  13  3.70272e-06
  14  1.83637
  15  5.02159e-06
  16  4.51645
  17  0.000126645
  18  1.20114e-05
  19  0.000263916
  20  8.77875
  21  4.1581
  22  1.17971e-05
  23  31.1711
  24  1.81732e-05
  25  6.09032
  26  3.05752e-05
  27  0.00438809
  28  0.249286
  29  0.287045
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.140e+00  4.516e+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:  5.663e-01  2.870e-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.028e+00  2.493e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.65
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.32e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.02e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152846/likelihoodResults_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.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) = 3123.33887668
delta logL = 0.777834940589

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3123.31894418
delta logL = 0.797767442285

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .73594       1.0000         .10000E-03   10000.    
     2 'Index     '    3.9026       1.0000          .0000       10.000    
     3 'Normalizat'    .97485       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60858       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=   3123.319     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      289 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .73523        12.194        .82347E-02    .39882E-03
   2  Index         3.9032        3.6356        .11398        .72252E-04
   3  Normalizat    .97486        .58975E-01    .45851E-01    .71466E-06
   4  Prefactor     .60854        .72467E-01    .69919E-01    .13163E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.735226
  Index      = 3.90317
  Normalizat = 0.974863
  Prefactor  = 0.60854
 **********
 **   18 **HESSE 
 **********

 FCN=   3123.319     FROM HESSE     STATUS=OK            33 CALLS      322 TOTAL
                     EDM=   .73E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .73523        7.7447        .37166E-04   -1.5536    
   2  Index         3.9032        3.4076        .44731E-02   -.22116    
   3  Normalizat    .97486        .23857        .20330E-03   -.93877    
   4  Prefactor     .60854        .28970        .30947E-03   -1.0723    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.30632e-11
Minuit parameter uncertainties:
  1  4.77292
  2  3.77252
  3  0.238829
  4  0.290414
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152846': 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) = 3123.31894407
delta logL = 0.797767547791

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.352e-01  4.773e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.903e+00  3.773e+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:  6.085e-01  2.904e-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.749e-01  2.388e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 178.350 49.517
Photon Index (Free Index): 3.90 +/- 3.77
Photon Flux (Free Index): 7.39e-08 +/- 5.96e-08
Energy Flux (Free Index): 1.13e-05 +/- 1.21e-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/152846/cmap_HighResolution_428803201_429062401_4FGL_J1153.4+4931_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.02e-02', comment='SUCCESS', energy_flux2='1.13e-05', dlogl='7.98e-01', photon_flux2='7.39e-08', job_status='DONE', time_completed='2021-09-04 15:25:38.563685', photon_index_error2='3.77', photon_index2='3.90', ts='0.65', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.32e-07', energy_flux_error2='1.21e-05', EG='1.03', time_epoch_completed='1630794338.56', return_code='0', job_id='152846', GAL2='0.61', EG2='0.97', return_code2='0', photon_flux_error2='5.96e-08', ts2='2.30', photon_index='2.41' WHERE bin_id='731' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:25:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 152846: <4FGL_J1153.4+4931_daily_bin731> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin731> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:26 2021
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 15:11:27 2021
Terminated at Sat Sep  4 15:25:41 2021
Results reported at Sat Sep  4 15:25:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin731 178.35 49.5169 428803201 429062401 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 :                                   647.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             275.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   851 sec.
    Turnaround time :                            855 sec.

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

