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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin589
RA = 178.35, Dec = 49.5169
tmin = 391996801, tmax = 392256001
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='152593', job_status='RUN', time_executed='2021-09-04 15:14:24.640378', time_epoch_executed='1630793664.64' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152593

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152593/ft1_4FGL_J1153.4+4931_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152593/ft2_4FGL_J1153.4+4931_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152593/ft1_4FGL_J1153.4+4931_daily_bin589.fits outfile=/scratch/kocevski/152593/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin589.fits ra=178.35 dec=49.5169 rad=12.0 tmin=391996801.0 tmax=392256001.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 5.35
user 5.08
sys 0.26

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152593/ft1_filtered_4FGL_J1153.4+4931_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/152593/ft2_4FGL_J1153.4+4931_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/152593/ltcube_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.fits outfile=/scratch/kocevski/152593/expmap_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.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/152593/ltcube_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.fits
.....................!
real 193.44
user 187.72
sys 5.32

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/152593/ft1_filtered_4FGL_J1153.4+4931_daily_bin589.fits scfile=/scratch/kocevski/152593/ft2_4FGL_J1153.4+4931_daily_bin589.fits outfile=/scratch/kocevski/152593/cmap_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152593/ft1_filtered_4FGL_J1153.4+4931_daily_bin589.fits scfile=/scratch/kocevski/152593/ft2_4FGL_J1153.4+4931_daily_bin589.fits outfile=/scratch/kocevski/152593/cmap_HighResolution_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11497E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.492       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    45.124       1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    30.107       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.9476       1.0000         .10000E-03   10000.    
    15 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.0986       1.0000         .10000E-03   10000.    
    17 'Prefactor '    42.735       1.0000         .10000E-03   10000.    
    18 'norm      '    .52456       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5243       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10237E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    16.726       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3450       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    4.6941       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.1859       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .60879       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=   5082.017     FROM MIGRAD    STATUS=CONVERGED    762 CALLS     3730 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.492       -.48864E-04** at limit **
   2  Prefactor     .10000E-03    34.206        .27787E-04** at limit **
   3  Prefactor     .10000E-03    387.59       -.52660E-04** at limit **
   4  norm          .10000E-03    1.1080       -.67210E-07** at limit **
   5  Prefactor     .10000E-03    39.343       -.34419E-05** at limit **
   6  Prefactor     12.486        17.493        .74507E-06   -.20568E-04
   7  Prefactor     .10000E-03    66.160        .41871E-04** at limit **
   8  norm          .10000E-03    16.286        .27665E-05** at limit **
   9  Prefactor     .10000E-03    1.7839        .67123E-07** at limit **
  10  Prefactor     45.143        31.611       -.77127E-05   -.15396E-03
  11  norm          .10000E-03    1.5281       -.39208E-09** at limit **
  12  Prefactor     30.111        32.970       -.18250E-05    .20607E-05
  13  norm          .10000E-03    6.8465       -.13996E-07** at limit **
  14  norm          2.9476        1.2197        .11009E-07    .17073E-04
  15  norm          .10000E-03    4.1204       -.20017E-07** at limit **
  16  Prefactor     9.0985        4.6870       -.70190E-06   -.24161E-02
  17  Prefactor     42.736        49.895        .12114E-06    .21524E-05
  18  norm          .51624        3.4801        .17199E-05   -.73452E-03
  19  Prefactor     4.5237        34.114        .32537E-05   -.27727E-04
  20  Prefactor     .10000E-03    14.074       -.17975E-05** at limit **
  21  norm          .10000E-03    1.1353       -.57658E-07** at limit **
  22  norm          .10000E-03    4.9693       -.20572E-07** at limit **
  23  Prefactor     16.724        16.048       -.26891E-06    .42516E-04
  24  Prefactor     .10000E-03    2.2833       -.43396E-08** at limit **
  25  norm          3.3450        2.6616       -.97300E-08    .57266E-04
  26  Prefactor     .10000E-03    26.704       -.12014E-04** at limit **
  27  norm          4.6941        2.3676       -.14885E-07    .12317E-03
  28  Normalizat    1.1858        .17382        .11395E-05   -.42796E-04
  29  Prefactor     .60885        .20746       -.42874E-06    .14101E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.4861
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1431
  norm       = 0.0001
  Prefactor  = 30.1111
  norm       = 0.0001
  norm       = 2.94762
  norm       = 0.0001
  Prefactor  = 9.09853
  Prefactor  = 42.7356
  norm       = 0.516241
  Prefactor  = 4.52367
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 16.7238
  Prefactor  = 0.0001
  norm       = 3.34498
  Prefactor  = 0.0001
  norm       = 4.69408
  Normalizat = 1.18584
  Prefactor  = 0.60885
 **********
 **   18 **HESSE 
 **********

 FCN=   5082.017     FROM HESSE     STATUS=OK           551 CALLS     4281 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    34.137        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    390.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6213        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.479        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.486        17.011        .11333E-03   -1.5001    
   7  Prefactor     .10000E-03    66.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    16.286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1.7874        .92967E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     45.143        31.622        .59685E-04   -1.4363    
  11  norm          .10000E-03    1.5434        .86007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     30.111        32.957        .73020E-04   -1.4610    
  13  norm          .10000E-03    6.8470        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.9476        1.2217        .46743E-04   -1.5365    
  15  norm          .10000E-03    4.1265        .14132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     9.0985        4.6826        .47411E-03   -1.5105    
  17  Prefactor     42.736        49.958        .61324E-04   -1.4400    
  18  norm          .51624        18.440        .24385E-02   -1.5564    
  19  Prefactor     4.5237        33.505        .18927E-03   -1.5283    
  20  Prefactor     .10000E-03    14.328        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    3.7741        .14592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    5.0537        .15503E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     16.724        16.044        .97933E-04   -1.4890    
  24  Prefactor     .10000E-03    2.2921        .10518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3450        2.6629        .10113E-03   -1.5342    
  26  Prefactor     .10000E-03    26.885        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          4.6941        2.3699        .75761E-04   -1.5275    
  28  Normalizat    1.1858        .19840        .19901E-03   -.87041    
  29  Prefactor     .60885        .23422        .32923E-03   -1.0721    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.74014e-09
