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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin970
RA = 178.35, Dec = 49.5169
tmin = 490752001, tmax = 491011201
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='154316', job_status='RUN', time_executed='2021-09-04 15:20:27.507003', time_epoch_executed='1630794027.51' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='970'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/154316

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/154316/ft1_4FGL_J1153.4+4931_daily_bin970.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/154316/ft2_4FGL_J1153.4+4931_daily_bin970.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/154316/ft1_4FGL_J1153.4+4931_daily_bin970.fits outfile=/scratch/kocevski/154316/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin970.fits ra=178.35 dec=49.5169 rad=12.0 tmin=490752001.0 tmax=491011201.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 5.84
user 5.57
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/154316/ft1_filtered_4FGL_J1153.4+4931_daily_bin970.fits evtable="EVENTS" scfile=/scratch/kocevski/154316/ft2_4FGL_J1153.4+4931_daily_bin970.fits sctable="SC_DATA" expcube=/scratch/kocevski/154316/ltcube_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.fits outfile=/scratch/kocevski/154316/expmap_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.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/154316/ltcube_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.fits
.....................!
real 191.96
user 186.56
sys 4.91

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/154316/ft1_filtered_4FGL_J1153.4+4931_daily_bin970.fits scfile=/scratch/kocevski/154316/ft2_4FGL_J1153.4+4931_daily_bin970.fits outfile=/scratch/kocevski/154316/cmap_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.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.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.7941       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.686       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.9548       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .35217E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.7564       1.0000         .10000E-03   10000.    
    10 'Prefactor '    27.036       1.0000         .10000E-03   10000.    
    11 'norm      '    .10086E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .18516E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.8125       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .72440       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10238E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.649       1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .88719       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0346       1.0000         .10000E-03   10000.    
    25 'norm      '    6.2450       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .71491       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.2426       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67338       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=   3977.525     FROM MIGRAD    STATUS=CONVERGED    757 CALLS     3777 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.7939        193.66        .17786E-05   -.11415E-05
   2  Prefactor     18.682        89.579       -.26878E-06   -.65102E-05
   3  Prefactor     .10007E-03    241.60       -.12000E-04** at limit **
   4  norm          .10000E-03    1.3290       -.16683E-07** at limit **
   5  Prefactor     7.9577        30.916        .45427E-06   -.10719E-05
   6  Prefactor     .10001E-03    88.931       -.50877E-05** at limit **
   7  Prefactor     .10001E-03    31.766        .50076E-05** at limit **
   8  norm          .10000E-03    17.520        .42184E-06** at limit **
   9  Prefactor     7.7598        10.675        .17266E-06    .49440E-04
  10  Prefactor     27.045        37.294        .23505E-06    .37161E-04
  11  norm          .10000E-03    3.1634        .60622E-07** at limit **
  12  Prefactor     .10003E-03    136.52        .80608E-05** at limit **
  13  norm          .10000E-03    8.0898       -.33667E-07** at limit **
  14  norm          1.8081        1.5590        .22485E-06   -.22130E-03
  15  norm          .10000E-03    7.4533        .20125E-07** at limit **
  16  Prefactor     .71017        4.7511        .78774E-06   -.10379E-03
  17  Prefactor     .10001E-03    38.844       -.39293E-05** at limit **
  18  norm          .10000E-03    4.9506        .90192E-07** at limit **
  19  Prefactor     .10000E-03    24.985       -.20941E-05** at limit **
  20  Prefactor     11.655        9.4790        .10597E-06    .91407E-05
  21  norm          .10000E-03    1.7911        .87503E-07** at limit **
  22  norm          .88710        4.1586        .10810E-05   -.77260E-04
  23  Prefactor     .10000E-03    12.030       -.16707E-06** at limit **
  24  Prefactor     5.0346        7.2610        .43160E-05   -.63312E-03
  25  norm          6.2450        4.0568       -.52568E-06    .25324E-04
  26  Prefactor     .10000E-03    9.9102        .10825E-06** at limit **
  27  norm          .71542        2.7922        .73511E-06   -.15026E-03
  28  Normalizat    1.2427        .21248       -.10520E-05   -.10442E-03
  29  Prefactor     .67317        .24293       -.10820E-05   -.79239E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.7939
  Prefactor  = 18.6823
  Prefactor  = 0.000100074
  norm       = 0.0001
  Prefactor  = 7.95767
  Prefactor  = 0.000100008
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 7.75975
  Prefactor  = 27.0451
  norm       = 0.0001
  Prefactor  = 0.00010003
  norm       = 0.0001
  norm       = 1.80814
  norm       = 0.0001
  Prefactor  = 0.71017
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 11.6549
  norm       = 0.0001
  norm       = 0.887096
  Prefactor  = 0.0001
  Prefactor  = 5.03459
  norm       = 6.24501
  Prefactor  = 0.0001
  norm       = 0.715416
  Normalizat = 1.2427
  Prefactor  = 0.673171
 **********
 **   18 **HESSE 
 **********

 FCN=   3977.525     FROM HESSE     STATUS=OK           553 CALLS     4330 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.7939        193.51        .16685E-03   -1.5227    
   2  Prefactor     18.682        89.434        .92655E-04   -1.4843    
   3  Prefactor     .10007E-03    249.22        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3677        .14185E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.9577        30.907        .14216E-03   -1.5144    
   6  Prefactor     .10001E-03    92.061        .42642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    33.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    17.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.7598        10.660        .14398E-03   -1.5151    
  10  Prefactor     27.045        37.205        .77046E-04   -1.4667    
  11  norm          .10000E-03    3.2234        .10941E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10003E-03    140.58        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.0905        .17521E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.8081        1.5409        .68522E-04   -1.5439    
  15  norm          .10000E-03    7.4763        .16814E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .71017        8.6005        .24359E-02   -1.5539    
  17  Prefactor     .10001E-03    39.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    5.0229        .13677E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    25.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.655        9.4636        .11737E-03   -1.5025    
  21  norm          .10000E-03    3.0059        .16219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .88710        4.0041        .25000E-03   -1.5520    
  23  Prefactor     .10000E-03    12.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     5.0346        7.4206        .89605E-03   -1.5259    
  25  norm          6.2450        4.0649        .96634E-04   -1.5208    
  26  Prefactor     .10000E-03    9.9221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .71542        2.7983        .19855E-03   -1.5539    
  28  Normalizat    1.2427        .24235        .20127E-03   -.85293    
  29  Prefactor     .67317        .27859        .32129E-03   -1.0459    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72657e-08
