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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin549
RA = 178.35, Dec = 49.5169
tmin = 381628801, tmax = 381888001
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='152503', job_status='RUN', time_executed='2021-09-04 15:13:19.796507', time_epoch_executed='1630793599.8' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='549'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152503

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152503/ft1_4FGL_J1153.4+4931_daily_bin549.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152503/ft2_4FGL_J1153.4+4931_daily_bin549.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152503/ft1_4FGL_J1153.4+4931_daily_bin549.fits outfile=/scratch/kocevski/152503/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin549.fits ra=178.35 dec=49.5169 rad=12.0 tmin=381628801.0 tmax=381888001.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.96
user 3.74
sys 0.20

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

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

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152503/ft1_filtered_4FGL_J1153.4+4931_daily_bin549.fits evtable="EVENTS" scfile=/scratch/kocevski/152503/ft2_4FGL_J1153.4+4931_daily_bin549.fits sctable="SC_DATA" expcube=/scratch/kocevski/152503/ltcube_381628801_381888001_4FGL_J1153.4+4931_daily_bin549.fits outfile=/scratch/kocevski/152503/expmap_381628801_381888001_4FGL_J1153.4+4931_daily_bin549.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/152503/ltcube_381628801_381888001_4FGL_J1153.4+4931_daily_bin549.fits
.....................!
real 191.46
user 185.33
sys 5.74

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152503/ft1_filtered_4FGL_J1153.4+4931_daily_bin549.fits scfile=/scratch/kocevski/152503/ft2_4FGL_J1153.4+4931_daily_bin549.fits outfile=/scratch/kocevski/152503/cmap_HighResolution_381628801_381888001_4FGL_J1153.4+4931_daily_bin549.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.40
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.640       1.0000         .10000E-03   10000.    
     4 'norm      '    .10744E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10557E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   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 '    .13676E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.8861       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.9071       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.161       1.0000         .10000E-03   10000.    
    18 'norm      '    .22789E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.5792       1.0000         .10000E-03   10000.    
    21 'norm      '    .71027       1.0000         .10000E-03   10000.    
    22 'norm      '    2.4172       1.0000         .10000E-03   10000.    
    23 'Prefactor '    12.240       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.9517       1.0000         .10000E-03   10000.    
    25 'norm      '    6.8582       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .62651       1.0000         .10000E-03   10000.    
    27 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71408       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0434       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.

 FCN=   5118.582     FROM MIGRAD    STATUS=CONVERGED   1385 CALLS     4394 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.971        .18142E-02** at limit **
   2  Prefactor     .10000E-03    113.62        .18142E-02** at limit **
   3  Prefactor     19.314        144.01        .90377E-04    .11070E-04
   4  norm          .10000E-03    2.4774        .14354E-02** at limit **
   5  Prefactor     .10000E-03    82.847        .18142E-02** at limit **
   6  Prefactor     .10000E-03    4.6812        .15113E-02** at limit **
   7  Prefactor     .10000E-03    25.240        .18142E-02** at limit **
   8  norm          .10000E-03    12.798        .18142E-02** at limit **
   9  Prefactor     .10000E-03    17.956        .21097E-02** at limit **
  10  Prefactor     .10000E-03    7.4363        .18142E-02** at limit **
  11  norm          .10000E-03    .90863        .66501E-03** at limit **
  12  Prefactor     .10000E-03    33.242        .18142E-02** at limit **
  13  norm          .10000E-03    13.086        .18142E-02** at limit **
  14  norm          .10000E-03    .61230        .88616E-03** at limit **
  15  norm          3.8868        10.037        .20468E-03   -.31993E-03
  16  Prefactor     6.9045        3.5880        .46299E-03    .41497E-03
  17  Prefactor     56.143        52.069        .53528E-04   -.36445E-03
  18  norm          .10000E-03    23.313        .21219E-02** at limit **
  19  Prefactor     .10000E-03    46.141        .18142E-02** at limit **
  20  Prefactor     6.5812        6.9825        .15645E-03   -.16328E-03
  21  norm          .70991        1.7235        .13782E-03    .10542E-03
  22  norm          2.4109        6.4425        .13164E-02    .58355E-04
  23  Prefactor     12.253        21.154        .11450E-03   -.88368E-04
  24  Prefactor     1.9509        5.3520        .24869E-03   -.86401E-05
  25  norm          6.8578        3.6136        .89924E-04   -.61949E-04
  26  Prefactor     .48359        258.58        .56992E-02   -.35912E-04
  27  norm          .10000E-03    3.3190        .16446E-02** at limit **
  28  Normalizat    .71467        .18527        .22111E-03   -.83404E-03
  29  Prefactor     1.0430        .22806        .23973E-03   -.65237E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 19.3143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  norm       = 3.88684
  Prefactor  = 6.90446
  Prefactor  = 56.1433
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 6.58115
  norm       = 0.709908
  norm       = 2.41093
  Prefactor  = 12.2532
  Prefactor  = 1.95091
  norm       = 6.85779
  Prefactor  = 0.483595
  norm       = 0.0001
  Normalizat = 0.714671
  Prefactor  = 1.04298
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.582     FROM HESSE     STATUS=OK           527 CALLS     4921 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.972        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    113.62        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     19.314        143.11        .36151E-05   -1.4829    
   4  norm          .10000E-03    2.4919        .28709E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    82.872        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.6813        .30226E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.240        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.798        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    18.216        .42194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.4367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .90864        .13300E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    33.248        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.088        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    .61274        .17723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.8868        10.036        .81873E-05   -1.5314    
  16  Prefactor     6.9045        3.5851        .18520E-04   -1.5182    
  17  Prefactor     56.143        52.046        .10706E-04   -1.4208    
  18  norm          .10000E-03    23.512        .42438E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    46.162        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.5812        6.9736        .62581E-05   -1.5195    
  21  norm          .70991        1.7221        .55129E-05   -1.5539    
  22  norm          2.4109        6.4252        .52656E-04   -1.5397    
  23  Prefactor     12.253        21.009        .45800E-05   -1.5008    
  24  Prefactor     1.9509        5.3501        .99475E-05   -1.5429    
  25  norm          6.8578        3.6127        .35970E-05   -1.5184    
  26  Prefactor     .48359        256.26        .22797E-03   -1.5569    
  27  norm          .10000E-03    3.3390        .32891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71467        .18416        .44221E-04   -1.0332    
  29  Prefactor     1.0430        .22812        .47947E-04   -.91310    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84333e-09
