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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin495
RA = 178.35, Dec = 49.5169
tmin = 367632001, tmax = 367891201
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='151038', job_status='RUN', time_executed='2021-09-04 15:06:48.423760', time_epoch_executed='1630793208.42' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='495'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/151038

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

Retrieving the FT1 file...

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

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

Retrieving 52 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/151038/ft1_4FGL_J1153.4+4931_daily_bin495.fits


Retrieving the FT1 file...

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

Retrieving 52 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/151038/ft2_4FGL_J1153.4+4931_daily_bin495.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/151038/ft1_4FGL_J1153.4+4931_daily_bin495.fits outfile=/scratch/kocevski/151038/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin495.fits ra=178.35 dec=49.5169 rad=12.0 tmin=367632001.0 tmax=367891201.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 6.28
user 4.84
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/151038/ft1_filtered_4FGL_J1153.4+4931_daily_bin495.fits" evtable="EVENTS" scfile=/scratch/kocevski/151038/ft2_4FGL_J1153.4+4931_daily_bin495.fits sctable="SC_DATA" outfile=/scratch/kocevski/151038/ltcube_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.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/151038/ft2_4FGL_J1153.4+4931_daily_bin495.fits
.....................!
real 11.48
user 11.17
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/151038/ft1_filtered_4FGL_J1153.4+4931_daily_bin495.fits evtable="EVENTS" scfile=/scratch/kocevski/151038/ft2_4FGL_J1153.4+4931_daily_bin495.fits sctable="SC_DATA" expcube=/scratch/kocevski/151038/ltcube_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.fits outfile=/scratch/kocevski/151038/expmap_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.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/151038/ltcube_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.fits
.....................!
real 189.15
user 184.80
sys 4.03

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/151038/ft1_filtered_4FGL_J1153.4+4931_daily_bin495.fits scfile=/scratch/kocevski/151038/ft2_4FGL_J1153.4+4931_daily_bin495.fits outfile=/scratch/kocevski/151038/cmap_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.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.55
user 0.38
sys 0.13

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

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

