/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 87 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 = 7402
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin940
RA = 172.875, Dec = -5.073
tmin = 482976001, tmax = 483235201
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='913398', job_status='RUN', time_executed='2021-09-04 03:18:36.049988', time_epoch_executed='1630750716.05' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='940'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913398

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913398/ft1_4FGL_J1131.4-0504_daily_bin940.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913398/ft1_4FGL_J1131.4-0504_daily_bin940.fits outfile=/scratch/kocevski/913398/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin940.fits ra=172.875 dec=-5.073 rad=12.0 tmin=482976001.0 tmax=483235201.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.14
user 3.89
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits" evtable="EVENTS" scfile=/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits sctable="SC_DATA" outfile=/scratch/kocevski/913398/ltcube_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.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/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits
.....................!
real 12.93
user 12.08
sys 0.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits sctable="SC_DATA" expcube=/scratch/kocevski/913398/ltcube_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.fits outfile=/scratch/kocevski/913398/expmap_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.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/913398/ltcube_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.fits
.....................!
real 192.14
user 185.55
sys 5.83

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/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits scfile=/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits outfile=/scratch/kocevski/913398/cmap_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits scfile=/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits outfile=/scratch/kocevski/913398/cmap_HighResolution_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.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/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits evtable="EVENTS" scfile=/scratch/kocevski/913398/ft2_4FGL_J1131.4-0504_daily_bin940.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913398/Model_4FGL_J1131.4-0504_daily_bin940.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/913398/ft1_filtered_4FGL_J1131.4-0504_daily_bin940.fits.....................!
real 52.21
user 50.48
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1079       1.0000         .10000E-03   10000.    
     2 'norm      '    1.0825       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10778E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    9.9722       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14023E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.2770       1.0000         .10000E-03   10000.    
    11 'norm      '    86.247       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .49400E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8580       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.4227       1.0000         .10000E-03   10000.    
    17 'Prefactor '    27.522       1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.594       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    17.204       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .88612       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0528       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=   5494.615     FROM MIGRAD    STATUS=CONVERGED    567 CALLS     2909 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1078        .75008        .86567E-07   -.30783E-03
   2  norm          1.0851        16.340        .46545E-05   -.11845E-03
   3  Prefactor     .10000E-03    4.6176        .58306E-06** at limit **
   4  Prefactor     .10000E-03    5.9115        .23723E-06** at limit **
   5  Prefactor     .10000E-03    5.3668       -.65316E-06** at limit **
   6  Prefactor     .10000E-03    3.2744        .14598E-05** at limit **
   7  Prefactor     .10000E-03    27.807       -.21292E-07** at limit **
   8  norm          9.9715        11.741       -.55775E-06   -.20438E-03
   9  Prefactor     .10002E-03    3.7938       -.56594E-06** at limit **
  10  Prefactor     4.2774        10.302        .79160E-05   -.52248E-03
  11  norm          86.282        43.821        .37914E-05    .61289E-03
  12  Prefactor     .10001E-03    1.0915        .20317E-06** at limit **
  13  Prefactor     6.8291        52.575       -.12868E-04   -.97811E-04
  14  Prefactor     .10000E-03    16.187       -.81591E-06** at limit **
  15  norm          .10000E-03    4.3163       -.43842E-06** at limit **
  16  Prefactor     3.4230        4.0212        .18258E-06   -.49021E-04
  17  Prefactor     27.523        23.789        .28540E-06   -.75630E-05
  18  Prefactor     12.591        14.525       -.45637E-07   -.21601E-04
  19  Prefactor     .10000E-03    16.615       -.20614E-06** at limit **
  20  Prefactor     .10000E-03    2.6343        .14572E-06** at limit **
  21  Prefactor     .10000E-03    17.477        .10374E-05** at limit **
  22  Prefactor     .10000E-03    17.924        .10319E-05** at limit **
  23  Prefactor     17.221        27.260        .46545E-05    .21265E-03
  24  Normalizat    .88634        .22975        .19235E-06   -.33236E-03
  25  Prefactor     1.0526        .16219       -.26177E-05   -.17930E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.10778
  norm       = 1.08514
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 9.97151
  Prefactor  = 0.000100015
  Prefactor  = 4.27737
  norm       = 86.2821
  Prefactor  = 0.000100009
  Prefactor  = 6.82915
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.42302
  Prefactor  = 27.5231
  Prefactor  = 12.5913
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.2208
  Normalizat = 0.886337
  Prefactor  = 1.05259
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.615     FROM HESSE     STATUS=OK           423 CALLS     3332 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1078        .74847        .36756E-04   -1.5418    
   2  norm          1.0851        16.858        .46240E-03   -1.5500    
   3  Prefactor     .10000E-03    4.6325        .15552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.9249        .17603E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.3802        .16767E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.686        .24258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.9715        11.147        .12689E-03   -1.5076    
   9  Prefactor     .10002E-03    11.915        .24367E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.2774        10.680        .97407E-03   -1.5294    
  11  norm          86.282        44.510        .21629E-03   -1.3848    
  12  Prefactor     .10001E-03    15.870        .14873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8291        55.199        .15321E-03   -1.5185    
  14  Prefactor     .10000E-03    16.209        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.3733        .15017E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.4230        3.9969        .14894E-03   -1.5338    
  17  Prefactor     27.523        23.714        .76364E-04   -1.4658    
  18  Prefactor     12.591        14.526        .11288E-03   -1.4998    
  19  Prefactor     .10000E-03    16.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6383        .11749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.641        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    17.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     17.221        27.614        .96562E-04   -1.4878    
  24  Normalizat    .88634        .26364        .30813E-03   -.96942    
  25  Prefactor     1.0526        .18796        .21068E-03   -.90997    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65069e-09
