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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin963
RA = 172.875, Dec = -5.073
tmin = 488937601, tmax = 489196801
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='913421', job_status='RUN', time_executed='2021-09-04 03:18:50.871763', time_epoch_executed='1630750730.87' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='963'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913421

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913421/ft1_4FGL_J1131.4-0504_daily_bin963.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913421/ft1_4FGL_J1131.4-0504_daily_bin963.fits outfile=/scratch/kocevski/913421/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin963.fits ra=172.875 dec=-5.073 rad=12.0 tmin=488937601.0 tmax=489196801.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.54
user 3.32
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.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/913421/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin963.fits evtable="EVENTS" outfile="/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.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.52
user 0.33
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits" evtable="EVENTS" scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits sctable="SC_DATA" outfile=/scratch/kocevski/913421/ltcube_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.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/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits
.....................!
real 15.08
user 14.71
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits sctable="SC_DATA" expcube=/scratch/kocevski/913421/ltcube_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits outfile=/scratch/kocevski/913421/expmap_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.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/913421/ltcube_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits
.....................!
real 190.89
user 184.83
sys 5.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 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.4-0504 @ 172.875 -5.073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits outfile=/scratch/kocevski/913421/cmap_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.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=172.875 yref=-5.073 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.58
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits outfile=/scratch/kocevski/913421/cmap_HighResolution_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.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=172.875 yref=-5.073 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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits evtable="EVENTS" scfile=/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913421/Model_4FGL_J1131.4-0504_daily_bin963.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/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits.....................!
real 50.20
user 48.88
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits', '/scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits', expMap='/scratch/kocevski/913421/expmap_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits', expCube='/scratch/kocevski/913421/ltcube_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913421/Model_4FGL_J1131.4-0504_daily_bin963.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1131.4-0504'

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  4.260e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.714e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/913421/ft1_filtered_4FGL_J1131.4-0504_daily_bin963.fits
Spacecraft file(s): /scratch/kocevski/913421/ft2_4FGL_J1131.4-0504_daily_bin963.fits
Exposure map: /scratch/kocevski/913421/expmap_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits
Exposure cube: /scratch/kocevski/913421/ltcube_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913421/Model_4FGL_J1131.4-0504_daily_bin963.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) = 5092.50031609

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .66606       1.0000         .10000E-03   10000.    
     2 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    22.280       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    68.759       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10704E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.6535       1.0000         .10000E-03   10000.    
    11 'norm      '    19.268       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .67936       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .19329E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.007       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.5248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3954       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    7.7945       1.0000         .10000E-03   10000.    
    23 'Prefactor '    22.734       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1171       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .94031       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5092.496     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     3313 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .66586        .68693        .88413E-07    .18252E-03
   2  norm          .10000E-03    3.4420        .12717E-06** at limit **
   3  Prefactor     14.785        11.847        .95554E-07   -.17800E-04
   4  Prefactor     22.275        17.461        .43659E-06   -.27930E-04
   5  Prefactor     .10000E-03    5.2043        .19403E-06** at limit **
   6  Prefactor     .10000E-03    1.3079        .38784E-07** at limit **
   7  Prefactor     68.738        61.602       -.12053E-05   -.42020E-04
   8  norm          .10000E-03    2.9553        .86357E-07** at limit **
   9  Prefactor     .10001E-03    3.1353        .94725E-06** at limit **
  10  Prefactor     7.6533        9.6061        .33021E-06   -.95932E-05
  11  norm          19.252        20.467       -.83157E-06   -.63854E-04
  12  Prefactor     .68031        1.9649        .62638E-06    .76815E-04
  13  Prefactor     .10016E-03    30.265       -.20780E-06** at limit **
  14  Prefactor     13.984        37.029       -.68592E-06   -.16967E-04
  15  norm          .10000E-03    2.5276       -.12786E-07** at limit **
  16  Prefactor     3.5259        3.1934       -.22043E-07   -.42463E-04
  17  Prefactor     3.3975        14.874        .25844E-06   -.13925E-04
  18  Prefactor     .10000E-03    14.193        .23410E-06** at limit **
  19  Prefactor     .10000E-03    17.599       -.40213E-06** at limit **
  20  Prefactor     .10000E-03    3.4677        .37668E-07** at limit **
  21  Prefactor     .10000E-03    11.818       -.28260E-06** at limit **
  22  Prefactor     7.7582        67.073       -.34131E-05   -.22558E-04
  23  Prefactor     22.724        23.996        .87753E-06    .15011E-04
  24  Normalizat    1.1176        .23627       -.34866E-05   -.95505E-04
  25  Prefactor     .94009        .16622        .10538E-05   -.30052E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.665859
  norm       = 0.0001
  Prefactor  = 14.7846
  Prefactor  = 22.2755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.738
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 7.65334
  norm       = 19.2518
  Prefactor  = 0.680313
  Prefactor  = 0.000100158
  Prefactor  = 13.9844
  norm       = 0.0001
  Prefactor  = 3.5259
  Prefactor  = 3.39753
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.75815
  Prefactor  = 22.7243
  Normalizat = 1.1176
  Prefactor  = 0.940095
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.496     FROM HESSE     STATUS=OK           431 CALLS     3744 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .66586        .65546        .51474E-03   -1.5545    
   2  norm          .10000E-03    3.4648        .12936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.785        11.724        .10416E-03   -1.4939    
   4  Prefactor     22.275        17.456        .84858E-04   -1.4764    
   5  Prefactor     .10000E-03    5.2168        .15899E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.3107        .79702E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.738        61.667        .24203E-03   -1.4048    
   8  norm          .10000E-03    2.9602        .11981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    11.762        .21958E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.6533        9.6059        .14495E-03   -1.5155    
  11  norm          19.252        20.461        .91245E-04   -1.4830    
  12  Prefactor     .68031        1.9173        .16262E-03   -1.5543    
  13  Prefactor     .10016E-03    214.24        .71877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.984        37.029        .10702E-03   -1.4960    
  15  norm          .10000E-03    2.5346        .11077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.5259        3.1856        .11618E-03   -1.5332    
  17  Prefactor     3.3975        14.852        .21956E-03   -1.5339    
  18  Prefactor     .10000E-03    14.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    17.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.4797        .12979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     7.7582        67.166        .14363E-03   -1.5151    
  23  Prefactor     22.724        24.018        .84009E-04   -1.4754    
  24  Normalizat    1.1176        .25937        .27844E-03   -.89189    
  25  Prefactor     .94009        .19034        .22137E-03   -.94754    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31977e-09
