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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin37
RA = 178.35, Dec = 49.5169
tmin = 248918401, tmax = 249177601
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='147852', job_status='RUN', time_executed='2021-09-04 14:58:43.390026', time_epoch_executed='1630792723.39' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='37'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147852

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147852/ft1_4FGL_J1153.4+4931_daily_bin37.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147852/ft2_4FGL_J1153.4+4931_daily_bin37.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147852/ft1_4FGL_J1153.4+4931_daily_bin37.fits outfile=/scratch/kocevski/147852/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin37.fits ra=178.35 dec=49.5169 rad=12.0 tmin=248918401.0 tmax=249177601.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.04
user 1.76
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147852/ft1_filtered_4FGL_J1153.4+4931_daily_bin37.fits evtable="EVENTS" scfile=/scratch/kocevski/147852/ft2_4FGL_J1153.4+4931_daily_bin37.fits sctable="SC_DATA" expcube=/scratch/kocevski/147852/ltcube_248918401_249177601_4FGL_J1153.4+4931_daily_bin37.fits outfile=/scratch/kocevski/147852/expmap_248918401_249177601_4FGL_J1153.4+4931_daily_bin37.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/147852/ltcube_248918401_249177601_4FGL_J1153.4+4931_daily_bin37.fits
.....................!
real 190.98
user 185.29
sys 5.24

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    104.59       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    6.2901       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .30756E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    36.680       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10818E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.5326       1.0000         .10000E-03   10000.    
    15 'norm      '    9.0587       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    6.4261       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.7223       1.0000         .10000E-03   10000.    
    21 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    6.8083       1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0553       1.0000         .10000E-03   10000.    
    24 'Prefactor '    7.5164       1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    1.4540       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0448       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .90380       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=   4894.898     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3646 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     104.58        110.59       -.12281E-05    .23925E-05
   2  Prefactor     .10000E-03    56.514       -.36218E-06** at limit **
   3  Prefactor     .10000E-03    28.999        .51224E-06** at limit **
   4  norm          6.2899        2.8839        .10241E-06   -.10360E-03
   5  Prefactor     .10001E-03    169.14       -.87744E-05** at limit **
   6  Prefactor     36.644        28.630       -.14721E-05   -.41259E-03
   7  Prefactor     .10000E-03    25.829       -.43697E-06** at limit **
   8  norm          .10000E-03    14.842        .90308E-06** at limit **
   9  Prefactor     .10007E-03    7.2674        .80388E-06** at limit **
  10  Prefactor     .10000E-03    22.700       -.86010E-06** at limit **
  11  norm          .10000E-03    1.0424        .17710E-07** at limit **
  12  Prefactor     .10000E-03    13.357       -.60240E-06** at limit **
  13  norm          .10000E-03    10.484       -.43749E-06** at limit **
  14  norm          2.5325        1.0530       -.17532E-07    .37428E-04
  15  norm          9.0598        8.9446        .21753E-07   -.35655E-05
  16  Prefactor     .10000E-03    2.3105        .96662E-08** at limit **
  17  Prefactor     .10000E-03    19.531        .35233E-06** at limit **
  18  norm          6.4251        6.2992        .83572E-07   -.15061E-03
  19  Prefactor     .10000E-03    10.302        .43146E-06** at limit **
  20  Prefactor     5.7237        9.4529        .50073E-07   -.48770E-04
  21  norm          .10000E-03    .83716       -.36686E-08** at limit **
  22  norm          6.8086        9.7478        .38839E-05   -.22234E-03
  23  Prefactor     4.0506        51.730       -.95402E-05   -.48455E-04
  24  Prefactor     7.5162        7.3501       -.23031E-08   -.16272E-05
  25  norm          .10000E-03    2.3433        .10396E-07** at limit **
  26  Prefactor     .10000E-03    21.104       -.25361E-06** at limit **
  27  norm          1.4540        1.4037       -.45775E-07    .27904E-04
  28  Normalizat    1.0452        .18299        .18543E-05   -.18246E-03
  29  Prefactor     .90330        .21463       -.19247E-05    .34308E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 104.581
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.28992
  Prefactor  = 0.000100014
  Prefactor  = 36.6439
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.53254
  norm       = 9.05983
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.42509
  Prefactor  = 0.0001
  Prefactor  = 5.72368
  norm       = 0.0001
  norm       = 6.80863
  Prefactor  = 4.05057
  Prefactor  = 7.5162
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.45405
  Normalizat = 1.04517
  Prefactor  = 0.903302
 **********
 **   18 **HESSE 
 **********

 FCN=   4894.898     FROM HESSE     STATUS=OK           547 CALLS     4193 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     104.58        110.83        .39320E-04   -1.3659    
   2  Prefactor     .10000E-03    56.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    29.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          6.2899        2.8874        .76843E-04   -1.5206    
   5  Prefactor     .10001E-03    174.45        .21379E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     36.644        29.369        .66173E-04   -1.4497    
   7  Prefactor     .10000E-03    25.844        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    14.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10007E-03    52.110        .34667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    22.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.0460        .69754E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    13.395        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    10.499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.5325        1.0531        .25665E-04   -1.5390    
  15  norm          9.0598        8.9467        .13317E-03   -1.5106    
  16  Prefactor     .10000E-03    2.3800        .20752E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    19.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          6.4251        6.2821        .15833E-03   -1.5201    
  19  Prefactor     .10000E-03    10.331        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     5.7237        9.4326        .16791E-03   -1.5229    
  21  norm          .10000E-03    .84644        .62483E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          6.8086        9.9148        .76885E-03   -1.5186    
  23  Prefactor     4.0506        51.884        .20023E-03   -1.5305    
  24  Prefactor     7.5162        7.3276        .14628E-03   -1.5160    
  25  norm          .10000E-03    2.3499        .10426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    21.206        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          1.4540        1.4269        .79402E-04   -1.5467    
  28  Normalizat    1.0452        .20875        .21962E-03   -.91532    
  29  Prefactor     .90330        .24678        .28901E-03   -.96026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89804e-09