This is gtbin version HEAD
real 0.53
user 0.37
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .42417E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0662       1.0000         .10000E-03   10000.    
     5 'Prefactor '    82.015       1.0000         .10000E-03   10000.    
     6 'Prefactor '    8.0603       1.0000         .10000E-03   10000.    
     7 'Prefactor '    44.960       1.0000         .10000E-03   10000.    
     8 'norm      '    18.176       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.2965       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2125       1.0000         .10000E-03   10000.    
    12 'Prefactor '    48.767       1.0000         .10000E-03   10000.    
    13 'norm      '    16.350       1.0000         .10000E-03   10000.    
    14 'norm      '    .22442       1.0000         .10000E-03   10000.    
    15 'norm      '    16.185       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3240       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.5107       1.0000         .10000E-03   10000.    
    21 'norm      '    6.4074       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0388       1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.5482       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.8435       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10113E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .36545E-01   1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3602       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .48899       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=   5924.347     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     3772 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.979        .18166E-06** at limit **
   2  Prefactor     .10000E-03    41.824        .10685E-06** at limit **
   3  Prefactor     .10001E-03    481.48       -.60571E-05** at limit **
   4  norm          1.0677        1.8147        .59010E-06    .86257E-03
   5  Prefactor     82.059        53.356        .64320E-06    .88915E-04
   6  Prefactor     8.0557        19.394        .10484E-07   -.31359E-04
   7  Prefactor     44.982        63.365        .46746E-06    .27386E-04
   8  norm          18.185        35.420        .22675E-06    .17914E-04
   9  Prefactor     .10000E-03    4.2425        .86912E-07** at limit **
  10  Prefactor     6.2970        11.496        .16866E-06   -.69747E-05
  11  norm          3.2110        4.6608        .24671E-06   -.23124E-03
  12  Prefactor     48.779        52.308       -.31261E-05   -.15593E-03
  13  norm          16.350        15.489        .34406E-07   -.24168E-05
  14  norm          .22459        .99795        .14979E-05    .28327E-03
  15  norm          16.184        9.2469       -.16715E-06   -.88404E-04
  16  Prefactor     1.3241        1.3424       -.14008E-07   -.16626E-04
  17  Prefactor     .10000E-03    41.619       -.64461E-06** at limit **
  18  norm          .10000E-03    1.7148       -.12142E-06** at limit **
  19  Prefactor     .10000E-03    7.4296       -.50346E-07** at limit **
  20  Prefactor     8.5107        5.5869        .20293E-07   -.39984E-04
  21  norm          6.4076        2.2953        .71893E-07   -.15174E-03
  22  norm          3.0392        8.0959        .64111E-06   -.43852E-04
  23  Prefactor     7.5439        28.576        .57831E-06   -.44593E-04
  24  Prefactor     .10000E-03    2.6264       -.40895E-07** at limit **
  25  norm          3.8434        2.6883        .38826E-07   -.72882E-04
  26  Prefactor     .10000E-03    39.847       -.63656E-06** at limit **
  27  norm          .37400E-01    1.1340        .87070E-06   -.19994E-02
  28  Normalizat    1.3601        .18398       -.19933E-05   -.34110E-03
  29  Prefactor     .48904        .21397        .18415E-05   -.21440E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100012
  norm       = 1.06773
  Prefactor  = 82.0592
  Prefactor  = 8.05573
  Prefactor  = 44.9821
  norm       = 18.1847
  Prefactor  = 0.0001
  Prefactor  = 6.29697
  norm       = 3.21105
  Prefactor  = 48.7793
  norm       = 16.3504
  norm       = 0.224588
  norm       = 16.1842
  Prefactor  = 1.32406
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.51075
  norm       = 6.40758
  norm       = 3.03925
  Prefactor  = 7.54385
  Prefactor  = 0.0001
  norm       = 3.84342
  Prefactor  = 0.0001
  norm       = 0.0374005
  Normalizat = 1.3601
  Prefactor  = 0.489042
 **********
 **   18 **HESSE 
 **********

 FCN=   5924.347     FROM HESSE     STATUS=OK           559 CALLS     4331 TOTAL
                     EDM=   .30E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    34.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    41.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    485.32        .21237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0677        1.5767        .13364E-02   -1.5501    
   5  Prefactor     82.059        53.343        .22176E-03   -1.3894    
   6  Prefactor     8.0557        19.188        .14122E-03   -1.5140    
   7  Prefactor     44.982        63.376        .59793E-04   -1.4366    
   8  norm          18.185        35.422        .93945E-04   -1.4855    
   9  Prefactor     .10000E-03    4.3257        .15473E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.2970        11.484        .15997E-03   -1.5206    
  11  norm          3.2110        4.6171        .18196E-03   -1.5350    
  12  Prefactor     48.779        52.203        .57422E-04   -1.4310    
  13  norm          16.350        15.486        .99050E-04   -1.4899    
  14  norm          .22459        .98517        .13490E-03   -1.5613    
  15  norm          16.184        9.2455        .99554E-04   -1.4903    
  16  Prefactor     1.3241        1.3626        .87417E-04   -1.5478    
  17  Prefactor     .10000E-03    41.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.7458        .98262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.5107        5.5819        .13741E-03   -1.5124    
  21  norm          6.4076        2.2980        .66901E-04   -1.5202    
  22  norm          3.0392        7.8865        .23276E-03   -1.5359    
  23  Prefactor     7.5439        27.973        .14597E-03   -1.5159    
  24  Prefactor     .10000E-03    2.6451        .12166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.8434        2.6854        .10256E-03   -1.5316    
  26  Prefactor     .10000E-03    40.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .37400E-01    19.787        .14408E-02   -1.5669    
  28  Normalizat    1.3601        .19732        .19797E-03   -.81790    
  29  Prefactor     .48904        .22891        .37886E-03   -1.1248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.98909e-08