Minuit parameter uncertainties:
  1  0.655465
  2  6.39265e-06
  3  11.7259
  4  17.4604
  5  2.68756e-06
  6  1.40963e-06
  7  61.7246
  8  9.63923e-07
  9  0.000488717
  10  9.60785
  11  20.4685
  12  1.91745
  13  0.0116614
  14  37.0896
  15  4.75221e-06
  16  3.18575
  17  14.2128
  18  1.77076e-05
  19  1.03416e-05
  20  3.00364e-06
  21  4.27805e-05
  22  45.7233
  23  24.0283
  24  0.25967
  25  0.190471
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.925e+01  2.047e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.714e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  9.401e-01  1.905e-01  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  1.118e+00  2.597e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.91
Ra Dec: 172.875 -5.073
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.70e-08
Energy Flux (Fixed Index): 8.22e-06 +/- 8.75e-06

TS (Fixed Index): 1.91
Ra Dec: 172.875 -5.073
Photon Flux Upper Limit: 6.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913421/likelihoodResults_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.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): 0
logL (Free Index) = 5091.1156898
delta logL = 1.38026816705

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5091.00394356
delta logL = 1.49201439773

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.059       1.0000         .10000E-03   10000.    
     2 'alpha     '    .15038E-03   1.0000          .0000       5.0000    
     3 'Normalizat'    1.1208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94506       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5091.004     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      240 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.054        10.100       -.11378E-04    .10626E-02
   2  alpha         .19659E-06    3.7455       -.30201E-03** at limit **
   3  Normalizat    1.1205        .21375        .41053E-07   -.97970E-05
   4  Prefactor     .94532        .15811        .29590E-07    .10915E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.0537
  alpha      = 1.96593e-07
  Normalizat = 1.12049
  Prefactor  = 0.945323
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.004     FROM HESSE     STATUS=OK            33 CALLS      273 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.054        13.064        .12634E-03   -1.5074    
   2  alpha         .19659E-06    3.9298        .50000       -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.1205        .25087        .27810E-03   -.89097    
   4  Prefactor     .94532        .18571        .22073E-03   -.94575    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0234e-09
Minuit parameter uncertainties:
  1  13.0679
  2  0.00170009
  3  0.251139
  4  0.185834
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913421': 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) = 5091.00393637
delta logL = 1.49202159186

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.005e+01  1.307e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.966e-07  1.700e-03  0.000e+00  5.000e+00 ( 1.000e+00)
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  9.453e-01  1.858e-01  0.000e+00  1.000e+01 ( 1.000e+00)
630        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
631        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
628   Normalization:  1.120e+00  2.511e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.89
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 4.24e-09 +/- 5.51e-09
Energy Flux (Free Index): 1.78e-05 +/- 2.31e-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/913421/cmap_HighResolution_488937601_489196801_4FGL_J1131.4-0504_daily_bin963.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.36e-05', comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='1.78e-05', photon_flux_error='1.70e-08', dlogl='1.49e+00', energy_flux='8.22e-06', photon_flux2='4.24e-09', job_status='DONE', time_completed='2021-09-04 03:30:56.897946', photon_index_error2='0.00', photon_index2='0.00', ts='1.91', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', photon_flux_upper_limit='6.51e-08', energy_flux_error2='2.31e-05', EG='1.12', time_epoch_completed='1630751456.9', return_code='0', job_id='913421', GAL2='0.95', EG2='1.12', return_code2='0', energy_flux_error='8.75e-06', photon_flux_error2='5.51e-09', ts2='4.89', photon_index='2.71' WHERE bin_id='963' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:30:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0136>
Subject: Job 913421: <4FGL_J1131.4-0504_daily_bin963> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin963> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:55 2021
Job was executed on host(s) <bullet0136>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:16:56 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 03:16:56 2021
Terminated at Sat Sep  4 03:30:57 2021
Results reported at Sat Sep  4 03:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin963 172.875 -5.073 488937601 489196801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1131.4-0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   711.20 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            842 sec.

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

