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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin807
RA = 172.875, Dec = -5.073
tmin = 448502401, tmax = 448761601
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='913208', job_status='RUN', time_executed='2021-09-04 03:20:08.503372', time_epoch_executed='1630750808.5' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='807'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913208

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913208/ft1_4FGL_J1131.4-0504_daily_bin807.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913208/ft1_4FGL_J1131.4-0504_daily_bin807.fits outfile=/scratch/kocevski/913208/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin807.fits ra=172.875 dec=-5.073 rad=12.0 tmin=448502401.0 tmax=448761601.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 6.12
user 5.75
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.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/913208/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin807.fits evtable="EVENTS" outfile="/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.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 2.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits" evtable="EVENTS" scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits sctable="SC_DATA" outfile=/scratch/kocevski/913208/ltcube_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.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/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits
.....................!
real 12.64
user 11.23
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits sctable="SC_DATA" expcube=/scratch/kocevski/913208/ltcube_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits outfile=/scratch/kocevski/913208/expmap_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.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/913208/ltcube_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits
.....................!
real 190.94
user 184.86
sys 5.08

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/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits outfile=/scratch/kocevski/913208/cmap_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.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.54
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits outfile=/scratch/kocevski/913208/cmap_HighResolution_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits evtable="EVENTS" scfile=/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913208/Model_4FGL_J1131.4-0504_daily_bin807.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/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits.....................!
real 49.75
user 48.32
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits', '/scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits', expMap='/scratch/kocevski/913208/expmap_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits', expCube='/scratch/kocevski/913208/ltcube_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/913208/Model_4FGL_J1131.4-0504_daily_bin807.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/913208/ft1_filtered_4FGL_J1131.4-0504_daily_bin807.fits
Spacecraft file(s): /scratch/kocevski/913208/ft2_4FGL_J1131.4-0504_daily_bin807.fits
Exposure map: /scratch/kocevski/913208/expmap_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits
Exposure cube: /scratch/kocevski/913208/ltcube_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/913208/Model_4FGL_J1131.4-0504_daily_bin807.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5140.20457047

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.3076       1.0000         .10000E-03   10000.    
     2 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.9080       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    8.9374       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1829       1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.945       1.0000         .10000E-03   10000.    
     8 'norm      '    .10633E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .28064       1.0000         .10000E-03   10000.    
    11 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0348       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.9486       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10575E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.468       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.967       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10186E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10137E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4357       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71951       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=   5140.186     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2910 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3055        1.3883        .39473E-06   -.86488E-04
   2  norm          .10000E-03    6.9417        .19203E-06** at limit **
   3  Prefactor     1.9590        61.679       -.61327E-05   -.92584E-04
   4  Prefactor     .10000E-03    10.248       -.47767E-06** at limit **
   5  Prefactor     8.9238        10.732       -.11549E-06    .31330E-04
   6  Prefactor     3.1843        6.2149        .40325E-06    .12301E-03
   7  Prefactor     22.958        42.663        .18071E-05    .85302E-04
   8  norm          .10000E-03    4.2748        .10886E-07** at limit **
   9  Prefactor     .10000E-03    3.4299       -.70484E-06** at limit **
  10  Prefactor     .35495        6.8241        .53879E-06   -.11258E-03
  11  norm          .10000E-03    11.914       -.18173E-06** at limit **
  12  Prefactor     3.0361        3.1096        .16677E-06    .49119E-04
  13  Prefactor     .10000E-03    134.58       -.31013E-05** at limit **
  14  Prefactor     .10000E-03    12.750        .45621E-06** at limit **
  15  norm          6.9498        6.4220        .18689E-05   -.17125E-03
  16  Prefactor     .10000E-03    1.6661       -.10628E-06** at limit **
  17  Prefactor     .10000E-03    4.8382        .25472E-07** at limit **
  18  Prefactor     .10000E-03    12.330        .18125E-06** at limit **
  19  Prefactor     24.497        27.478        .34954E-06    .50802E-04
  20  Prefactor     .10000E-03    6.3065        .34928E-06** at limit **
  21  Prefactor     33.972        18.197       -.48063E-06   -.15871E-03
  22  Prefactor     .10000E-03    17.742       -.18682E-06** at limit **
  23  Prefactor     .10000E-03    9.2519        .45153E-06** at limit **
  24  Normalizat    1.4354        .24256       -.15704E-06    .92169E-04
  25  Prefactor     .71947        .16556       -.14121E-05    .12336E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.30552
  norm       = 0.0001
  Prefactor  = 1.95902
  Prefactor  = 0.0001
  Prefactor  = 8.92382
  Prefactor  = 3.18426
  Prefactor  = 22.9581
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.354955
  norm       = 0.0001
  Prefactor  = 3.03608
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 6.94981
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.4966
  Prefactor  = 0.0001
  Prefactor  = 33.9716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.43545
  Prefactor  = 0.719474
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.186     FROM HESSE     STATUS=OK           421 CALLS     3331 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3055        1.3923        .19974E-03   -1.5404    
   2  norm          .10000E-03    7.1124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     1.9590        65.758        .30100E-03   -1.5428    
   4  Prefactor     .10000E-03    10.322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     8.9238        10.709        .13407E-03   -1.5110    
   6  Prefactor     3.1843        6.1538        .22714E-03   -1.5351    
   7  Prefactor     22.958        42.992        .83622E-04   -1.4749    
   8  norm          .10000E-03    4.2820        .14469E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.4767        .24775E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .35495        28.682        .35714E-02   -1.5589    
  11  norm          .10000E-03    11.923        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.0361        3.1044        .12128E-03   -1.5359    
  13  Prefactor     .10000E-03    138.19        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.779        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.9498        6.5716        .76097E-03   -1.5181    
  16  Prefactor     .10000E-03    1.6852        .90372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.8414        .15402E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.497        27.526        .80982E-04   -1.4718    
  20  Prefactor     .10000E-03    6.3703        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.972        18.348        .68757E-04   -1.4542    
  22  Prefactor     .10000E-03    17.751        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    9.2897        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.4354        .28954        .26059E-03   -.79609    
  25  Prefactor     .71947        .19604        .24992E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26724e-08
