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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin786
RA = 178.35, Dec = 49.5169
tmin = 443059201, tmax = 443318401
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='152935', job_status='RUN', time_executed='2021-09-04 15:11:42.620868', time_epoch_executed='1630793502.62' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152935

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152935/ft1_4FGL_J1153.4+4931_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152935/ft2_4FGL_J1153.4+4931_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152935/ft1_4FGL_J1153.4+4931_daily_bin786.fits outfile=/scratch/kocevski/152935/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin786.fits ra=178.35 dec=49.5169 rad=12.0 tmin=443059201.0 tmax=443318401.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 3.80
user 3.59
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152935/ft1_filtered_4FGL_J1153.4+4931_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/152935/ft2_4FGL_J1153.4+4931_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/152935/ltcube_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.fits outfile=/scratch/kocevski/152935/expmap_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.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/152935/ltcube_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.fits
.....................!
real 190.87
user 185.17
sys 5.38

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/152935/ft1_filtered_4FGL_J1153.4+4931_daily_bin786.fits scfile=/scratch/kocevski/152935/ft2_4FGL_J1153.4+4931_daily_bin786.fits outfile=/scratch/kocevski/152935/cmap_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152935/ft1_filtered_4FGL_J1153.4+4931_daily_bin786.fits scfile=/scratch/kocevski/152935/ft2_4FGL_J1153.4+4931_daily_bin786.fits outfile=/scratch/kocevski/152935/cmap_HighResolution_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.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.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10128E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    105.66       1.0000         .10000E-03   10000.    
     4 'norm      '    2.5211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    73.105       1.0000         .10000E-03   10000.    
     8 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5960       1.0000         .10000E-03   10000.    
    10 'Prefactor '    44.532       1.0000         .10000E-03   10000.    
    11 'norm      '    .10816E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    71.640       1.0000         .10000E-03   10000.    
    13 'norm      '    .10027E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8516       1.0000         .10000E-03   10000.    
    15 'norm      '    .43785E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23031       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1078       1.0000         .10000E-03   10000.    
    19 'Prefactor '    13.865       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.668       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5332       1.0000         .10000E-03   10000.    
    22 'norm      '    .70476       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.9336       1.0000         .10000E-03   10000.    
    26 'Prefactor '    14.534       1.0000         .10000E-03   10000.    
    27 'norm      '    2.8610       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .95298       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .87853       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=   5450.493     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3739 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10006E-03    51.692       -.25507E-05** at limit **
   2  Prefactor     .10003E-03    63.536        .17512E-05** at limit **
   3  Prefactor     105.68        101.26        .15016E-05    .14130E-03
   4  norm          2.5213        1.8965       -.22832E-07    .72853E-04
   5  Prefactor     .10000E-03    28.050       -.17389E-06** at limit **
   6  Prefactor     .10000E-03    8.2812       -.18633E-06** at limit **
   7  Prefactor     73.104        74.648        .19676E-06   -.30729E-04
   8  norm          .10000E-03    14.679        .33623E-08** at limit **
   9  Prefactor     2.5949        6.6801        .64537E-05   -.50512E-04
  10  Prefactor     44.542        30.294       -.25080E-05   -.31327E-03
  11  norm          .10000E-03    1.7074       -.23785E-06** at limit **
  12  Prefactor     71.607        53.841        .11180E-05    .18621E-03
  13  norm          .10000E-03    6.8791       -.11742E-06** at limit **
  14  norm          1.8517        1.3853        .20760E-06    .21240E-02
  15  norm          .10392E-03    5.8234       -.24129E-05** at limit **
  16  Prefactor     .23439        4.8545        .80323E-05   -.22912E-03
  17  Prefactor     .10001E-03    40.280        .88838E-06** at limit **
  18  norm          3.1093        5.0890        .33720E-05    .87692E-04
  19  Prefactor     13.864        15.810       -.10125E-05   -.49478E-04
  20  Prefactor     13.668        8.5651       -.82976E-06   -.23302E-04
  21  norm          1.5333        1.7304       -.30843E-08   -.21872E-03
  22  norm          .70226        5.9382        .11693E-05   -.91445E-05
  23  Prefactor     .10000E-03    7.6391       -.42302E-08** at limit **
  24  Prefactor     .10000E-03    2.5797       -.72799E-08** at limit **
  25  norm          3.9337        2.8128        .51447E-07   -.73664E-06
  26  Prefactor     14.534        12.770        .16653E-06   -.36616E-04
  27  norm          2.8613        2.2308        .10836E-06   -.18045E-04
  28  Normalizat    .95293        .16896       -.19132E-05    .16551E-03
  29  Prefactor     .87844        .20012       -.22298E-06    .27104E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100056
  Prefactor  = 0.00010003
  Prefactor  = 105.679
  norm       = 2.52132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.1038
  norm       = 0.0001
  Prefactor  = 2.59494
  Prefactor  = 44.5423
  norm       = 0.0001
  Prefactor  = 71.6071
  norm       = 0.0001
  norm       = 1.85171
  norm       = 0.000103924
  Prefactor  = 0.234394
  Prefactor  = 0.000100008
  norm       = 3.10935
  Prefactor  = 13.8641
  Prefactor  = 13.6677
  norm       = 1.53328
  norm       = 0.702256
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.93372
  Prefactor  = 14.5342
  norm       = 2.8613
  Normalizat = 0.952934
  Prefactor  = 0.87844
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.493     FROM HESSE     STATUS=OK           565 CALLS     4304 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10006E-03    52.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10003E-03    64.198        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     105.68        101.54        .39121E-04   -1.3648    
   4  norm          2.5213        1.9001        .85797E-04   -1.5390    
   5  Prefactor     .10000E-03    28.083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    8.2894        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     73.104        74.663        .46956E-04   -1.3996    
   8  norm          .10000E-03    14.679        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5949        7.2450        .12661E-02   -1.5386    
  10  Prefactor     44.542        30.710        .60079E-04   -1.4372    
  11  norm          .10000E-03    19.323        .18426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     71.607        53.342        .47430E-04   -1.4014    
  13  norm          .10000E-03    6.8805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8517        1.3761        .62323E-04   -1.5436    
  15  norm          .10392E-03    8.6922        .63777E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .23439        10.658        .18429E-02   -1.5611    
  17  Prefactor     .10001E-03    40.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1093        5.2859        .10036E-02   -1.5355    
  19  Prefactor     13.864        15.790        .10757E-03   -1.4963    
  20  Prefactor     13.668        8.5971        .10834E-03   -1.4968    
  21  norm          1.5333        1.7120        .98557E-04   -1.5460    
  22  norm          .70226        5.9915        .34613E-03   -1.5540    
  23  Prefactor     .10000E-03    7.6562        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.5942        .11572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.9337        2.8129        .10179E-03   -1.5311    
  26  Prefactor     14.534        12.778        .10506E-03   -1.4945    
  27  norm          2.8613        2.2277        .93848E-04   -1.5370    
  28  Normalizat    .95293        .19996        .21979E-03   -.94624    
  29  Prefactor     .87844        .23757        .28461E-03   -.96899    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.74333e-09
