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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin807
RA = 178.35, Dec = 49.5169
tmin = 448502401, tmax = 448761601
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='152967', job_status='RUN', time_executed='2021-09-04 15:15:30.529360', time_epoch_executed='1630793730.53' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152967

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152967/ft1_4FGL_J1153.4+4931_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152967/ft1_4FGL_J1153.4+4931_daily_bin807.fits outfile=/scratch/kocevski/152967/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin807.fits ra=178.35 dec=49.5169 rad=12.0 tmin=448502401.0 tmax=448761601.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.02
user 5.68
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.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/152967/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/152967/ft1_filtered_4FGL_J1153.4+4931_daily_bin807.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/152967/ft1_filtered_4FGL_J1153.4+4931_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/152967/ltcube_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.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/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits
.....................!
real 12.39
user 11.59
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152967/ft1_filtered_4FGL_J1153.4+4931_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/152967/ltcube_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.fits outfile=/scratch/kocevski/152967/expmap_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.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/152967/ltcube_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.fits
.....................!
real 192.99
user 186.66
sys 4.67

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/152967/ft1_filtered_4FGL_J1153.4+4931_daily_bin807.fits scfile=/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits outfile=/scratch/kocevski/152967/cmap_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152967/ft1_filtered_4FGL_J1153.4+4931_daily_bin807.fits scfile=/scratch/kocevski/152967/ft2_4FGL_J1153.4+4931_daily_bin807.fits outfile=/scratch/kocevski/152967/cmap_HighResolution_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.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.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .11319E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.0961       1.0000         .10000E-03   10000.    
     5 'Prefactor '    42.351       1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.556       1.0000         .10000E-03   10000.    
     7 'Prefactor '    39.051       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.5587       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .71342       1.0000         .10000E-03   10000.    
    13 'norm      '    16.823       1.0000         .10000E-03   10000.    
    14 'norm      '    2.4032       1.0000         .10000E-03   10000.    
    15 'norm      '    7.6999       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    70.116       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.154       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.3861       1.0000         .10000E-03   10000.    
    22 'norm      '    .10297E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    4.0678       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    17.627       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .71463       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0395       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=   3389.443     FROM MIGRAD    STATUS=CONVERGED    742 CALLS     3822 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.778       -.81799E-06** at limit **
   2  Prefactor     .10000E-03    36.646        .41863E-06** at limit **
   3  Prefactor     .10000E-03    409.87        .28381E-06** at limit **
   4  norm          1.0958        1.4735        .12409E-06    .45389E-03
   5  Prefactor     42.362        56.297        .46201E-06   -.11366E-05
   6  Prefactor     30.548        25.516       -.63790E-06   -.20902E-03
   7  Prefactor     39.073        109.93       -.18136E-06    .19912E-05
   8  norm          .10000E-03    25.287        .28090E-06** at limit **
   9  Prefactor     .10000E-03    6.7603        .15139E-06** at limit **
  10  Prefactor     .10000E-03    43.426        .10558E-05** at limit **
  11  norm          6.5599        4.6863       -.62683E-07   -.19643E-03
  12  Prefactor     .74923        104.95        .18246E-04   -.90299E-04
  13  norm          16.831        23.682        .29368E-06   -.16581E-04
  14  norm          2.4040        1.6339       -.94089E-07   -.71575E-03
  15  norm          7.6990        9.3038       -.36558E-07   -.58211E-04
  16  Prefactor     .10000E-03    1.9826        .65288E-07** at limit **
  17  Prefactor     70.119        72.081        .12682E-06   -.45203E-04
  18  norm          .10001E-03    12.923       -.21274E-05** at limit **
  19  Prefactor     12.153        17.233        .25872E-06   -.99266E-06
  20  Prefactor     .10000E-03    11.406       -.33852E-06** at limit **
  21  norm          4.3853        3.2166        .18398E-06    .12868E-03
  22  norm          .10000E-03    49.351        .19514E-04** at limit **
  23  Prefactor     4.0621        32.205        .33038E-05   -.68168E-05
  24  Prefactor     .10000E-03    3.4770        .84077E-07** at limit **
  25  norm          17.627        6.6476       -.20857E-07   -.92804E-04
  26  Prefactor     .10000E-03    9.4421       -.24552E-08** at limit **
  27  norm          .10000E-03    1.9416       -.49933E-07** at limit **
  28  Normalizat    .71500        .20326       -.24971E-05   -.53766E-03
  29  Prefactor     1.0391        .25108        .14387E-05   -.33012E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 1.09585
  Prefactor  = 42.3616
  Prefactor  = 30.5482
  Prefactor  = 39.0727
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.55991
  Prefactor  = 0.74923
  norm       = 16.8306
  norm       = 2.40401
  norm       = 7.699
  Prefactor  = 0.0001
  Prefactor  = 70.1185
  norm       = 0.000100008
  Prefactor  = 12.1527
  Prefactor  = 0.0001
  norm       = 4.38525
  norm       = 0.0001
  Prefactor  = 4.0621
  Prefactor  = 0.0001
  norm       = 17.6269
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.714998
  Prefactor  = 1.0391
 **********
 **   18 **HESSE 
 **********

 FCN=   3389.443     FROM HESSE     STATUS=OK           549 CALLS     4371 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.764        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    36.651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    412.68        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.0958        1.4400        .79612E-04   -1.5499    
   5  Prefactor     42.362        56.496        .61600E-04   -1.4405    
   6  Prefactor     30.548        25.574        .72483E-04   -1.4602    
   7  Prefactor     39.073        109.93        .64140E-04   -1.4457    
   8  norm          .10000E-03    25.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.8610        .14777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    43.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.5599        4.7343        .10014E-03   -1.5196    
  12  Prefactor     .74923        902.39        .78201E-02   -1.5535    
  13  norm          16.831        23.661        .97649E-04   -1.4887    
  14  norm          2.4040        1.7164        .50753E-04   -1.5398    
  15  norm          7.6990        9.3032        .14451E-03   -1.5153    
  16  Prefactor     .10000E-03    2.0012        .79932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     70.119        72.309        .47939E-04   -1.4031    
  18  norm          .10001E-03    13.721        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     12.153        17.228        .11490E-03   -1.5011    
  20  Prefactor     .10000E-03    11.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.3853        3.2318        .84021E-04   -1.5289    
  22  norm          .10000E-03    52.012        .33479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     4.0621        32.746        .19991E-03   -1.5305    
  24  Prefactor     .10000E-03    3.4839        .10602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          17.627        6.6476        .89778E-04   -1.4868    
  26  Prefactor     .10000E-03    9.4536        .17474E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    1.9761        .79191E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .71500        .23626        .23461E-03   -1.0330    
  29  Prefactor     1.0391        .28974        .25461E-03   -.91437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.96352e-09
