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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin644
RA = 178.35, Dec = 49.5169
tmin = 406252801, tmax = 406512001
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='152704', job_status='RUN', time_executed='2021-09-04 15:14:05.988668', time_epoch_executed='1630793645.99' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='644'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152704

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152704/ft1_4FGL_J1153.4+4931_daily_bin644.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152704/ft2_4FGL_J1153.4+4931_daily_bin644.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152704/ft1_4FGL_J1153.4+4931_daily_bin644.fits outfile=/scratch/kocevski/152704/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin644.fits ra=178.35 dec=49.5169 rad=12.0 tmin=406252801.0 tmax=406512001.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.83
user 3.60
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152704/ft1_filtered_4FGL_J1153.4+4931_daily_bin644.fits" evtable="EVENTS" scfile=/scratch/kocevski/152704/ft2_4FGL_J1153.4+4931_daily_bin644.fits sctable="SC_DATA" outfile=/scratch/kocevski/152704/ltcube_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.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/152704/ft2_4FGL_J1153.4+4931_daily_bin644.fits
.....................!
real 12.52
user 12.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152704/ft1_filtered_4FGL_J1153.4+4931_daily_bin644.fits evtable="EVENTS" scfile=/scratch/kocevski/152704/ft2_4FGL_J1153.4+4931_daily_bin644.fits sctable="SC_DATA" expcube=/scratch/kocevski/152704/ltcube_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.fits outfile=/scratch/kocevski/152704/expmap_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.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/152704/ltcube_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.fits
.....................!
real 190.28
user 186.08
sys 3.86

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/152704/ft1_filtered_4FGL_J1153.4+4931_daily_bin644.fits scfile=/scratch/kocevski/152704/ft2_4FGL_J1153.4+4931_daily_bin644.fits outfile=/scratch/kocevski/152704/cmap_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.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.38
sys 0.14

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

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    128.79       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    27.628       1.0000         .10000E-03   10000.    
     4 'norm      '    .22015       1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.125       1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.512       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.660       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    112.83       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    7.4324       1.0000         .10000E-03   10000.    
    15 'norm      '    23.730       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.7782       1.0000         .10000E-03   10000.    
    17 'Prefactor '    59.566       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .30392E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.6529       1.0000         .10000E-03   10000.    
    22 'norm      '    4.6226       1.0000         .10000E-03   10000.    
    23 'Prefactor '    32.845       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.6555       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    10.338       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .80802       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .88442       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=   5535.519     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     3823 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     128.98        111.47       -.68149E-05   -.32112E-03
   2  Prefactor     .10000E-03    37.471       -.12732E-05** at limit **
   3  Prefactor     27.654        121.92       -.46994E-06   -.10718E-04
   4  norm          .21983        2.1954       -.11861E-06    .11740E-03
   5  Prefactor     23.123        34.830        .50152E-06    .13064E-04
   6  Prefactor     15.517        24.895        .64595E-06    .92561E-04
   7  Prefactor     .10000E-03    31.691        .13221E-05** at limit **
   8  norm          .10000E-03    35.404       -.50014E-06** at limit **
   9  Prefactor     14.663        8.9460        .12397E-06    .13643E-03
  10  Prefactor     .10000E-03    15.135       -.11743E-06** at limit **
  11  norm          .10000E-03    1.6098       -.22352E-07** at limit **
  12  Prefactor     112.83        56.343        .45415E-07    .20584E-04
  13  norm          .10000E-03    4.8911       -.31751E-08** at limit **
  14  norm          7.4327        2.0810        .71296E-08    .14568E-03
  15  norm          23.729        12.981       -.45122E-07    .85814E-05
  16  Prefactor     4.7803        3.5858       -.12343E-06    .74918E-03
  17  Prefactor     59.575        67.287       -.36582E-06   -.14173E-04
  18  norm          .10000E-03    .97586       -.19141E-07** at limit **
  19  Prefactor     .10052E-03    41.286       -.74304E-05** at limit **
  20  Prefactor     .10000E-03    2.5538       -.13885E-06** at limit **
  21  norm          1.6534        1.8082        .23533E-07    .19618E-03
  22  norm          4.6230        7.1072       -.25052E-07    .40473E-03
  23  Prefactor     32.855        25.850        .16688E-06    .11328E-03
  24  Prefactor     .10000E-03    2.5601        .24533E-06** at limit **
  25  norm          3.6553        2.9628       -.31366E-07    .20347E-03
  26  Prefactor     .10000E-03    7.8290       -.81378E-07** at limit **
  27  norm          10.339        3.0560        .26347E-07    .24781E-03
  28  Normalizat    .80767        .18641       -.22422E-05    .13692E-03
  29  Prefactor     .88480        .21189        .32091E-05    .32007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 128.978
  Prefactor  = 0.000100001
  Prefactor  = 27.654
  norm       = 0.219827
  Prefactor  = 23.1231
  Prefactor  = 15.5169
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 14.6631
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 112.835
  norm       = 0.0001
  norm       = 7.43268
  norm       = 23.729
  Prefactor  = 4.78029
  Prefactor  = 59.5752
  norm       = 0.0001
  Prefactor  = 0.00010052
  Prefactor  = 0.0001
  norm       = 1.65335
  norm       = 4.62299
  Prefactor  = 32.8546
  Prefactor  = 0.0001
  norm       = 3.65535
  Prefactor  = 0.0001
  norm       = 10.3386
  Normalizat = 0.807668
  Prefactor  = 0.884796
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.519     FROM HESSE     STATUS=OK           551 CALLS     4374 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     128.98        118.54        .17738E-03   -1.3432    
   2  Prefactor     .10000E-03    37.556        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     27.654        122.50        .76218E-04   -1.4656    
   4  norm          .21983        2.1781        .20661E-03   -1.5614    
   5  Prefactor     23.123        34.840        .83296E-04   -1.4746    
   6  Prefactor     15.517        24.557        .10169E-03   -1.4920    
   7  Prefactor     .10000E-03    31.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    35.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.663        8.9681        .10461E-03   -1.4942    
  10  Prefactor     .10000E-03    15.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.6259        .92133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     112.83        56.514        .37872E-04   -1.3579    
  13  norm          .10000E-03    4.8912        .16071E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          7.4327        2.0941        .47570E-04   -1.5163    
  15  norm          23.729        12.983        .82229E-04   -1.4733    
  16  Prefactor     4.7803        3.4118        .11018E-03   -1.5271    
  17  Prefactor     59.575        67.538        .51985E-04   -1.4163    
  18  norm          .10000E-03    .97709        .71775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10052E-03    85.307        .54670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.5680        .11615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.6534        1.7937        .99546E-04   -1.5451    
  22  norm          4.6230        7.1893        .93600E-03   -1.5278    
  23  Prefactor     32.855        26.046        .69918E-04   -1.4561    
  24  Prefactor     .10000E-03    2.5716        .11623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.6553        2.9595        .55895E-03   -1.5326    
  26  Prefactor     .10000E-03    7.8405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          10.339        3.0561        .68399E-04   -1.5065    
  28  Normalizat    .80767        .20622        .24349E-03   -.99785    
  29  Prefactor     .88480        .23605        .29139E-03   -.96674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.55194e-09
