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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin54
RA = 178.35, Dec = 49.5169
tmin = 253324801, tmax = 253584001
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='147879', job_status='RUN', time_executed='2021-09-04 15:00:33.095956', time_epoch_executed='1630792833.1' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='54'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/147879

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/147879/ft1_4FGL_J1153.4+4931_daily_bin54.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/147879/ft1_4FGL_J1153.4+4931_daily_bin54.fits outfile=/scratch/kocevski/147879/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin54.fits ra=178.35 dec=49.5169 rad=12.0 tmin=253324801.0 tmax=253584001.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 1.41
user 1.24
sys 0.15

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/147879/ft1_filtered_4FGL_J1153.4+4931_daily_bin54.fits" evtable="EVENTS" scfile=/scratch/kocevski/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits sctable="SC_DATA" outfile=/scratch/kocevski/147879/ltcube_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.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/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits
.....................!
real 12.71
user 12.34
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/147879/ft1_filtered_4FGL_J1153.4+4931_daily_bin54.fits evtable="EVENTS" scfile=/scratch/kocevski/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits sctable="SC_DATA" expcube=/scratch/kocevski/147879/ltcube_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.fits outfile=/scratch/kocevski/147879/expmap_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.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/147879/ltcube_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.fits
.....................!
real 191.72
user 185.71
sys 3.71

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/147879/ft1_filtered_4FGL_J1153.4+4931_daily_bin54.fits scfile=/scratch/kocevski/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits outfile=/scratch/kocevski/147879/cmap_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.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/147879/ft1_filtered_4FGL_J1153.4+4931_daily_bin54.fits scfile=/scratch/kocevski/147879/ft2_4FGL_J1153.4+4931_daily_bin54.fits outfile=/scratch/kocevski/147879/cmap_HighResolution_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.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.55
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.9575       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10328E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.3636       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16859E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.1534       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.1550       1.0000         .10000E-03   10000.    
    15 'norm      '    11.426       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.1224       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    8.0471       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.8550       1.0000         .10000E-03   10000.    
    22 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.3490       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    2.4647       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.0090       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .65610       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=   4749.140     FROM MIGRAD    STATUS=CONVERGED    741 CALLS     3134 TOTAL
                     EDM=   .86E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.9699        61.291        .48368E-05    .72454E-04
   2  Prefactor     .10004E-03    166.83        .10250E-04** at limit **
   3  Prefactor     .10001E-03    47.188       -.55781E-05** at limit **
   4  norm          4.3641        2.0845       -.32231E-07   -.10498E-04
   5  Prefactor     .10005E-03    186.57       -.13108E-04** at limit **
   6  Prefactor     .10000E-03    5.7537       -.55613E-07** at limit **
   7  Prefactor     .10000E-03    26.933        .59186E-06** at limit **
   8  norm          .10000E-03    25.679       -.14928E-05** at limit **
   9  Prefactor     6.1540        5.6020        .20540E-05   -.13724E-02
  10  Prefactor     .10000E-03    7.6893       -.32386E-06** at limit **
  11  norm          .10000E-03    1.3011        .92963E-08** at limit **
  12  Prefactor     .10000E-03    7.3278       -.67102E-07** at limit **
  13  norm          .10000E-03    7.2960        .13075E-06** at limit **
  14  norm          1.1549        .82958        .33569E-07   -.14155E-03
  15  norm          11.425        10.621        .31431E-07   -.27021E-04
  16  Prefactor     6.1222        4.1457        .80309E-07   -.68097E-04
  17  Prefactor     .10000E-03    62.441        .38071E-05** at limit **
  18  norm          8.0480        5.3517       -.39581E-07    .12721E-04
  19  Prefactor     .10000E-03    14.543       -.20467E-07** at limit **
  20  Prefactor     .10000E-03    14.153       -.24203E-06** at limit **
  21  norm          1.8550        1.8340        .37863E-07   -.10363E-03
  22  norm          .10000E-03    7.7363        .21513E-06** at limit **
  23  Prefactor     .10000E-03    15.645        .49428E-06** at limit **
  24  Prefactor     .10000E-03    2.4043        .91230E-08** at limit **
  25  norm          3.3489        2.6170       -.73659E-09    .23088E-04
  26  Prefactor     .10000E-03    34.509        .31455E-05** at limit **
  27  norm          2.4646        1.8499        .15839E-07   -.83139E-05
  28  Normalizat    1.0089        .15748       -.65703E-06    .28394E-04
  29  Prefactor     .65620        .18888        .27979E-07   -.33243E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.96986
  Prefactor  = 0.000100036
  Prefactor  = 0.000100011
  norm       = 4.36415
  Prefactor  = 0.000100055
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 6.15399
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.15487
  norm       = 11.4254
  Prefactor  = 6.12216
  Prefactor  = 0.000100005
  norm       = 8.048
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85497
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.34891
  Prefactor  = 0.000100003
  norm       = 2.46461
  Normalizat = 1.00891
  Prefactor  = 0.656201
 **********
 **   18 **HESSE 
 **********

 FCN=   4749.140     FROM HESSE     STATUS=OK           547 CALLS     3681 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.9699        62.548        .12698E-03   -1.5076    
   2  Prefactor     .10004E-03    172.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    48.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.3641        2.0870        .67002E-04   -1.5290    
   5  Prefactor     .10005E-03    197.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.7574        .16145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    26.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    25.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.1540        6.2658        .80920E-03   -1.5212    
  10  Prefactor     .10000E-03    7.7012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.3275        .76753E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.3293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    7.2989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.1549        .81639        .51092E-04   -1.5493    
  15  norm          11.425        10.620        .11852E-03   -1.5032    
  16  Prefactor     6.1222        4.1490        .10859E-03   -1.5213    
  17  Prefactor     .10000E-03    63.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          8.0480        5.3318        .12500E-03   -1.5141    
  19  Prefactor     .10000E-03    14.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.490        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.8550        1.8210        .89153E-04   -1.5436    
  22  norm          .10000E-03    7.9436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.4101        .10435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.3489        2.6201        .96106E-04   -1.5342    
  26  Prefactor     .10000E-03    35.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          2.4646        1.8513        .79014E-04   -1.5394    
  28  Normalizat    1.0089        .18555        .19648E-03   -.92732    
  29  Prefactor     .65620        .22126        .29255E-03   -1.0527    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.28564e-09
