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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin997
RA = 172.875, Dec = -5.073
tmin = 497750401, tmax = 498009601
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='913455', job_status='RUN', time_executed='2021-09-04 03:19:48.899254', time_epoch_executed='1630750788.9' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='997'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913455

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913455/ft1_4FGL_J1131.4-0504_daily_bin997.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913455/ft1_4FGL_J1131.4-0504_daily_bin997.fits outfile=/scratch/kocevski/913455/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin997.fits ra=172.875 dec=-5.073 rad=12.0 tmin=497750401.0 tmax=498009601.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 4.74
user 4.51
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.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/913455/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin997.fits evtable="EVENTS" outfile="/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.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.50
user 0.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits" evtable="EVENTS" scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits sctable="SC_DATA" outfile=/scratch/kocevski/913455/ltcube_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.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/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits
.....................!
real 11.77
user 11.40
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits sctable="SC_DATA" expcube=/scratch/kocevski/913455/ltcube_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits outfile=/scratch/kocevski/913455/expmap_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.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/913455/ltcube_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits
.....................!
real 189.37
user 184.96
sys 3.88

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/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits outfile=/scratch/kocevski/913455/cmap_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.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.56
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits outfile=/scratch/kocevski/913455/cmap_HighResolution_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.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.57
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits evtable="EVENTS" scfile=/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913455/Model_4FGL_J1131.4-0504_daily_bin997.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/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits.....................!
real 46.54
user 45.24
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits', '/scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits', expMap='/scratch/kocevski/913455/expmap_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits', expCube='/scratch/kocevski/913455/ltcube_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913455/Model_4FGL_J1131.4-0504_daily_bin997.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/913455/ft1_filtered_4FGL_J1131.4-0504_daily_bin997.fits
Spacecraft file(s): /scratch/kocevski/913455/ft2_4FGL_J1131.4-0504_daily_bin997.fits
Exposure map: /scratch/kocevski/913455/expmap_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits
Exposure cube: /scratch/kocevski/913455/ltcube_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913455/Model_4FGL_J1131.4-0504_daily_bin997.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) = 4710.43318532

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    19.023       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.641       1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1857       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11613       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    20.867       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .49239E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .11734E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21669       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.072       1.0000         .10000E-03   10000.    
    15 'norm      '    .83079E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.462       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    7.6878       1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.957       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .94612       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0515       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4710.433     FROM MIGRAD    STATUS=CONVERGED   1040 CALLS     4135 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .28377        .64681E-03** at limit **
   2  norm          19.022        9.3273        .91829E-04   -.29465E-04
   3  Prefactor     12.637        10.186        .11267E-03    .28748E-03
   4  Prefactor     7.1829        15.444        .14964E-03   -.24008E-04
   5  Prefactor     .10000E-03    7.8108        .18142E-02** at limit **
   6  Prefactor     .10594        77.826        .22567E-02    .11642E-03
   7  Prefactor     .10000E-03    20.508        .18142E-02** at limit **
   8  norm          20.879        14.080        .87682E-04   -.61868E-03
   9  Prefactor     .10013E-03    33.631        .21916E-02** at limit **
  10  Prefactor     .10000E-03    5.8500        .16122E-02** at limit **
  11  norm          .10000E-03    50.279        .18142E-02** at limit **
  12  Prefactor     .21428        8.3413        .16463E-02   -.77056E-03
  13  Prefactor     .10000E-03    64.047        .18142E-02** at limit **
  14  Prefactor     35.074        47.210        .67669E-04   -.68882E-05
  15  norm          .22684E-01    5.0017        .48513E-01    .45660E-03
  16  Prefactor     .10000E-03    1.6112        .84664E-03** at limit **
  17  Prefactor     .10000E-03    11.017        .18142E-02** at limit **
  18  Prefactor     20.468        28.908        .88544E-04   -.12069E-04
  19  Prefactor     .10000E-03    19.024        .18142E-02** at limit **
  20  Prefactor     .10000E-03    7.3318        .18048E-02** at limit **
  21  Prefactor     7.6891        10.733        .14463E-03    .59112E-04
  22  Prefactor     35.945        33.599        .66833E-04   -.22488E-04
  23  Prefactor     .10000E-03    12.025        .18142E-02** at limit **
  24  Normalizat    .94623        .26780        .29050E-03   -.39938E-03
  25  Prefactor     1.0516        .19303        .20827E-03    .16758E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 19.0222
  Prefactor  = 12.6367
  Prefactor  = 7.18294
  Prefactor  = 0.0001
  Prefactor  = 0.105943
  Prefactor  = 0.0001
  norm       = 20.8792
  Prefactor  = 0.000100132
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.214284
  Prefactor  = 0.000100001
  Prefactor  = 35.0742
  norm       = 0.0226836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.4676
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.68915
  Prefactor  = 35.945
  Prefactor  = 0.0001
  Normalizat = 0.946228
  Prefactor  = 1.0516
 **********
 **   18 **HESSE 
 **********

 FCN=   4710.433     FROM HESSE     STATUS=OK           415 CALLS     4550 TOTAL
                     EDM=   .86E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .28383        .12936E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          19.022        9.3258        .36732E-05   -1.4835    
   3  Prefactor     12.637        10.183        .45066E-05   -1.4997    
   4  Prefactor     7.1829        15.439        .59855E-05   -1.5172    
   5  Prefactor     .10000E-03    7.8118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10594        72.562        .90268E-04   -1.5643    
   7  Prefactor     .10000E-03    20.508        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          20.879        13.536        .17536E-04   -1.4794    
   9  Prefactor     .10013E-03    34.049        .43832E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8520        .32245E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    50.301        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21428        8.2627        .65852E-04   -1.5615    
  13  Prefactor     .10000E-03    64.082        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     35.074        47.223        .27068E-05   -1.4523    
  15  norm          .22684E-01    5.0035        .48488E-01   -1.5678    
  16  Prefactor     .10000E-03    1.6113        .16933E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.019        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     20.468        28.906        .35418E-05   -1.4803    
  19  Prefactor     .10000E-03    19.024        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.3349        .36095E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     7.6891        10.731        .57851E-05   -1.5153    
  22  Prefactor     35.945        33.598        .13367E-04   -1.4508    
  23  Prefactor     .10000E-03    12.026        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .94623        .26608        .58100E-04   -.94854    
  25  Prefactor     1.0516        .19306        .83309E-05   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.62276e-09