Minuit parameter uncertainties:
  1  0.748476
  2  8.55666
  3  2.67833e-05
  4  2.2337e-05
  5  2.64803e-05
  6  0.000300756
  7  5.19729e-06
  8  11.1489
  9  0.000849461
  10  10.6844
  11  44.5277
  12  0.000770825
  13  38.8799
  14  9.64673e-05
  15  9.33466e-06
  16  3.9972
  17  23.7224
  18  14.5298
  19  1.26766e-05
  20  1.69668e-07
  21  0.000104465
  22  0.000113232
  23  27.6344
  24  0.264027
  25  0.188077
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  8.628e+01  4.453e+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.053e+00  1.881e-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.863e-01  2.640e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.39
Ra Dec: 172.875 -5.073
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 7.15e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 3.69e-05 +/- 1.90e-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) = 5494.61050009
delta logL = 0.00404859915579

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5494.6069803
delta logL = 0.00756839251335

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    82.119       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7867       1.0000          .0000       5.0000    
     3 'Normalizat'    .88332       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0536       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=   5494.607     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      270 TOTAL
                     EDM=   .35E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          82.074        52.408        .22162E-03   -.56582E-04
   2  alpha         2.7872        .60982        .11342E-01    .12197E-04
   3  Normalizat    .88321        .24879        .30859E-03   -.16615E-04
   4  Prefactor     1.0538        .18514        .21057E-03   -.40006E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 82.0743
  alpha      = 2.78723
  Normalizat = 0.883207
  Prefactor  = 1.05376
 **********
 **   18 **HESSE 
 **********

 FCN=   5494.607     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          82.074        50.553        .88648E-05   -1.3894    
   2  alpha         2.7872        .58840        .45368E-03    .11515    
   3  Normalizat    .88321        .24883        .12344E-04   -.97053    
   4  Prefactor     1.0538        .18526        .84230E-05   -.90958    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.90892e-11
Minuit parameter uncertainties:
  1  50.5796
  2  0.594052
  3  0.249154
  4  0.185373
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913398': 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) = 5494.60697953
delta logL = 0.00756916417231

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  8.207e+01  5.058e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.787e+00  5.941e-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.054e+00  1.854e-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.832e-01  2.492e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.41
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 2.79 +/- 0.59
Photon Flux (Free Index): 7.44e-08 +/- 4.06e-08
Energy Flux (Free Index): 3.65e-05 +/- 1.65e-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/913398/cmap_HighResolution_482976001_483235201_4FGL_J1131.4-0504_daily_bin940.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.15e-08', energy_flux2='3.65e-05', photon_flux_error='3.69e-08', dlogl='7.57e-03', energy_flux='3.69e-05', photon_flux2='7.44e-08', job_status='DONE', time_completed='2021-09-04 03:29:26.257132', photon_index_error2='0.59', photon_index2='2.79', ts='10.39', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', energy_flux_error2='1.65e-05', EG='0.89', time_epoch_completed='1630751366.26', return_code='0', job_id='913398', GAL2='1.05', EG2='0.88', return_code2='0', energy_flux_error='1.90e-05', photon_flux_error2='4.06e-08', ts2='10.41', photon_index='2.71' WHERE bin_id='940' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 913398: <4FGL_J1131.4-0504_daily_bin940> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin940> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Sat Sep  4 03:16:53 2021
Job was executed on host(s) <bullet0259>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:16:54 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:54 2021
Terminated at Sat Sep  4 03:29:27 2021
Results reported at Sat Sep  4 03:29:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin940 172.875 -5.073 482976001 483235201 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 :                                   627.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             282.58 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   752 sec.
    Turnaround time :                            754 sec.

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