Minuit parameter uncertainties:
  1  7.11355e-05
  2  2.77541e-05
  3  0.00167995
  4  1.44
  5  56.5672
  6  25.5829
  7  110.503
  8  3.06252e-05
  9  3.60457e-05
  10  0.00016702
  11  4.73454
  12  52.818
  13  23.6746
  14  1.71644
  15  9.30491
  16  5.30428e-06
  17  72.3999
  18  0.000665956
  19  17.235
  20  9.82551e-05
  21  3.23188
  22  0.000111989
  23  23.0838
  24  1.33076e-05
  25  6.64792
  26  7.48065e-06
  27  7.33545e-06
  28  0.236596
  29  0.290181
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  5.304e-06  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.039e+00  2.902e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  7.150e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 7.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.87e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152967/likelihoodResults_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.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): 102
logL (Free Index) = 3389.44576256
delta logL = -0.00236343498273

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3389.44339915
delta logL = -2.69983502221e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4278       1.0000          .0000       10.000    
     3 'Normalizat'    .71504       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0391       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=   3388.504     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      350 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .71523E-03    .14996E-01    .36822E-03** at limit **
   2  Index         7.6084        3.3243        .13483        .29694E-04
   3  Normalizat    .62917        .49440E-01    .23462E-02   -.77894E-05
   4  Prefactor     1.1109        .64145E-01    .25461E-02   -.10212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000715227
  Index      = 7.60839
  Normalizat = 0.629169
  Prefactor  = 1.11093
 **********
 **   18 **HESSE 
 **********

 FCN=   3388.504     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      383 TOTAL
                     EDM=   .18E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .71523E-03    .33434E-01    .14910E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.6084        8.3819        .54399E-02    .54882    
   3  Normalizat    .62917        .17590        .93846E-04   -1.0676    
   4  Prefactor     1.1109        .22412        .10184E-03   -.89118    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.84103e-11
Minuit parameter uncertainties:
  1  0.00907079
  2  6.52608
  3  0.176052
  4  0.224306
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152967': 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): 102
logL (Free Index) = 3388.50443485
delta logL = 0.938964273748

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.152e-04  9.071e-03  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  7.608e+00  6.526e+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:  1.111e+00  2.243e-01  0.000e+00  1.000e+01 ( 1.000e+00)
703        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
704        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
701   Normalization:  6.292e-01  1.761e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 178.350 49.517
Photon Index (Free Index): 7.61 +/- 6.53
Photon Flux (Free Index): 6.22e-08 +/- 5.56e-08
Energy Flux (Free Index): 7.30e-06 +/- 7.08e-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/152967/cmap_HighResolution_448502401_448761601_4FGL_J1153.4+4931_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.87e-03', comment='SUCCESS', energy_flux2='7.30e-06', dlogl='9.39e-01', photon_flux2='6.22e-08', job_status='DONE', time_completed='2021-09-04 15:26:55.764115', photon_index_error2='6.53', photon_index2='7.61', ts='-0.00', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='7.60e-08', energy_flux_error2='7.08e-06', EG='0.71', time_epoch_completed='1630794415.76', return_code='0', job_id='152967', GAL2='1.11', EG2='0.63', return_code2='102', photon_flux_error2='5.56e-08', ts2='1.99', photon_index='2.41' WHERE bin_id='807' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:26:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0225>
Subject: Job 152967: <4FGL_J1153.4+4931_daily_bin807> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin807 178.35 49.5169 448502401 448761601 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 :                                   680.13 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             235.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