Minuit parameter uncertainties:
  1  50.0209
  2  0.00501069
  3  0.0014533
  4  2.08707
  5  0.00659004
  6  4.4903e-06
  7  0.000113727
  8  0.000281326
  9  6.26644
  10  3.28984e-05
  11  6.7781e-07
  12  6.64393e-06
  13  1.29995e-05
  14  0.816397
  15  10.6213
  16  4.14924
  17  0.0011187
  18  5.33209
  19  1.30622e-06
  20  3.23492e-05
  21  1.8211
  22  2.10568e-05
  23  7.10324e-05
  24  7.96064e-07
  25  2.62017
  26  0.000668543
  27  1.85134
  28  0.185667
  29  0.221554
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  6.122e+00  4.149e+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.562e-01  2.216e-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.009e+00  1.857e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.08
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.00e-08 +/- 4.06e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/147879/likelihoodResults_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4748.50918874
delta logL = 0.631102868631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4748.50157304
delta logL = 0.638718576211

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5176       1.0000         .10000E-03   10000.    
     2 'Index     '    3.2397       1.0000          .0000       10.000    
     3 'Normalizat'    .96980       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69451       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=   4748.502     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      275 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5172        5.1749        .60397E-04   -.36686E-03
   2  Index         3.2398        1.2559        .44899E-02   -.87870E-04
   3  Normalizat    .96980        .18562        .19981E-03   -.48761E-03
   4  Prefactor     .69451        .22550        .28499E-03   -.36689E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.51724
  Index      = 3.23981
  Normalizat = 0.969802
  Prefactor  = 0.694508
 **********
 **   18 **HESSE 
 **********

 FCN=   4748.502     FROM HESSE     STATUS=OK            25 CALLS      300 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5172        3.7422        .24159E-05   -1.5391    
   2  Index         3.2398        .91277        .17960E-03   -.35975    
   3  Normalizat    .96980        .18485        .39962E-04   -.94049    
   4  Prefactor     .69451        .22359        .56998E-04   -1.0374    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.21988e-10
Minuit parameter uncertainties:
  1  3.74256
  2  0.918657
  3  0.184973
  4  0.223875
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/147879': 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) = 4748.50157303
delta logL = 0.638718586122

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  2.517e+00  3.743e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  3.240e+00  9.187e-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.945e-01  2.239e-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.698e-01  1.850e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.40
Ra Dec: 178.350 49.517
Photon Index (Free Index): 3.24 +/- 0.92
Photon Flux (Free Index): 8.45e-08 +/- 5.04e-08
Energy Flux (Free Index): 1.52e-05 +/- 9.62e-06

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/147879/cmap_HighResolution_253324801_253584001_4FGL_J1153.4+4931_daily_bin54.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.09e-02', comment='SUCCESS', photon_flux='6.00e-08', energy_flux2='1.52e-05', photon_flux_error='4.06e-08', dlogl='6.39e-01', energy_flux='1.93e-05', photon_flux2='8.45e-08', job_status='DONE', time_completed='2021-09-04 15:12:38.268421', photon_index_error2='0.92', photon_index2='3.24', ts='3.08', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='1.41e-07', energy_flux_error2='9.62e-06', EG='1.01', time_epoch_completed='1630793558.27', return_code='0', job_id='147879', GAL2='0.69', EG2='0.97', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='5.04e-08', ts2='4.40', photon_index='2.41' WHERE bin_id='54' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:12:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 147879: <4FGL_J1153.4+4931_daily_bin54> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin54 178.35 49.5169 253324801 253584001 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 :                                   723.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             301.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   924 sec.
    Turnaround time :                            927 sec.

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