Minuit parameter uncertainties:
  1  8.64016e-06
  2  9.32651
  3  10.1842
  4  15.4479
  5  5.30323e-06
  6  5.54938
  7  0.000110907
  8  13.5383
  9  0.00424765
  10  1.78321e-05
  11  0.000104873
  12  2.66103
  13  0.000430563
  14  47.2736
  15  0.672354
  16  6.35471e-06
  17  1.45606e-05
  18  28.9256
  19  0.000104993
  20  3.33754e-05
  21  10.7338
  22  33.6159
  23  7.99376e-05
  24  0.26645
  25  0.193188
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.049e-04  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:  1.052e+00  1.932e-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:  9.462e-01  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913455/likelihoodResults_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.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) = 4710.43275824
delta logL = -9.46826266954e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4710.4326651
delta logL = -1.54823555931e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11448E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.4489       1.0000          .0000       5.0000    
     3 'Normalizat'    .94623       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0516       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4710.433     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      284 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    841.30        .18142E-01** at limit **
   2  alpha         2.5419        3.1894        .18288        .60175E-07
   3  Normalizat    .94624        .23861E-01    .29050E-03    .55436E-03
   4  Prefactor     1.0516        .18051E-01    .20827E-03    .63343E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100035
  alpha      = 2.54188
  Normalizat = 0.94624
  Prefactor  = 1.0516
 **********
 **   18 **HESSE 
 **********

 FCN=   4710.433     FROM HESSE     STATUS=OK            23 CALLS      307 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    52.328        .72569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5419        3.6674        .73153E-02    .16752E-01
   3  Normalizat    .94624        .25213        .58100E-04   -.94854    
   4  Prefactor     1.0516        .19080        .41654E-04   -.91029    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.50282e-09
Minuit parameter uncertainties:
  1  0.002697
  2  756.82
  3  0.252446
  4  0.190928
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913455': 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) = 4710.43266352
delta logL = 3.23780113831e-08

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  2.697e-03  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.542e+00  7.568e+02  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:  1.052e+00  1.909e-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:  9.462e-01  2.524e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.875 -5.073

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/913455/cmap_HighResolution_497750401_498009601_4FGL_J1131.4-0504_daily_bin997.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='5.96e-08', time_completed='2021-09-04 03:32:04.007302', job_id='913455', GAL2='1.05', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630751524.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='3.24e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='997' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:32:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0217>
Subject: Job 913455: <4FGL_J1131.4-0504_daily_bin997> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin997> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:58 2021
Job was executed on host(s) <bullet0217>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:17:00 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:17:00 2021
Terminated at Sat Sep  4 03:32:04 2021
Results reported at Sat Sep  4 03:32:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin997 172.875 -5.073 497750401 498009601 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 :                                   730.35 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             291.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

