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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin471
RA = 172.875, Dec = -5.073
tmin = 361411201, tmax = 361670401
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='911505', job_status='RUN', time_executed='2021-09-04 03:13:24.822274', time_epoch_executed='1630750404.82' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911505

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911505/ft1_4FGL_J1131.4-0504_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911505/ft1_4FGL_J1131.4-0504_daily_bin471.fits outfile=/scratch/kocevski/911505/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin471.fits ra=172.875 dec=-5.073 rad=12.0 tmin=361411201.0 tmax=361670401.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.55
user 3.34
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.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/911505/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin471.fits evtable="EVENTS" outfile="/scratch/kocevski/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.51
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/911505/ltcube_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.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/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits
.....................!
real 12.65
user 12.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/911505/ltcube_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.fits outfile=/scratch/kocevski/911505/expmap_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.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/911505/ltcube_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.fits
.....................!
real 190.72
user 185.23
sys 5.01

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/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits outfile=/scratch/kocevski/911505/cmap_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.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.59
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits outfile=/scratch/kocevski/911505/cmap_HighResolution_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/911505/ft2_4FGL_J1131.4-0504_daily_bin471.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911505/Model_4FGL_J1131.4-0504_daily_bin471.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/911505/ft1_filtered_4FGL_J1131.4-0504_daily_bin471.fits.....................!
real 62.72
user 59.54
sys 1.56

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3156       1.0000         .10000E-03   10000.    
     2 'norm      '    27.176       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.917       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.490       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18620E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    67.333       1.0000         .10000E-03   10000.    
     8 'norm      '    7.4819       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1719       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    51.418       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3174       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.0045       1.0000         .10000E-03   10000.    
    14 'Prefactor '    31.546       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9515       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4083       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .31765E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    48.052       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.000       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80297       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0702       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=   6563.019     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     2956 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3156        .72470       -.13395E-07    .34651E-03
   2  norm          27.179        9.3914       -.13931E-07    .48922E-04
   3  Prefactor     .10000E-03    3.5155       -.38638E-07** at limit **
   4  Prefactor     27.913        30.899       -.83086E-06    .86949E-04
   5  Prefactor     12.488        18.277        .13478E-06    .10682E-03
   6  Prefactor     .10001E-03    6.2285       -.25497E-05** at limit **
   7  Prefactor     67.345        77.522       -.40425E-06   -.47449E-04
   8  norm          7.4786        7.2763       -.87677E-07    .19573E-03
   9  Prefactor     1.1743        3.7074        .59086E-06   -.18110E-03
  10  Prefactor     .10000E-03    5.5533       -.26547E-06** at limit **
  11  norm          51.391        30.816       -.35895E-06    .41794E-04
  12  Prefactor     2.3170        2.0531       -.10102E-06   -.72477E-04
  13  Prefactor     2.0868        109.31       -.20420E-06    .54050E-04
  14  Prefactor     31.552        32.603        .20232E-06    .11184E-04
  15  norm          1.9493        5.0041        .19284E-06   -.10721E-03
  16  Prefactor     4.4113        3.6662        .25995E-06    .50628E-03
  17  Prefactor     .10000E-03    78.952        .17486E-05** at limit **
  18  Prefactor     .10000E-03    10.877        .24728E-07** at limit **
  19  Prefactor     48.027        37.243        .72478E-06    .22547E-03
  20  Prefactor     .10000E-03    8.4310        .83046E-07** at limit **
  21  Prefactor     .10000E-03    6.1651        .10684E-06** at limit **
  22  Prefactor     .10000E-03    17.694        .23647E-06** at limit **
  23  Prefactor     13.998        20.718       -.35611E-06   -.13766E-04
  24  Normalizat    .80282        .21930        .50758E-05    .41164E-03
  25  Prefactor     1.0704        .16126       -.25540E-05    .28010E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3156
  norm       = 27.1791
  Prefactor  = 0.0001
  Prefactor  = 27.9126
  Prefactor  = 12.4878
  Prefactor  = 0.000100013
  Prefactor  = 67.3453
  norm       = 7.4786
  Prefactor  = 1.17426
  Prefactor  = 0.0001
  norm       = 51.3913
  Prefactor  = 2.31701
  Prefactor  = 2.08683
  Prefactor  = 31.552
  norm       = 1.9493
  Prefactor  = 4.41127
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 48.0268
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9984
  Normalizat = 0.802821
  Prefactor  = 1.07035
 **********
 **   18 **HESSE 
 **********

 FCN=   6563.019     FROM HESSE     STATUS=OK           431 CALLS     3387 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3156        .72420        .37190E-04   -1.5404    
   2  norm          27.179        9.3938        .76848E-04   -1.4665    
   3  Prefactor     .10000E-03    3.5225        .14827E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.913        30.715        .75823E-04   -1.4651    
   5  Prefactor     12.488        18.149        .11334E-03   -1.5001    
   6  Prefactor     .10001E-03    9.8616        .26891E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     67.345        77.673        .48913E-04   -1.4065    
   8  norm          7.4786        7.2884        .14662E-03   -1.5161    
   9  Prefactor     1.1743        6.7205        .16595E-02   -1.5491    
  10  Prefactor     .10000E-03    5.6279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          51.391        31.997        .27965E-03   -1.4273    
  12  Prefactor     2.3170        2.0498        .10508E-03   -1.5404    
  13  Prefactor     2.0868        114.87        .29248E-03   -1.5419    
  14  Prefactor     31.552        32.591        .71339E-04   -1.4584    
  15  norm          1.9493        5.2060        .14300E-02   -1.5429    
  16  Prefactor     4.4113        3.6334        .13046E-03   -1.5288    
  17  Prefactor     .10000E-03    100.24        .54953E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    10.912        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     48.027        37.496        .57846E-04   -1.4321    
  20  Prefactor     .10000E-03    8.5852        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    6.1981        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.720        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     13.998        20.753        .10705E-03   -1.4960    
  24  Normalizat    .80282        .24401        .33068E-03   -.99964    
  25  Prefactor     1.0704        .17422        .21568E-03   -.90420    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.34922e-09