Minuit parameter uncertainties:
  1  1.42202e-05
  2  2.23234e-06
  3  0.000507695
  4  8.96879e-06
  5  6.17404e-06
  6  17.018
  7  3.99965e-05
  8  8.47489e-07
  9  7.98268e-06
  10  31.6341
  11  1.14548e-06
  12  32.9773
  13  3.93306e-06
  14  1.22168
  15  7.65582e-07
  16  4.68281
  17  50.0065
  18  6.17219
  19  24.6416
  20  7.5044e-05
  21  1.02092e-05
  22  1.96884e-06
  23  16.0482
  24  1.51697e-06
  25  2.66301
  26  1.70527e-05
  27  2.36996
  28  0.198528
  29  0.234591
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  9.099e+00  4.683e+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:  6.089e-01  2.346e-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.186e+00  1.985e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.89
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 4.58e-08
Energy Flux (Fixed Index): 2.87e-05 +/- 1.48e-05

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) = 5082.00435299
delta logL = 0.0126283750551

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5081.99441251
delta logL = 0.0225688483606

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.8723       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3161       1.0000          .0000       10.000    
     3 'Normalizat'    1.1919       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .60273       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=   5081.994     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      206 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.8746        92.050        .31884E-02    .10595E-03
   2  Index         2.3160        3.5375        .12908        .74222E-04
   3  Normalizat    1.1919        .10260        .35093E-01   -.35261E-04
   4  Prefactor     .60263        .12232        .74708E-01    .13293E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.87462
  Index      = 2.31597
  Normalizat = 1.19194
  Prefactor  = 0.602632
 **********
 **   18 **HESSE 
 **********

 FCN=   5081.994     FROM HESSE     STATUS=OK            31 CALLS      237 TOTAL
                     EDM=   .41E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.8746        5.8613        .99434E-04   -1.5079    
   2  Index         2.3160        .45350        .51326E-02   -.56665    
   3  Normalizat    1.1919        .19374        .19858E-03   -.86852    
   4  Prefactor     .60263        .23539        .33075E-03   -1.0748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05343e-12
Minuit parameter uncertainties:
  1  5.86165
  2  0.454374
  3  0.193852
  4  0.235772
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152593': 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) = 5081.99441234
delta logL = 0.0225690200241

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  9.875e+00  5.862e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.316e+00  4.544e-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:  6.026e-01  2.358e-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.192e+00  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.90
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.32 +/- 0.45
Photon Flux (Free Index): 8.53e-08 +/- 4.36e-08
Energy Flux (Free Index): 3.15e-05 +/- 2.10e-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/152593/cmap_HighResolution_391996801_392256001_4FGL_J1153.4+4931_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='3.15e-05', photon_flux_error='4.58e-08', dlogl='2.26e-02', energy_flux='2.87e-05', photon_flux2='8.53e-08', job_status='DONE', time_completed='2021-09-04 15:26:44.563587', photon_index_error2='0.45', photon_index2='2.32', ts='8.89', fit_tolerance='1e-08', GAL='0.61', photon_index_error='0.00', energy_flux_error2='2.10e-05', EG='1.19', time_epoch_completed='1630794404.56', return_code='0', job_id='152593', GAL2='0.60', EG2='1.19', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='4.36e-08', ts2='8.90', photon_index='2.41' WHERE bin_id='589' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 152593: <4FGL_J1153.4+4931_daily_bin589> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin589 178.35 49.5169 391996801 392256001 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 :                                   736.44 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             289.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

