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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin784
RA = 178.35, Dec = 49.5169
tmin = 442540801, tmax = 442800001
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='152932', job_status='RUN', time_executed='2021-09-04 15:11:53.839619', time_epoch_executed='1630793513.84' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='784'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/152932

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/152932/ft1_4FGL_J1153.4+4931_daily_bin784.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/152932/ft1_4FGL_J1153.4+4931_daily_bin784.fits outfile=/scratch/kocevski/152932/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin784.fits ra=178.35 dec=49.5169 rad=12.0 tmin=442540801.0 tmax=442800001.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.41
user 3.19
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/152932/ft1_filtered_4FGL_J1153.4+4931_daily_bin784.fits" evtable="EVENTS" scfile=/scratch/kocevski/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits sctable="SC_DATA" outfile=/scratch/kocevski/152932/ltcube_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.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/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits
.....................!
real 11.99
user 11.62
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/152932/ft1_filtered_4FGL_J1153.4+4931_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits sctable="SC_DATA" expcube=/scratch/kocevski/152932/ltcube_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.fits outfile=/scratch/kocevski/152932/expmap_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.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/152932/ltcube_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.fits
.....................!
real 190.06
user 185.54
sys 4.21

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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/152932/ft1_filtered_4FGL_J1153.4+4931_daily_bin784.fits scfile=/scratch/kocevski/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits outfile=/scratch/kocevski/152932/cmap_HighResolution_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.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/152932/ft1_filtered_4FGL_J1153.4+4931_daily_bin784.fits evtable="EVENTS" scfile=/scratch/kocevski/152932/ft2_4FGL_J1153.4+4931_daily_bin784.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/152932/Model_4FGL_J1153.4+4931_daily_bin784.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/152932/ft1_filtered_4FGL_J1153.4+4931_daily_bin784.fits.....................!
real 44.92
user 43.72
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    40.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.236       1.0000         .10000E-03   10000.    
     4 'norm      '    2.8781       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    54.961       1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .89818E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    12.731       1.0000         .10000E-03   10000.    
    13 'norm      '    .19210E-01   1.0000         .10000E-03   10000.    
    14 'norm      '    4.4587       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.458       1.0000         .10000E-03   10000.    
    19 'Prefactor '    14.435       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    1.2585       1.0000         .10000E-03   10000.    
    22 'norm      '    6.6223       1.0000         .10000E-03   10000.    
    23 'Prefactor '    2.9412       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .80192       1.0000         .10000E-03   10000.    
    25 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    15.132       1.0000         .10000E-03   10000.    
    27 'norm      '    3.8028       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .78557       1.0000         .10000E-01   10.000    
    29 'Prefactor '    1.0479       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=   5122.453     FROM MIGRAD    STATUS=CONVERGED    760 CALLS     3768 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     40.166        42.116        .31313E-06    .24587E-04
   2  Prefactor     .10000E-03    34.840       -.50420E-06** at limit **
   3  Prefactor     12.403        225.60        .10992E-04    .10778E-03
   4  norm          2.8782        2.0078        .82675E-07   -.14795E-04
   5  Prefactor     .10000E-03    94.146       -.80085E-06** at limit **
   6  Prefactor     .10000E-03    9.1396       -.75702E-07** at limit **
   7  Prefactor     54.929        82.265       -.62997E-07   -.65273E-04
   8  norm          .10000E-03    24.499       -.16692E-06** at limit **
   9  Prefactor     .10000E-03    3.2667        .10596E-06** at limit **
  10  Prefactor     .10000E-03    7.2890       -.27085E-07** at limit **
  11  norm          .10000E-03    4.0725        .14335E-06** at limit **
  12  Prefactor     12.748        43.725        .98688E-06    .13144E-04
  13  norm          .10064E-03    19.135        .98021E-06** at limit **
  14  norm          4.4590        1.5378        .51491E-07   -.58259E-04
  15  norm          .10000E-03    3.7971       -.20456E-07** at limit **
  16  Prefactor     .10000E-03    1.4124       -.15020E-06** at limit **
  17  Prefactor     .10000E-03    32.945        .35435E-06** at limit **
  18  norm          11.462        6.0235        .17046E-06   -.17187E-03
  19  Prefactor     14.434        13.655        .37990E-06   -.18746E-04
  20  Prefactor     .10000E-03    5.9935        .33425E-07** at limit **
  21  norm          1.2592        2.2190        .43156E-06   -.20074E-03
  22  norm          6.6216        6.3287       -.18689E-05   -.32950E-03
  23  Prefactor     2.9449        28.159        .22154E-04    .17626E-04
  24  Prefactor     .84248        5.1611        .18768E-05   -.63658E-03
  25  norm          .10000E-03    1.6703       -.72150E-07** at limit **
  26  Prefactor     15.139        18.749       -.61234E-06   -.26567E-04
  27  norm          3.8026        2.6205        .15528E-07   -.25532E-03
  28  Normalizat    .78522        .17372       -.43536E-05   -.78748E-04
  29  Prefactor     1.0482        .20568        .34853E-05   -.32345E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 40.1659
  Prefactor  = 0.000100001
  Prefactor  = 12.4027
  norm       = 2.87824
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.9291
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 12.7481
  norm       = 0.000100644
  norm       = 4.45901
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 11.4621
  Prefactor  = 14.4343
  Prefactor  = 0.0001
  norm       = 1.25924
  norm       = 6.6216
  Prefactor  = 2.94488
  Prefactor  = 0.842478
  norm       = 0.0001
  Prefactor  = 15.139
  norm       = 3.80257
  Normalizat = 0.785215
  Prefactor  = 1.04816
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.453     FROM HESSE     STATUS=OK           561 CALLS     4329 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     40.166        42.118        .63261E-04   -1.4440    
   2  Prefactor     .10000E-03    34.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.403        224.23        .11452E-03   -1.5003    
   4  norm          2.8782        2.0047        .82178E-04   -1.5369    
   5  Prefactor     .10000E-03    94.983        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.1621        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     54.929        82.306        .54106E-04   -1.4224    
   8  norm          .10000E-03    24.518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    21.904        .24689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    7.2930        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    4.2156        .28123E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     12.748        43.798        .11227E-03   -1.4994    
  13  norm          .10064E-03    22.143        .10119       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          4.4590        1.5438        .45332E-04   -1.5286    
  15  norm          .10000E-03    3.8013        .13621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4524        .16596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    32.977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.462        6.0266        .11835E-03   -1.5031    
  19  Prefactor     14.434        13.652        .52711E-03   -1.4948    
  20  Prefactor     .10000E-03    6.0449        .17094E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          1.2592        2.1931        .13192E-03   -1.5484    
  22  norm          6.6216        6.3453        .15594E-03   -1.5193    
  23  Prefactor     2.9449        28.660        .11841E-02   -1.5365    
  24  Prefactor     .84248        17.483        .29711E-02   -1.5524    
  25  norm          .10000E-03    1.6763        .90209E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     15.139        18.748        .10296E-03   -1.4930    
  27  norm          3.8026        2.6152        .92576E-04   -1.5318    
  28  Normalizat    .78522        .19800        .23208E-03   -1.0062    
  29  Prefactor     1.0482        .23721        .26006E-03   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06659e-09