Minuit parameter uncertainties:
  1  111.05
  2  7.19344e-05
  3  8.14618e-05
  4  2.8875
  5  0.00317911
  6  29.3808
  7  7.20787e-05
  8  0.000108504
  9  0.00384262
  10  9.16245e-05
  11  4.56861e-07
  12  7.50566e-05
  13  4.08395e-05
  14  1.05307
  15  8.94802
  16  8.15196e-06
  17  4.36592e-05
  18  6.28277
  19  3.28537e-05
  20  9.43508
  21  2.65406e-06
  22  9.91716
  23  29.0246
  24  7.3285
  25  1.35113e-06
  26  3.75539e-05
  27  1.42689
  28  0.208912
  29  0.247081
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  8.152e-06  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.033e-01  2.471e-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.045e+00  2.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/147852/likelihoodResults_248918401_249177601_4FGL_J1153.4+4931_daily_bin37.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): 102
logL (Free Index) = 4894.89954762
delta logL = -0.00200302404755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4894.89754476
delta logL = -1.66533936863e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4036       1.0000          .0000       10.000    
     3 'Normalizat'    1.0452       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90332       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4894.898     FROM MIGRAD    STATUS=FAILED        89 CALLS      244 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    248.23        .20815E-03** at limit **
   2  Index         2.3700        7.6513        .50000        .22129E-04
   3  Normalizat    1.0452        .51397E-01    .21962E-03    .32146E-04
   4  Prefactor     .90330        .63586E-01    .28901E-03    .24232E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4894.898     FROM SIMPLEX   STATUS=UNCHANGED    142 CALLS      386 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10032E-03    248.23        .21994E-03** at limit **
   2  Index         2.3700        7.6513        .53450E-04    .22129E-04
   3  Normalizat    1.0452        .51397E-01    .15023E-05    .32146E-04
   4  Prefactor     .90330        .63586E-01    .17051E-05    .24232E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4894.898     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      428 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.6043        .41631E-04** at limit **
   2  Index         2.2601        5.3024        .50000        .11401E-06
   3  Normalizat    1.0452        .19680        .87848E-05   -.75577E-04
   4  Prefactor     .90330        .24345        .11560E-04   -.57629E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.26015
  Normalizat = 1.04518
  Prefactor  = 0.903298
 **********
 **   18 **HESSE 
 **********

 FCN=   4894.898     FROM HESSE     STATUS=OK            29 CALLS      457 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.4746        .83262E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2601        8.3196        .50000       -.57994    
   3  Normalizat    1.0452        .19634        .17570E-05   -.91532    
   4  Prefactor     .90330        .24284        .23121E-05   -.96026    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02149e-11
Minuit parameter uncertainties:
  1  2.21163e-07
  2  72.6713
  3  0.19648
  4  0.243134
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147852': 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) = 4894.89754406
delta logL = 5.38489075552e-07

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  2.212e-07  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.260e+00  7.267e+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.033e-01  2.431e-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.045e+00  1.965e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/147852/cmap_HighResolution_248918401_249177601_4FGL_J1153.4+4931_daily_bin37.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.16e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-09-04 15:12:00.357777', job_id='147852', GAL2='0.90', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630793520.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='5.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='37' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 147852: <4FGL_J1153.4+4931_daily_bin37> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin37> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 14:57:10 2021
Job was executed on host(s) <bullet0280>, 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:01 2021
Results reported at Sat Sep  4 15:12:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin37 178.35 49.5169 248918401 249177601 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 :                                   796.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             310.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            891 sec.

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