Minuit parameter uncertainties:
  1  0.0034613
  2  0.00276231
  3  101.71
  4  1.90015
  5  0.000149941
  6  4.72714e-05
  7  74.7588
  8  3.51213e-06
  9  7.24744
  10  30.7209
  11  7.44023e-05
  12  53.3773
  13  2.53398e-05
  14  1.37612
  15  0.0116826
  16  3.16099
  17  0.00111328
  18  5.28674
  19  15.7943
  20  8.5979
  21  1.71207
  22  4.10273
  23  7.84321e-06
  24  4.84795e-07
  25  2.813
  26  12.7804
  27  2.22781
  28  0.200117
  29  0.237847
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.344e-01  3.161e+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:  8.784e-01  2.378e-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.529e-01  2.001e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/152935/likelihoodResults_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.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) = 5450.33846455
delta logL = 0.154200686991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5450.31243124
delta logL = 0.180234001308

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .46661       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5289       1.0000          .0000       10.000    
     3 'Normalizat'    .92655       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89441       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5450.312     FROM MIGRAD    STATUS=FAILED        91 CALLS      262 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46767        4.6745        .22267E-03    .41699E-03
   2  Index         3.5278        3.2314        .86273E-02    .26517E-03
   3  Normalizat    .92639        .19338        .22260E-03   -.15271E-04
   4  Prefactor     .89453        .23758        .28204E-03   -.10883E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5450.312     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      346 TOTAL
                     EDM=   .16E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46767        4.6745        .78905E-04   -1.5571    
   2  Index         3.5278        3.2314        .12420E-02   -.29888    
   3  Normalizat    .92639        .19338        .36370E-03   -.95539    
   4  Prefactor     .89453        .23758        .36205E-03   -.96332    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5450.312     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      377 TOTAL
                     EDM=   .80E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .46767        1.5737        .44535E-04   -.21188E-04
   2  Index         3.5278        1.8387        .17255E-02   -.10806E-05
   3  Normalizat    .92639        .19370        .89038E-05   -.15067E-04
   4  Prefactor     .89453        .23732        .11281E-04   -.12093E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.467668
  Index      = 3.52777
  Normalizat = 0.926394
  Prefactor  = 0.894532
 **********
 **   18 **HESSE 
 **********

 FCN=   5450.312     FROM HESSE     STATUS=OK            23 CALLS      400 TOTAL
                     EDM=   .86E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .46767        1.4659        .17814E-05   -1.5571    
   2  Index         3.5278        1.7181        .69018E-04   -.29888    
   3  Normalizat    .92639        .19355        .17808E-05   -.95539    
   4  Prefactor     .89453        .23707        .22563E-05   -.96332    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.63109e-13
Minuit parameter uncertainties:
  1  1.46604
  2  1.75741
  3  0.193691
  4  0.237339
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152935': 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) = 5450.31243063
delta logL = 0.180234615932

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.677e-01  1.466e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.528e+00  1.757e+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:  8.945e-01  2.373e-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.264e-01  1.937e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.01
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/152935/cmap_HighResolution_443059201_443318401_4FGL_J1153.4+4931_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.03e-03', job_status='DONE', photon_flux_upper_limit='7.80e-08', time_completed='2021-09-04 15:26:13.980445', job_id='152935', GAL2='0.89', fit_tolerance='1e-08', EG2='0.93', EG='0.95', time_epoch_completed='1630794373.98', return_code2='0', ts='0.01', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.80e-01', ts2='0.38', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='786' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0256>
Subject: Job 152935: <4FGL_J1153.4+4931_daily_bin786> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin786 178.35 49.5169 443059201 443318401 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 :                                   869.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             337.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