Minuit parameter uncertainties:
  1  118.756
  2  0.000373913
  3  116.808
  4  1.38367
  5  34.8711
  6  24.5732
  7  0.000371077
  8  0.000149831
  9  8.96897
  10  2.64393e-05
  11  1.93976e-06
  12  56.5414
  13  5.15618e-07
  14  2.09414
  15  12.9841
  16  3.4119
  17  67.625
  18  1.21224e-06
  19  0.0133359
  20  1.20438e-05
  21  1.79379
  22  7.1906
  23  26.0549
  24  1.75663e-05
  25  2.95961
  26  1.36604e-05
  27  3.05611
  28  0.206418
  29  0.236318
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.780e+00  3.412e+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.848e-01  2.363e-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:  8.077e-01  2.064e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.30
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 4.68e-08 +/- 3.34e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.08e-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) = 5535.51814954
delta logL = 0.000492287003908

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5535.51771659
delta logL = 0.000925245167309

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.6700       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4593       1.0000          .0000       10.000    
     3 'Normalizat'    .80445       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88751       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=   5535.518     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      212 TOTAL
                     EDM=   .76E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.6669        73.507        .46556E-02    .17479E-03
   2  Index         2.4615        5.9353        .16354        .76844E-04
   3  Normalizat    .80437        .10121        .43668E-01    .12441E-04
   4  Prefactor     .88757        .76222E-01    .65788E-01    .12230E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.66693
  Index      = 2.46151
  Normalizat = 0.80437
  Prefactor  = 0.887569
 **********
 **   18 **HESSE 
 **********

 FCN=   5535.518     FROM HESSE     STATUS=OK            33 CALLS      245 TOTAL
                     EDM=   .88E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.6669        4.8363        .10763E-03   -1.5276    
   2  Index         2.4615        1.2884        .94878E-02   -.53251    
   3  Normalizat    .80437        .20594        .24395E-03   -.99907    
   4  Prefactor     .88757        .24386        .29099E-03   -.96577    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.7581e-09
Minuit parameter uncertainties:
  1  4.83672
  2  1.30847
  3  0.20614
  4  0.244159
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152704': 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) = 5535.51771434
delta logL = 0.000927489872083

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.667e+00  4.837e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.462e+00  1.308e+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.876e-01  2.442e-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:  8.044e-01  2.061e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.26
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.46 +/- 1.31
Photon Flux (Free Index): 4.89e-08 +/- 6.04e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.31e-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/152704/cmap_HighResolution_406252801_406512001_4FGL_J1153.4+4931_daily_bin644.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.68e-08', energy_flux2='1.48e-05', photon_flux_error='3.34e-08', dlogl='9.27e-04', energy_flux='1.51e-05', photon_flux2='4.89e-08', job_status='DONE', time_completed='2021-09-04 15:26:52.834837', photon_index_error2='1.31', photon_index2='2.46', ts='4.30', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.31e-05', EG='0.81', time_epoch_completed='1630794412.83', return_code='0', job_id='152704', GAL2='0.89', EG2='0.80', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='6.04e-08', ts2='4.26', photon_index='2.41' WHERE bin_id='644' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 152704: <4FGL_J1153.4+4931_daily_bin644> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin644 178.35 49.5169 406252801 406512001 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 :                                   766.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             294.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   936 sec.
    Turnaround time :                            937 sec.

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