Minuit parameter uncertainties:
  1  67.2043
  2  81.9511
  3  0.00861696
  4  4.56927e-06
  5  30.9694
  6  0.00168809
  7  0.00132529
  8  8.13637e-05
  9  10.6629
  10  37.2365
  11  6.46563e-07
  12  0.00412523
  13  5.01649e-06
  14  1.54094
  15  2.63013e-06
  16  4.94334
  17  0.00113673
  18  5.09399e-06
  19  0.000449379
  20  9.46483
  21  1.09611e-05
  22  3.76955
  23  2.37464e-05
  24  7.422
  25  4.06505
  26  1.65221e-05
  27  2.79886
  28  0.242569
  29  0.279163
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  7.102e-01  4.943e+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:  6.732e-01  2.792e-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.243e+00  2.426e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.02
Ra Dec: 178.350 49.517
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.91e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/154316/likelihoodResults_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.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) = 3977.05114713
delta logL = 0.473907162384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3976.98884855
delta logL = 0.536205739564

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44523       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0486       1.0000          .0000       10.000    
     3 'Normalizat'    1.1793       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71841       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=   3976.989     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      230 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .44444        9.3027        .94831E-02    .11908E-02
   2  Index         4.0500        3.6704        .12174        .11190E-03
   3  Normalizat    1.1793        .46160E-01    .35420E-01   -.26440E-05
   4  Prefactor     .71832        .56413E-01    .70473E-01   -.56991E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.444437
  Index      = 4.04996
  Normalizat = 1.17928
  Prefactor  = 0.718323
 **********
 **   18 **HESSE 
 **********

 FCN=   3976.989     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .44444        23.758        .43156E-03   -1.5575    
   2  Index         4.0500        6.9374        .59758E-02   -.19117    
   3  Normalizat    1.1793        .18079        .20579E-03   -.87246    
   4  Prefactor     .71832        .21886        .31187E-03   -1.0281    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.41237e-10
Minuit parameter uncertainties:
  1  6.50089
  2  8.07553
  3  0.180883
  4  0.219119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/154316': 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) = 3976.98884784
delta logL = 0.536206444805

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  4.444e-01  6.501e+00  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  4.050e+00  8.076e+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:  7.183e-01  2.191e-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.179e+00  1.809e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.14
Ra Dec: 178.350 49.517
Photon Index (Free Index): 4.05 +/- 8.08
Photon Flux (Free Index): 5.74e-08 +/- 7.20e-08
Energy Flux (Free Index): 8.53e-06 +/- 1.93e-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/154316/cmap_HighResolution_490752001_491011201_4FGL_J1153.4+4931_daily_bin970.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.91e-03', comment='SUCCESS', energy_flux2='8.53e-06', dlogl='5.36e-01', photon_flux2='5.74e-08', job_status='DONE', time_completed='2021-09-04 15:32:36.091310', photon_index_error2='8.08', photon_index2='4.05', ts='0.02', fit_tolerance='1e-08', GAL='0.67', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.93e-05', EG='1.24', time_epoch_completed='1630794756.09', return_code='0', job_id='154316', GAL2='0.72', EG2='1.18', return_code2='102', photon_flux_error2='7.20e-08', ts2='1.14', photon_index='2.41' WHERE bin_id='970' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:32:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0016>
Subject: Job 154316: <4FGL_J1153.4+4931_daily_bin970> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin970> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep  4 15:16:24 2021
Job was executed on host(s) <bullet0016>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:16:25 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:16:25 2021
Terminated at Sat Sep  4 15:32:36 2021
Results reported at Sat Sep  4 15:32:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin970 178.35 49.5169 490752001 491011201 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 :                                   725.12 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             231.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   971 sec.
    Turnaround time :                            972 sec.

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