Minuit parameter uncertainties:
  1  0.724206
  2  9.39435
  3  2.66182e-06
  4  30.7321
  5  18.1575
  6  0.000722298
  7  77.7897
  8  7.28923
  9  5.61913
  10  2.12712e-05
  11  32.008
  12  2.04987
  13  31.028
  14  32.6091
  15  5.20724
  16  3.6336
  17  0.000474589
  18  2.51253e-05
  19  37.5141
  20  3.84343e-05
  21  1.29207e-05
  22  7.24412e-05
  23  20.7635
  24  0.244345
  25  0.174309
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  5.139e+01  3.201e+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:  1.070e+00  1.743e-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:  8.028e-01  2.443e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 11.12
Ra Dec: 172.875 -5.073
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 4.26e-08 +/- 2.65e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.37e-05

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) = 6562.89043106
delta logL = 0.12816671887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6562.89025753
delta logL = 0.128340248553

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    60.254       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3004       1.0000          .0000       5.0000    
     3 'Normalizat'    .80884       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0711       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=   6562.890     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      291 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          60.264        36.735        .25844E-03    .29385E-04
   2  alpha         2.3006        .84456        .20924E-01    .13251E-03
   3  Normalizat    .80883        .22797        .32969E-03   -.31241E-04
   4  Prefactor     1.0711        .17104        .21571E-03    .54179E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 60.2638
  alpha      = 2.30059
  Normalizat = 0.808833
  Prefactor  = 1.07108
 **********
 **   18 **HESSE 
 **********

 FCN=   6562.890     FROM HESSE     STATUS=OK            25 CALLS      316 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          60.264        36.289        .10338E-04   -1.4154    
   2  alpha         2.3006        .83471        .41848E-02   -.79851E-01
   3  Normalizat    .80883        .22815        .13188E-04   -.99742    
   4  Prefactor     1.0711        .17121        .86285E-05   -.90396    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.15818e-11
Minuit parameter uncertainties:
  1  36.3022
  2  0.85116
  3  0.228417
  4  0.171294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911505': 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) = 6562.89025729
delta logL = 0.128340489536

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  6.026e+01  3.630e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.301e+00  8.512e-01  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.071e+00  1.713e-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:  8.088e-01  2.284e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 11.39
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 2.30 +/- 0.85
Photon Flux (Free Index): 3.19e-08 +/- 2.67e-08
Energy Flux (Free Index): 2.19e-05 +/- 1.25e-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/911505/cmap_HighResolution_361411201_361670401_4FGL_J1131.4-0504_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.26e-08', energy_flux2='2.19e-05', photon_flux_error='2.65e-08', dlogl='1.28e-01', energy_flux='2.20e-05', photon_flux2='3.19e-08', job_status='DONE', time_completed='2021-09-04 03:25:08.364213', photon_index_error2='0.85', photon_index2='2.30', ts='11.12', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.25e-05', EG='0.80', time_epoch_completed='1630751108.36', return_code='0', job_id='911505', GAL2='1.07', EG2='0.81', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='2.67e-08', ts2='11.39', photon_index='2.71' WHERE bin_id='471' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:25:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 911505: <4FGL_J1131.4-0504_daily_bin471> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin471> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:11:11 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:11:13 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:11:13 2021
Terminated at Sat Sep  4 03:25:09 2021
Results reported at Sat Sep  4 03:25:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin471 172.875 -5.073 361411201 361670401 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 :                                   695.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

