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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin189
RA = 178.35, Dec = 49.5169
tmin = 288316801, tmax = 288576001
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='149320', job_status='RUN', time_executed='2021-09-04 15:03:46.106142', time_epoch_executed='1630793026.11' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/149320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/149320/ft1_4FGL_J1153.4+4931_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/149320/ft2_4FGL_J1153.4+4931_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/149320/ft1_4FGL_J1153.4+4931_daily_bin189.fits outfile=/scratch/kocevski/149320/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin189.fits ra=178.35 dec=49.5169 rad=12.0 tmin=288316801.0 tmax=288576001.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.57
user 3.35
sys 0.20

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/149320/ft1_filtered_4FGL_J1153.4+4931_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/149320/ft2_4FGL_J1153.4+4931_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/149320/ltcube_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.fits outfile=/scratch/kocevski/149320/expmap_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.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/149320/ltcube_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.fits
.....................!
real 189.84
user 185.25
sys 4.23

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/149320/ft1_filtered_4FGL_J1153.4+4931_daily_bin189.fits scfile=/scratch/kocevski/149320/ft2_4FGL_J1153.4+4931_daily_bin189.fits outfile=/scratch/kocevski/149320/cmap_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.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.57
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/149320/ft1_filtered_4FGL_J1153.4+4931_daily_bin189.fits scfile=/scratch/kocevski/149320/ft2_4FGL_J1153.4+4931_daily_bin189.fits outfile=/scratch/kocevski/149320/cmap_HighResolution_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.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.56
user 0.40
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    118.60       1.0000         .10000E-03   10000.    
     2 'Prefactor '    111.38       1.0000         .10000E-03   10000.    
     3 'Prefactor '    51.377       1.0000         .10000E-03   10000.    
     4 'norm      '    .11100E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    35.239       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.1152       1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.446       1.0000         .10000E-03   10000.    
    11 'norm      '    3.8512       1.0000         .10000E-03   10000.    
    12 'Prefactor '    36.468       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .24308       1.0000         .10000E-03   10000.    
    15 'norm      '    6.6304       1.0000         .10000E-03   10000.    
    16 'Prefactor '    6.5844       1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.876       1.0000         .10000E-03   10000.    
    18 'norm      '    .12330E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.669       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.8183       1.0000         .10000E-03   10000.    
    21 'norm      '    5.1935       1.0000         .10000E-03   10000.    
    22 'norm      '    7.7490       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .45512       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.3319       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .92650       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.1249       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=   6258.917     FROM MIGRAD    STATUS=CONVERGED    723 CALLS     3769 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     118.60        85.619       -.68190E-07    .10997E-04
   2  Prefactor     111.36        101.90        .33714E-06    .77076E-05
   3  Prefactor     51.354        76.916       -.32675E-06   -.13125E-04
   4  norm          .10000E-03    1.4318       -.49714E-06** at limit **
   5  Prefactor     .10000E-03    18.587        .14277E-06** at limit **
   6  Prefactor     35.218        26.051        .42101E-06    .90574E-04
   7  Prefactor     .10000E-03    67.453        .41812E-06** at limit **
   8  norm          .10000E-03    30.244        .16846E-06** at limit **
   9  Prefactor     8.1167        7.7045       -.30221E-08    .89044E-04
  10  Prefactor     11.446        24.749       -.39687E-06    .36299E-04
  11  norm          3.8491        4.4784        .69264E-06    .23056E-03
  12  Prefactor     36.400        40.853        .36350E-05    .21961E-04
  13  norm          .10000E-03    6.2570        .12064E-07** at limit **
  14  norm          .24617        .81836       -.19149E-05   -.47448E-03
  15  norm          6.6291        8.1615        .38813E-06    .69134E-04
  16  Prefactor     6.5851        4.7507        .24642E-07    .69299E-04
  17  Prefactor     17.818        35.896        .26509E-05   -.10188E-04
  18  norm          .10000E-03    2.6437       -.51065E-06** at limit **
  19  Prefactor     12.668        27.856       -.12967E-06    .14604E-04
  20  Prefactor     1.8185        5.3601        .83360E-06    .54931E-04
  21  norm          5.1937        2.4237       -.57085E-07    .65780E-04
  22  norm          7.7515        6.5618       -.17969E-06    .18659E-04
  23  Prefactor     .10000E-03    25.334        .20542E-06** at limit **
  24  Prefactor     .10000E-03    2.7966       -.10698E-06** at limit **
  25  norm          .45490        2.2113        .14707E-05   -.48312E-04
  26  Prefactor     .10000E-03    24.504        .26765E-06** at limit **
  27  norm          8.3324        3.0719       -.54468E-07   -.46691E-05
  28  Normalizat    .92640        .17954        .89100E-06    .19332E-03
  29  Prefactor     1.1249        .21517       -.58400E-06    .23174E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 118.602
  Prefactor  = 111.36
  Prefactor  = 51.3537
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 35.2178
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.11672
  Prefactor  = 11.446
  norm       = 3.84912
  Prefactor  = 36.3998
  norm       = 0.0001
  norm       = 0.246171
  norm       = 6.62909
  Prefactor  = 6.58513
  Prefactor  = 17.8175
  norm       = 0.000100004
  Prefactor  = 12.6683
  Prefactor  = 1.81851
  norm       = 5.19371
  norm       = 7.75146
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.454896
  Prefactor  = 0.0001
  norm       = 8.33238
  Normalizat = 0.926396
  Prefactor  = 1.12493
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.917     FROM HESSE     STATUS=OK           561 CALLS     4330 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     118.60        85.673        .18475E-03   -1.3526    
   2  Prefactor     111.36        101.57        .19057E-03   -1.3593    
   3  Prefactor     51.354        76.878        .55952E-04   -1.4274    
   4  norm          .10000E-03    2.8683        .17800E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     35.218        25.515        .67509E-04   -1.4520    
   7  Prefactor     .10000E-03    67.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    30.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     8.1167        7.6986        .14074E-03   -1.5138    
  10  Prefactor     11.446        24.633        .11841E-03   -1.5031    
  11  norm          3.8491        4.4663        .16723E-03   -1.5316    
  12  Prefactor     36.400        40.703        .66365E-04   -1.4501    
  13  norm          .10000E-03    6.2589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .24617        .82177        .12183E-03   -1.5609    
  15  norm          6.6291        8.1575        .15584E-03   -1.5193    
  16  Prefactor     6.5851        4.7290        .11697E-03   -1.5195    
  17  Prefactor     17.818        35.768        .94729E-04   -1.4863    
  18  norm          .10000E-03    13.544        .24012E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.668        27.754        .11254E-03   -1.4996    
  20  Prefactor     1.8185        5.2130        .29827E-03   -1.5438    
  21  norm          5.1937        2.4256        .80064E-04   -1.5252    
  22  norm          7.7515        6.5485        .14405E-03   -1.5151    
  23  Prefactor     .10000E-03    25.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    2.8160        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .45490        2.0941        .22612E-03   -1.5573    
  26  Prefactor     .10000E-03    24.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.3324        3.0722        .81209E-04   -1.5131    
  28  Normalizat    .92640        .21231        .25078E-03   -.95539    
  29  Prefactor     1.1249        .25461        .28767E-03   -.88674    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.93262e-10
