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


Performing analysis on: 4FGL_J1153.4+4931_daily_bin1348
RA = 178.35, Dec = 49.5169
tmin = 588729601, tmax = 588988801
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='156126', job_status='RUN', time_executed='2021-09-04 15:21:56.774193', time_epoch_executed='1630794116.77' WHERE source_name='4FGL J1153.4+4931' and cadence='daily' and bin_id='1348'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/156126

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/156126/ft1_4FGL_J1153.4+4931_daily_bin1348.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/156126/ft1_4FGL_J1153.4+4931_daily_bin1348.fits outfile=/scratch/kocevski/156126/ft1_filteredMKT_4FGL_J1153.4+4931_daily_bin1348.fits ra=178.35 dec=49.5169 rad=12.0 tmin=588729601.0 tmax=588988801.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.18
user 2.95
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits" evtable="EVENTS" scfile=/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits sctable="SC_DATA" outfile=/scratch/kocevski/156126/ltcube_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.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/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits
.....................!
real 12.31
user 11.94
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits sctable="SC_DATA" expcube=/scratch/kocevski/156126/ltcube_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.fits outfile=/scratch/kocevski/156126/expmap_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.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/156126/ltcube_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.fits
.....................!
real 191.27
user 185.52
sys 5.36

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/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits scfile=/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits outfile=/scratch/kocevski/156126/cmap_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits scfile=/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits outfile=/scratch/kocevski/156126/cmap_HighResolution_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.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/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits evtable="EVENTS" scfile=/scratch/kocevski/156126/ft2_4FGL_J1153.4+4931_daily_bin1348.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/156126/Model_4FGL_J1153.4+4931_daily_bin1348.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/156126/ft1_filtered_4FGL_J1153.4+4931_daily_bin1348.fits........................!
real 17.15
user 15.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    154.91       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    38.021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.9479       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14528E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10729E-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      '    .79489E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .51271E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    24.977       1.0000         .10000E-03   10000.    
    14 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3715.4       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .25445E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    255.50       1.0000         .10000E-03   10000.    
    22 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    13.460       1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12068E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.4987       1.0000         .10000E-03   10000.    
    28 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    29 'Prefactor '    .57992       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=   529.7590     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3748 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     154.46        258.43       -.34256E-03    .22705E-04
   2  Prefactor     .10000E-03    78.468        .64359E-04** at limit **
   3  Prefactor     .10000E-03    1102.0       -.81404E-03** at limit **
   4  norm          .10000E-03    1.3814        .29982E-07** at limit **
   5  Prefactor     38.029        76.215        .24744E-05    .94784E-05
   6  Prefactor     5.9406        21.525       -.16671E-04   -.42221E-04
   7  Prefactor     .10000E-03    500.36       -.65214E-04** at limit **
   8  norm          .10000E-03    520.96       -.99830E-04** at limit **
   9  Prefactor     .10000E-03    5.3640       -.26206E-06** at limit **
  10  Prefactor     .10000E-03    11.272        .47373E-06** at limit **
  11  norm          .10002E-03    763.88       -.56124E-04** at limit **
  12  Prefactor     .10000E-03    1568.7       -.18196E-03** at limit **
  13  norm          24.970        32.353       -.13240E-06    .19109E-04
  14  norm          .10000E-03    10.612       -.26658E-07** at limit **
  15  norm          .10000E-03    99.836       -.11984E-03** at limit **
  16  Prefactor     3717.9        1330.6        .49820E-03    .19723E-04
  17  Prefactor     .10000E-03    233.97        .23401E-03** at limit **
  18  norm          .10000E-03    3.3587        .42769E-07** at limit **
  19  Prefactor     .10001E-03    539.51        .14875E-04** at limit **
  20  Prefactor     .10000E-03    7.6143        .72112E-07** at limit **
  21  norm          255.28        262.41       -.14047E-03    .16291E-04
  22  norm          .10000E-03    12.443       -.43709E-06** at limit **
  23  Prefactor     .10000E-03    22.217        .10875E-06** at limit **
  24  Prefactor     13.463        22.574        .83939E-05    .60496E-04
  25  norm          .10000E-03    19.912       -.21858E-05** at limit **
  26  Prefactor     .10005E-03    39.842       -.66299E-05** at limit **
  27  norm          7.4976        6.4292       -.19515E-05    .43344E-04
  28  Normalizat    .10000E-01    .54104E-01   -.20714E-05** at limit **
  29  Prefactor     .57991        .27091        .14341E-04   -.13434E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 154.463
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 38.0288
  Prefactor  = 5.94061
  Prefactor  = 0.000100004
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100024
  Prefactor  = 0.000100005
  norm       = 24.9701
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3717.86
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 255.277
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 13.4632
  norm       = 0.000100001
  Prefactor  = 0.000100045
  norm       = 7.49765
  Normalizat = 0.01
  Prefactor  = 0.57991
 **********
 **   18 **HESSE 
 **********

 FCN=   529.7590     FROM HESSE     STATUS=OK           531 CALLS     4279 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     154.46        259.25        .16195E-03   -1.3216    
   2  Prefactor     .10000E-03    78.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1102.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.3815        .26408E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     38.029        76.226        .65000E-04   -1.4474    
   6  Prefactor     5.9406        21.529        .16465E-03   -1.5220    
   7  Prefactor     .10000E-03    500.28        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    520.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.3692        .52081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    11.272        .75512E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10002E-03    763.58        .20906E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1568.5        .21145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          24.970        32.439        .80153E-04   -1.4708    
  14  norm          .10000E-03    10.612        .73270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    99.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3717.9        1332.7        .41389E-04   -.25933    
  17  Prefactor     .10000E-03    233.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    3.3601        .41206E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    539.35        .21458E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.6143        .62060E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          255.28        262.39        .12675E-03   -1.2499    
  22  norm          .10000E-03    12.443        .79339E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    22.216        .10603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     13.463        22.424        .10918E-03   -1.4974    
  25  norm          .10000E-03    19.961        .99594E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10005E-03    39.918        .14204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.4976        6.4551        .50029E-04   -1.5160    
  28  Normalizat    .10000E-01    .54163E-01    .16500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .57991        .27365        .22034E-03   -1.0844    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.12505e-09
