/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 150 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 = 7271
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin327
RA = 172.875, Dec = -5.073
tmin = 324086401, tmax = 324345601
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='909916', job_status='RUN', time_executed='2021-09-04 03:08:48.178626', time_epoch_executed='1630750128.18' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='327'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/909916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/909916/ft1_4FGL_J1131.4-0504_daily_bin327.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/909916/ft1_4FGL_J1131.4-0504_daily_bin327.fits outfile=/scratch/kocevski/909916/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin327.fits ra=172.875 dec=-5.073 rad=12.0 tmin=324086401.0 tmax=324345601.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.29
user 4.03
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/909916/ft1_filtered_4FGL_J1131.4-0504_daily_bin327.fits" evtable="EVENTS" scfile=/scratch/kocevski/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits sctable="SC_DATA" outfile=/scratch/kocevski/909916/ltcube_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.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/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits
.....................!
real 12.58
user 12.16
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/909916/ft1_filtered_4FGL_J1131.4-0504_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits sctable="SC_DATA" expcube=/scratch/kocevski/909916/ltcube_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.fits outfile=/scratch/kocevski/909916/expmap_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.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/909916/ltcube_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.fits
.....................!
real 192.66
user 186.42
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/909916/ft1_filtered_4FGL_J1131.4-0504_daily_bin327.fits scfile=/scratch/kocevski/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits outfile=/scratch/kocevski/909916/cmap_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.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.55
user 0.35
sys 0.17

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/909916/ft1_filtered_4FGL_J1131.4-0504_daily_bin327.fits evtable="EVENTS" scfile=/scratch/kocevski/909916/ft2_4FGL_J1131.4-0504_daily_bin327.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/909916/Model_4FGL_J1131.4-0504_daily_bin327.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/909916/ft1_filtered_4FGL_J1131.4-0504_daily_bin327.fits.....................!
real 53.40
user 51.82
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6873       1.0000         .10000E-03   10000.    
     2 'norm      '    7.6629       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .15986E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.891       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.270       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.7551       1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    8.0937       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.631       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    29.305       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    36.381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    90.127       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .89419       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .96468       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=   5247.335     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2509 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6881        .86424       -.31900E-06   -.72371E-02
   2  norm          7.6627        5.5775       -.24225E-08    .10415E-04
   3  Prefactor     .10042E-03    26.337        .68606E-05** at limit **
   4  Prefactor     .10000E-03    38.840       -.12651E-05** at limit **
   5  Prefactor     11.890        12.768       -.57561E-06    .11160E-03
   6  Prefactor     16.270        7.4821        .81990E-07   -.12913E-03
   7  Prefactor     .10000E-03    90.014        .14732E-05** at limit **
   8  norm          .10000E-03    4.4643        .11924E-06** at limit **
   9  Prefactor     .10000E-03    2.4815        .17187E-06** at limit **
  10  Prefactor     1.7537        15.294        .19146E-05    .46338E-03
  11  norm          .10000E-03    8.1729        .14526E-06** at limit **
  12  Prefactor     3.3870        3.3488        .15422E-06   -.13817E-03
  13  Prefactor     .10000E-03    30.300        .19315E-05** at limit **
  14  Prefactor     .10000E-03    23.473       -.36268E-06** at limit **
  15  norm          8.0993        7.1601        .16820E-06    .55431E-04
  16  Prefactor     .10000E-03    5.3722        .80894E-06** at limit **
  17  Prefactor     13.641        21.305        .84626E-07    .22576E-05
  18  Prefactor     .10000E-03    33.964        .44678E-06** at limit **
  19  Prefactor     29.303        47.222        .79757E-07   -.42058E-05
  20  Prefactor     .10000E-03    3.0699        .10724E-07** at limit **
  21  Prefactor     36.383        21.427        .19580E-06   -.36446E-04
  22  Prefactor     90.130        59.971       -.57877E-07   -.20783E-04
  23  Prefactor     .10000E-03    7.6439       -.67008E-07** at limit **
  24  Normalizat    .89441        .23438       -.12177E-05   -.32133E-03
  25  Prefactor     .96458        .15955       -.54890E-07   -.35590E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.68812
  norm       = 7.66269
  Prefactor  = 0.000100419
  Prefactor  = 0.0001
  Prefactor  = 11.89
  Prefactor  = 16.2697
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.75375
  norm       = 0.0001
  Prefactor  = 3.38697
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 8.09926
  Prefactor  = 0.0001
  Prefactor  = 13.6415
  Prefactor  = 0.0001
  Prefactor  = 29.3032
  Prefactor  = 0.0001
  Prefactor  = 36.3825
  Prefactor  = 90.1297
  Prefactor  = 0.0001
  Normalizat = 0.894407
  Prefactor  = 0.964585
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.335     FROM HESSE     STATUS=OK           421 CALLS     2930 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6881        .89200        .37388E-04   -1.5380    
   2  norm          7.6627        5.5771        .14207E-03   -1.5154    
   3  Prefactor     .10042E-03    61.122        .40512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    39.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.890        12.666        .11617E-03   -1.5018    
   6  Prefactor     16.270        7.4954        .99293E-04   -1.4901    
   7  Prefactor     .10000E-03    90.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.4783        .14942E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    2.5016        .11135E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.7537        18.059        .15820E-02   -1.5443    
  11  norm          .10000E-03    8.1749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     3.3870        3.3543        .12262E-03   -1.5340    
  13  Prefactor     .10000E-03    30.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.505        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          8.0993        7.1370        .14093E-03   -1.5139    
  16  Prefactor     .10000E-03    5.4946        .32393E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.641        21.291        .54244E-03   -1.4969    
  18  Prefactor     .10000E-03    34.350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     29.303        47.196        .74010E-04   -1.4625    
  20  Prefactor     .10000E-03    3.0764        .12395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     36.383        21.502        .66444E-04   -1.4501    
  22  Prefactor     90.130        59.974        .42326E-04   -1.3806    
  23  Prefactor     .10000E-03    7.6506        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .89441        .27243        .31537E-03   -.96657    
  25  Prefactor     .96458        .18501        .22011E-03   -.93919    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.66724e-09