Minuit parameter uncertainties:
  1  85.7623
  2  101.731
  3  77.0274
  4  8.06495e-05
  5  3.33669e-05
  6  25.5227
  7  0.000138046
  8  3.15996e-05
  9  7.69954
  10  24.6552
  11  4.46667
  12  40.7337
  13  1.57447e-06
  14  0.821811
  15  8.15884
  16  4.72924
  17  35.8109
  18  0.000458896
  19  27.7822
  20  5.21426
  21  2.42561
  22  6.54915
  23  4.1521e-05
  24  1.71303e-05
  25  1.95191
  26  6.9965e-05
  27  3.07228
  28  0.212505
  29  0.254889
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  6.585e+00  4.729e+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.125e+00  2.549e-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.264e-01  2.125e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.52
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 6.45e-08 +/- 4.63e-08
Energy Flux (Fixed Index): 2.08e-05 +/- 1.49e-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) = 6258.70416552
delta logL = 0.212663919517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6258.69032377
delta logL = 0.226505670977

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.9251       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7688       1.0000          .0000       10.000    
     3 'Normalizat'    .90669       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1419       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=   6258.690     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      289 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.9255        4.4547        .94149E-04   -.86894E-03
   2  Index         2.7687        .60400        .54079E-02   -.15764E-03
   3  Normalizat    .90664        .20441        .25312E-03    .26100E-03
   4  Prefactor     1.1418        .25387        .28581E-03    .29336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.92551
  Index      = 2.76869
  Normalizat = 0.906642
  Prefactor  = 1.14181
 **********
 **   18 **HESSE 
 **********

 FCN=   6258.690     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.9255        4.1476        .37659E-05   -1.5264    
   2  Index         2.7687        .56224        .21631E-03   -.46258    
   3  Normalizat    .90664        .20447        .10125E-04   -.96227    
   4  Prefactor     1.1418        .25388        .57162E-04   -.88141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86484e-10
Minuit parameter uncertainties:
  1  4.14784
  2  0.563728
  3  0.204644
  4  0.254151
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/149320': 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) = 6258.69032299
delta logL = 0.226506452897

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.926e+00  4.148e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.769e+00  5.637e-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.142e+00  2.542e-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.066e-01  2.046e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 178.350 49.517
Photon Index (Free Index): 2.77 +/- 0.56
Photon Flux (Free Index): 7.99e-08 +/- 4.81e-08
Energy Flux (Free Index): 1.83e-05 +/- 1.09e-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/149320/cmap_HighResolution_288316801_288576001_4FGL_J1153.4+4931_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.45e-08', energy_flux2='1.83e-05', photon_flux_error='4.63e-08', dlogl='2.27e-01', energy_flux='2.08e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2021-09-04 15:17:08.688167', photon_index_error2='0.56', photon_index2='2.77', ts='4.52', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', energy_flux_error2='1.09e-05', EG='0.93', time_epoch_completed='1630793828.69', return_code='0', job_id='149320', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='1.49e-05', photon_flux_error2='4.81e-08', ts2='4.98', photon_index='2.41' WHERE bin_id='189' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:17:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 149320: <4FGL_J1153.4+4931_daily_bin189> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin189> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Sat Sep  4 15:01:08 2021
Job was executed on host(s) <bullet0258>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:01:10 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:01:10 2021
Terminated at Sat Sep  4 15:17:09 2021
Results reported at Sat Sep  4 15:17:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin189 178.35 49.5169 288316801 288576001 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 :                                   802.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             310.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   958 sec.
    Turnaround time :                            961 sec.

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