Minuit parameter uncertainties:
  1  261.196
  2  5.5323e-07
  3  0.00182795
  4  4.82269e-06
  5  76.4218
  6  21.5573
  7  0.00279597
  8  0.00110731
  9  8.00001e-05
  10  1.84657e-05
  11  0.00862196
  12  0.00572385
  13  32.4618
  14  0.000100884
  15  6.56793e-05
  16  1350.16
  17  0.000256631
  18  3.23104e-06
  19  0.00337948
  20  1.3758e-06
  21  263.613
  22  0.000138138
  23  0.000218208
  24  22.4378
  25  0.000221722
  26  0.00268717
  27  6.45573
  28  2.07166e-06
  29  0.27428
Done.

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

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  3.718e+03  1.350e+03  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:  5.799e-01  2.743e-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.000e-02  2.072e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 19.67
Ra Dec: 178.350 49.517
Photon Index (Fixed Index): 2.41 +/- 0.00
Photon Flux (Fixed Index): 3.64e-05 +/- 1.32e-05
Energy Flux (Fixed Index): 1.17e-02 +/- 4.27e-03

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) = 522.790274338
delta logL = 6.96874666514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 522.767675486
delta logL = 6.99134551735

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    139.71       1.0000         .10000E-03   10000.    
     2 'Index     '    4.7679       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69991       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=   522.7677     FROM MIGRAD    STATUS=CONVERGED     73 CALLS      295 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     139.77        234.91        .34081E-04   -.55218E-03
   2  Index         4.7677        .96059        .74076E-04   -.59086E-03
   3  Normalizat    .10000E-01    .50981E-01    .15909E-02** at limit **
   4  Prefactor     .69988        .24055        .20354E-03    .73923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 139.771
  Index      = 4.76769
  Normalizat = 0.01
  Prefactor  = 0.699875
 **********
 **   18 **HESSE 
 **********

 FCN=   522.7677     FROM HESSE     STATUS=OK            23 CALLS      318 TOTAL
                     EDM=   .49E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     139.77        231.57        .68161E-05   -1.3338    
   2  Index         4.7677        .94691        .14815E-04   -.46480E-01
   3  Normalizat    .10000E-01    .50980E-01    .31818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .69988        .24037        .40707E-04   -1.0353    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.87414e-10
Minuit parameter uncertainties:
  1  233.097
  2  0.952675
  3  4.62519e-07
  4  0.240727
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/156126': 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) = 522.767675415
delta logL = 6.99134558834

Extracting fit parameters...

4FGL J1153.4+4931
   Spectrum: PowerLaw
362    Prefactor:  1.398e+02  2.331e+02  1.000e-04  1.000e+04 ( 1.000e-12)
363        Index:  4.768e+00  9.527e-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:  6.999e-01  2.407e-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.000e-02  4.625e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 37.35
Ra Dec: 178.350 49.517
Photon Index (Free Index): 4.77 +/- 0.95
Photon Flux (Free Index): 6.35e-05 +/- 1.87e-05
Energy Flux (Free Index): 8.62e-03 +/- 2.54e-03

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/156126/cmap_HighResolution_588729601_588988801_4FGL_J1153.4+4931_daily_bin1348.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.64e-05', energy_flux2='8.62e-03', photon_flux_error='1.32e-05', dlogl='6.99e+00', energy_flux='1.17e-02', photon_flux2='6.35e-05', job_status='DONE', time_completed='2021-09-04 15:28:09.744917', photon_index_error2='0.95', photon_index2='4.77', ts='19.67', fit_tolerance='1e-08', GAL='0.58', photon_index_error='0.00', energy_flux_error2='2.54e-03', EG='0.01', time_epoch_completed='1630794489.74', return_code='0', job_id='156126', GAL2='0.70', EG2='0.01', return_code2='0', energy_flux_error='4.27e-03', photon_flux_error2='1.87e-05', ts2='37.35', photon_index='2.41' WHERE bin_id='1348' AND source_name='4FGL J1153.4+4931' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 15:28:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 156126: <4FGL_J1153.4+4931_daily_bin1348> in cluster <slac> Done

Job <4FGL_J1153.4+4931_daily_bin1348> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 15:21:39 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 15:21:41 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:21:41 2021
Terminated at Sat Sep  4 15:28:10 2021
Results reported at Sat Sep  4 15:28:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1153.4+4931_daily_bin1348 178.35 49.5169 588729601 588988801 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 :                                   371.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   389 sec.
    Turnaround time :                            391 sec.

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