Minuit parameter uncertainties:
  1  1.39232
  2  1.54432e-05
  3  22.7266
  4  6.59965e-05
  5  10.7109
  6  6.15498
  7  43.0503
  8  4.52799e-06
  9  0.000180878
  10  6.38375
  11  1.39161e-05
  12  3.10458
  13  0.000904164
  14  6.13247e-05
  15  6.57229
  16  6.81081e-06
  17  1.61674e-06
  18  2.27892e-05
  19  27.5405
  20  2.98028e-05
  21  18.3506
  22  1.64008e-05
  23  5.36485e-05
  24  0.28987
  25  0.196234
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.392e-05  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:  7.195e-01  1.962e-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.435e+00  2.899e-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: 4.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913208/likelihoodResults_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.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) = 5140.18591192
delta logL = -0.000398749466513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5140.18551316
delta logL = 1.34541551233e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7048       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4355       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71948       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=   5140.186     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      238 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    813.37        .18142E-01** at limit **
   2  alpha         1.5024        3.2393        .16531        .19600E-07
   3  Normalizat    1.4354        .45559E-01    .26059E-03    .36646E-04
   4  Prefactor     .71947        .32319E-01    .24992E-03    .38803E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.50238
  Normalizat = 1.43545
  Prefactor  = 0.719474
 **********
 **   18 **HESSE 
 **********

 FCN=   5140.186     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.541        .27488E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5024        2.9002        .66124E-02   -.41048    
   3  Normalizat    1.4354        .27453        .10424E-04   -.79609    
   4  Prefactor     .71947        .19474        .99966E-05   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.61723e-11
Minuit parameter uncertainties:
  1  1.97023e-05
  2  836.28
  3  0.274814
  4  0.194925
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913208': 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) = 5140.18551222
delta logL = 9.51608853939e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.970e-05  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.502e+00  8.363e+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:  7.195e-01  1.949e-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.435e+00  2.748e-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/913208/cmap_HighResolution_448502401_448761601_4FGL_J1131.4-0504_daily_bin807.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.39e-05', job_status='DONE', photon_flux_upper_limit='4.63e-08', time_completed='2021-09-04 03:31:42.908693', job_id='913208', GAL2='0.72', fit_tolerance='1e-08', EG2='1.44', EG='1.44', time_epoch_completed='1630751502.91', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='9.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='807' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:31:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0220>
Subject: Job 913208: <4FGL_J1131.4-0504_daily_bin807> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin807> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:40 2021
Job was executed on host(s) <bullet0220>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:16: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 03:16:41 2021
Terminated at Sat Sep  4 03:31:43 2021
Results reported at Sat Sep  4 03:31:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin807 172.875 -5.073 448502401 448761601 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 :                                   684.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             275.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   902 sec.
    Turnaround time :                            903 sec.

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