Minuit parameter uncertainties:
  1  0.892
  2  5.57745
  3  0.0101359
  4  0.000225304
  5  12.6692
  6  7.49583
  7  0.000711503
  8  2.43084e-06
  9  2.02127e-06
  10  11.2594
  11  1.13577e-05
  12  3.35447
  13  0.00032911
  14  7.77097e-05
  15  7.1378
  16  4.77051e-05
  17  21.3032
  18  8.86214e-05
  19  47.2557
  20  7.90983e-07
  21  21.5063
  22  60.0146
  23  9.36553e-06
  24  0.272846
  25  0.185129
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.136e-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:  9.646e-01  1.851e-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.944e-01  2.728e-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: 3.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/909916/likelihoodResults_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.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) = 5247.33533289
delta logL = -0.000571962696995

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5247.33476101
delta logL = -8.69313225849e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7060       1.0000          .0000       5.0000    
     3 'Normalizat'    .89431       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96465       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=   5247.335     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      228 TOTAL
                     EDM=   .54E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    186.63        .18142E-01** at limit **
   2  alpha         1.6654        3.7910        .50000        .11437E-07
   3  Normalizat    .89441        .25057E-01    .31537E-03    .18565E-04
   4  Prefactor     .96458        .18218E-01    .22011E-03    .26083E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66537
  Normalizat = 0.89441
  Prefactor  = 0.964584
 **********
 **   18 **HESSE 
 **********

 FCN=   5247.335     FROM HESSE     STATUS=OK            23 CALLS      251 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.073        .22268E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6654        2.5963        .20000E-01   -.34039    
   3  Normalizat    .89441        .25212        .12615E-04   -.96657    
   4  Prefactor     .96458        .18342        .88044E-05   -.93920    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38327e-11
Minuit parameter uncertainties:
  1  0.000101202
  2  710.533
  3  0.252453
  4  0.183543
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/909916': 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) = 5247.33475986
delta logL = 1.06840525405e-06

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.012e-04  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.665e+00  7.105e+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:  9.646e-01  1.835e-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.944e-01  2.525e-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/909916/cmap_HighResolution_324086401_324345601_4FGL_J1131.4-0504_daily_bin327.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.89e-05', job_status='DONE', photon_flux_upper_limit='3.67e-08', time_completed='2021-09-04 03:19:56.356398', job_id='909916', GAL2='0.96', fit_tolerance='1e-08', EG2='0.89', EG='0.89', time_epoch_completed='1630750796.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='1.07e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='327' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:19:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 909916: <4FGL_J1131.4-0504_daily_bin327> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin327> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:05:59 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:06:01 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:06:01 2021
Terminated at Sat Sep  4 03:19:57 2021
Results reported at Sat Sep  4 03:19:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin327 172.875 -5.073 324086401 324345601 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 :                                   662.08 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             282.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            838 sec.

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