Minuit parameter uncertainties:
  1  42.1491
  2  0.000279515
  3  105.937
  4  2.00472
  5  0.000155517
  6  1.24991e-05
  7  82.4771
  8  2.67595e-05
  9  0.00047567
  10  2.4541e-06
  11  3.45865e-07
  12  43.9091
  13  0.00755351
  14  1.54378
  15  1.64676e-07
  16  4.0836e-08
  17  0.000268318
  18  6.02689
  19  13.6554
  20  5.70136e-06
  21  2.19322
  22  6.34594
  23  18.3852
  24  7.67779
  25  5.86735e-06
  26  18.7555
  27  2.61524
  28  0.198183
  29  0.237452
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  4.084e-08  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.048e+00  2.375e-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.852e-01  1.982e-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: 5.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/152932/likelihoodResults_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.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) = 5122.45625902
delta logL = -0.00326576625775

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5122.45299327
delta logL = -1.74613887793e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3960       1.0000          .0000       10.000    
     3 'Normalizat'    .78525       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0482       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=   5122.453     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      254 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    68.526        .16769E-02** at limit **
   2  Index         2.0321        6.2016        .50000        .76170E-07
   3  Normalizat    .78521        .26656E-01    .23208E-03   -.76609E-03
   4  Prefactor     1.0482        .34224E-01    .26005E-03   -.67940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.03215
  Normalizat = 0.785211
  Prefactor  = 1.04816
 **********
 **   18 **HESSE 
 **********

 FCN=   5122.453     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      283 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    259.01        .33537E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0321        5.9957        .50000       -.63549    
   3  Normalizat    .78521        .65317E-01    .46416E-04   -1.0062    
   4  Prefactor     1.0482        .83829E-01    .52011E-04   -.91141    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.56707e-09
Minuit parameter uncertainties:
  1  0.000318689
  2  883.138
  3  0.0653239
  4  0.083839
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/152932': 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) = 5122.45298885
delta logL = 4.40320582129e-06

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.000e-04  3.187e-04  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  2.032e+00  8.831e+02  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.048e+00  8.384e-02  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.852e-01  6.532e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 178.350 49.517

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/152932/cmap_HighResolution_442540801_442800001_4FGL_J1153.4+4931_daily_bin784.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.99e-03', job_status='DONE', photon_flux_upper_limit='5.17e-08', time_completed='2021-09-04 15:25:26.928957', job_id='152932', GAL2='1.05', fit_tolerance='1e-08', EG2='0.79', EG='0.79', time_epoch_completed='1630794326.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='4.40e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.41' WHERE bin_id='784' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:25:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 152932: <4FGL_J1153.4+4931_daily_bin784> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin784> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 15:11:33 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:11:35 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:35 2021
Terminated at Sat Sep  4 15:25:27 2021
Results reported at Sat Sep  4 15:25:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin784 178.35 49.5169 442540801 442800001 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 :                                   812.17 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             338.41 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   832 sec.
    Turnaround time :                            834 sec.

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