Minuit parameter uncertainties:
  1  5.67863e-06
  2  1.498e-05
  3  0.00488239
  4  1.57678
  5  53.3738
  6  19.2024
  7  63.4707
  8  35.463
  9  7.78252e-06
  10  11.4878
  11  4.61762
  12  52.2518
  13  15.4902
  14  0.940574
  15  9.24631
  16  1.36262
  17  0.000182391
  18  1.22267e-06
  19  4.48491e-06
  20  5.58225
  21  2.29807
  22  7.88914
  23  28.0213
  24  4.99952e-07
  25  2.68548
  26  5.60452e-05
  27  1.71876
  28  0.197426
  29  0.229341
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.324e+00  1.363e+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:  4.890e-01  2.293e-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.360e+00  1.974e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.53
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 1.30e-08 +/- 1.33e-08
Energy Flux (Fixed Index): 4.18e-06 +/- 4.31e-06

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) = 5923.07250021
delta logL = 1.27405742073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5923.0480434
delta logL = 1.298514239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0341       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2541       1.0000          .0000       10.000    
     3 'Normalizat'    1.3697       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48251       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=   5923.048     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      210 TOTAL
                     EDM=   .90E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0331        1.0109        .12420E-01   -.40028E-03
   2  Index         1.2538        .41949        .23947       -.54999E-04
   3  Normalizat    1.3697        .17281        .31660E-01   -.20809E-05
   4  Prefactor     .48254        .20855        .86022E-01    .38683E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03312
  Index      = 1.25376
  Normalizat = 1.36973
  Prefactor  = 0.482538
 **********
 **   18 **HESSE 
 **********

 FCN=   5923.048     FROM HESSE     STATUS=OK            35 CALLS      245 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0331        1.3405        .73268E-03   -1.5505    
   2  Index         1.2538        .59730        .93561E-02   -.84692    
   3  Normalizat    1.3697        .18666        .19734E-03   -.81508    
   4  Prefactor     .48254        .22453        .38113E-03   -1.1278    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.63692e-09
Minuit parameter uncertainties:
  1  1.34057
  2  0.600589
  3  0.186748
  4  0.224947
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/151038': 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) = 5923.04804315
delta logL = 1.29851448085

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.033e+00  1.341e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  1.254e+00  6.006e-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:  4.825e-01  2.249e-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.370e+00  1.867e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.13
Ra Dec: 178.350 49.517
Photon Index (Free Index): 1.25 +/- 0.60
Photon Flux (Free Index): 4.36e-09 +/- 5.01e-09
Energy Flux (Free Index): 3.09e-05 +/- 5.15e-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/151038/cmap_HighResolution_367632001_367891201_4FGL_J1153.4+4931_daily_bin495.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-08', energy_flux2='3.09e-05', photon_flux_error='1.33e-08', dlogl='1.30e+00', energy_flux='4.18e-06', photon_flux2='4.36e-09', job_status='DONE', time_completed='2021-09-04 15:19:58.487282', photon_index_error2='0.60', photon_index2='1.25', ts='4.53', fit_tolerance='1e-08', GAL='0.49', photon_index_error='0.00', energy_flux_error2='5.15e-05', EG='1.36', time_epoch_completed='1630793998.49', return_code='0', job_id='151038', GAL2='0.48', EG2='1.37', return_code2='0', energy_flux_error='4.31e-06', photon_flux_error2='5.01e-09', ts2='7.13', photon_index='2.41' WHERE bin_id='495' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:19:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 151038: <4FGL_J1153.4+4931_daily_bin495> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin495> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:06:29 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:06:31 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:06:31 2021
Terminated at Sat Sep  4 15:19:59 2021
Results reported at Sat Sep  4 15:19:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin495 178.35 49.5169 367632001 367891201 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 :                                   785.10 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            810 sec.

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