Minuit parameter uncertainties:
  1  0.000140288
  2  0.00112492
  3  105.504
  4  4.69655e-06
  5  0.000253272
  6  2.65146e-06
  7  3.7647e-05
  8  1.39106e-08
  9  0.000511745
  10  5.40966e-06
  11  4.26936e-07
  12  0.000166687
  13  1.58993e-05
  14  3.63062e-05
  15  10.0401
  16  3.58526
  17  52.0883
  18  0.000234137
  19  0.00091223
  20  6.97448
  21  1.7222
  22  6.42708
  23  21.0213
  24  5.35138
  25  3.61279
  26  22.3587
  27  1.20335e-05
  28  0.184319
  29  0.228334
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  6.904e+00  3.585e+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:  1.043e+00  2.283e-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:  7.147e-01  1.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.01
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.76e-08 +/- 3.51e-08
Energy Flux (Fixed Index): 2.18e-05 +/- 1.13e-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) = 5118.46454081
delta logL = 0.117037220656

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5118.45844096
delta logL = 0.123137071697

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.4696       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6934       1.0000          .0000       10.000    
     3 'Normalizat'    .69497       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0617       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=   5118.458     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      250 TOTAL
                     EDM=   .57E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.4710        48.129        .42952E-02    .27727E-03
   2  Index         2.6934        3.4111        .12796        .12890E-03
   3  Normalizat    .69505        .74505E-01    .42223E-01   -.82270E-04
   4  Prefactor     1.0614        .79821E-01    .39270E-01   -.18200E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.47097
  Index      = 2.69336
  Normalizat = 0.695054
  Prefactor  = 1.06139
 **********
 **   18 **HESSE 
 **********

 FCN=   5118.458     FROM HESSE     STATUS=OK            31 CALLS      281 TOTAL
                     EDM=   .91E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.4710        4.6668        .78774E-04   -1.5240    
   2  Index         2.6934        .64849        .49495E-02   -.47949    
   3  Normalizat    .69505        .17986        .22389E-03   -1.0409    
   4  Prefactor     1.0614        .22870        .23793E-03   -.90710    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.08087e-11
Minuit parameter uncertainties:
  1  4.66709
  2  0.650818
  3  0.18001
  4  0.228915
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152503': 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) = 5118.45843911
delta logL = 0.123138921419

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  5.471e+00  4.667e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.693e+00  6.508e-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:  1.061e+00  2.289e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  6.951e-01  1.800e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.25
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.69 +/- 0.65
Photon Flux (Free Index): 7.94e-08 +/- 4.43e-08
Energy Flux (Free Index): 1.92e-05 +/- 1.08e-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/152503/cmap_HighResolution_381628801_381888001_4FGL_J1153.4+4931_daily_bin549.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.76e-08', energy_flux2='1.92e-05', photon_flux_error='3.51e-08', dlogl='1.23e-01', energy_flux='2.18e-05', photon_flux2='7.94e-08', job_status='DONE', time_completed='2021-09-04 15:26:05.213602', photon_index_error2='0.65', photon_index2='2.69', ts='7.01', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='1.08e-05', EG='0.71', time_epoch_completed='1630794365.21', return_code='0', job_id='152503', GAL2='1.06', EG2='0.70', return_code2='0', energy_flux_error='1.13e-05', photon_flux_error2='4.43e-08', ts2='7.25', photon_index='2.41' WHERE bin_id='549' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 152503: <4FGL_J1153.4+4931_daily_bin549> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin549 178.35 49.5169 381628801 381888001 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 :                                   763.25 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             275.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            901 sec.

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

