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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin768
RA = 172.875, Dec = -5.073
tmin = 438393601, tmax = 438652801
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='913153', job_status='RUN', time_executed='2021-09-04 03:19:30.288825', time_epoch_executed='1630750770.29' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='768'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913153

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913153/ft1_4FGL_J1131.4-0504_daily_bin768.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913153/ft1_4FGL_J1131.4-0504_daily_bin768.fits outfile=/scratch/kocevski/913153/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin768.fits ra=172.875 dec=-5.073 rad=12.0 tmin=438393601.0 tmax=438652801.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.38
user 6.05
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits" evtable="EVENTS" scfile=/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits sctable="SC_DATA" outfile=/scratch/kocevski/913153/ltcube_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.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/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits
.....................!
real 12.25
user 11.84
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits sctable="SC_DATA" expcube=/scratch/kocevski/913153/ltcube_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.fits outfile=/scratch/kocevski/913153/expmap_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.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/913153/ltcube_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.fits
.....................!
real 190.96
user 184.99
sys 4.86

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/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits scfile=/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits outfile=/scratch/kocevski/913153/cmap_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits scfile=/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits outfile=/scratch/kocevski/913153/cmap_HighResolution_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.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/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits evtable="EVENTS" scfile=/scratch/kocevski/913153/ft2_4FGL_J1131.4-0504_daily_bin768.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913153/Model_4FGL_J1131.4-0504_daily_bin768.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/913153/ft1_filtered_4FGL_J1131.4-0504_daily_bin768.fits......................!
real 45.75
user 44.52
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.2686       1.0000         .10000E-03   10000.    
     2 'norm      '    33.674       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .24823E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5305       1.0000         .10000E-03   10000.    
     7 'Prefactor '    88.391       1.0000         .10000E-03   10000.    
     8 'norm      '    19.907       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.404       1.0000         .10000E-03   10000.    
    11 'norm      '    9.4772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.9201       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .57903       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10674E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .17155E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.7789       1.0000         .10000E-03   10000.    
    22 'Prefactor '    81.994       1.0000         .10000E-03   10000.    
    23 'Prefactor '    40.427       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2239       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80326       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=   4306.828     FROM MIGRAD    STATUS=CONVERGED    625 CALLS     3424 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.2686        .74161        .65002E-07   -.55621E-04
   2  norm          33.674        13.409       -.15487E-06   -.78382E-05
   3  Prefactor     .10000E-03    5.3007        .25548E-07** at limit **
   4  Prefactor     .10028E-03    26.433       -.11840E-06** at limit **
   5  Prefactor     .10000E-03    8.8896        .23376E-06** at limit **
   6  Prefactor     1.5303        4.5260        .25419E-06   -.41871E-04
   7  Prefactor     88.477        111.04        .66886E-05    .21113E-03
   8  norm          19.913        14.254        .48617E-06    .27758E-03
   9  Prefactor     .10000E-03    2.0418        .96796E-07** at limit **
  10  Prefactor     15.405        12.980        .27712E-06   -.11441E-04
  11  norm          9.4748        24.797        .37844E-06   -.67974E-05
  12  Prefactor     9.9201        4.7809        .54293E-06   -.17824E-03
  13  Prefactor     .10000E-03    18.555        .44507E-06** at limit **
  14  Prefactor     .10000E-03    10.229        .82124E-07** at limit **
  15  norm          .60113        6.0690        .25662E-06   -.57328E-03
  16  Prefactor     .10058E-03    3.1810        .12273E-05** at limit **
  17  Prefactor     .10000E-03    9.5748       -.51634E-07** at limit **
  18  Prefactor     .10000E-03    130.02        .52841E-06** at limit **
  19  Prefactor     .10000E-03    22.010       -.15102E-05** at limit **
  20  Prefactor     .10000E-03    2.6466       -.65038E-08** at limit **
  21  Prefactor     4.7740        20.809        .10798E-04   -.13819E-03
  22  Prefactor     82.038        56.288       -.26147E-05   -.16850E-03
  23  Prefactor     40.421        22.413       -.91941E-06   -.24187E-03
  24  Normalizat    1.2240        .27529       -.48275E-05   -.21178E-03
  25  Prefactor     .80320        .18006        .20837E-06   -.42078E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.26865
  norm       = 33.6737
  Prefactor  = 0.0001
  Prefactor  = 0.000100279
  Prefactor  = 0.0001
  Prefactor  = 1.53027
  Prefactor  = 88.4771
  norm       = 19.9131
  Prefactor  = 0.0001
  Prefactor  = 15.4049
  norm       = 9.47476
  Prefactor  = 9.92012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.601132
  Prefactor  = 0.000100582
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.77396
  Prefactor  = 82.0377
  Prefactor  = 40.4212
  Normalizat = 1.22402
  Prefactor  = 0.803204
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.828     FROM HESSE     STATUS=OK           431 CALLS     3855 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.2686        .74469        .41723E-04   -1.5483    
   2  norm          33.674        13.413        .69055E-04   -1.4547    
   3  Prefactor     .10000E-03    5.3080        .14753E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10028E-03    37.355        .86671E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.9006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.5303        4.4664        .22693E-03   -1.5461    
   7  Prefactor     88.477        122.11        .21368E-03   -1.3824    
   8  norm          19.913        14.352        .89769E-04   -1.4815    
   9  Prefactor     .10000E-03    2.0447        .91542E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.405        12.990        .10205E-03   -1.4923    
  11  norm          9.4748        24.817        .13018E-03   -1.5092    
  12  Prefactor     9.9201        4.7910        .46863E-03   -1.5078    
  13  Prefactor     .10000E-03    18.581        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.231        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .60113        21.585        .27289E-02   -1.5553    
  16  Prefactor     .10058E-03    31.415        .19319E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.6524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    134.96        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    22.071        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.6493        .10427E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.7740        21.405        .92022E-03   -1.5271    
  22  Prefactor     82.038        56.300        .44357E-04   -1.3894    
  23  Prefactor     40.421        22.513        .63043E-04   -1.4436    
  24  Normalizat    1.2240        .31539        .28774E-03   -.85864    
  25  Prefactor     .80320        .21130        .24374E-03   -.99610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.05517e-08
Minuit parameter uncertainties:
  1  0.7447
  2  13.4141
  3  8.50235e-06
  4  0.00645723
  5  1.8872e-06
  6  4.46741
  7  122.458
  8  14.3543
  9  5.04057e-07
  10  12.9923
  11  24.8435
  12  4.79115
  13  4.80379e-05
  14  7.51205e-06
  15  7.20655
  16  0.00855582
  17  4.35569e-06
  18  0.000800916
  19  0.000199968
  20  3.67417e-06
  21  20.2295
  22  56.3368
  23  22.5181
  24  0.315886
  25  0.211517
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  9.475e+00  2.484e+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:  8.032e-01  2.115e-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.224e+00  3.159e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913153/likelihoodResults_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.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): 0
logL (Free Index) = 4306.71035498
delta logL = 0.117171166776

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4306.66170664
delta logL = 0.165819510983

Fit tolerance = 1e-08

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

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

 FCN=   4306.662     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      221 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.870        43.788        .23003E-02    .16804E-04
   2  alpha         1.6256        1.9020        .44914       -.58098E-06
   3  Normalizat    1.2309        .25271        .64885E-01   -.19012E-05
   4  Prefactor     .79805        .17851        .43691E-01    .90473E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8703
  alpha      = 1.62561
  Normalizat = 1.23094
  Prefactor  = 0.798054
 **********
 **   18 **HESSE 
 **********

 FCN=   4306.662     FROM HESSE     STATUS=OK            33 CALLS      254 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.870        33.221        .92012E-04   -1.4839    
   2  alpha         1.6256        1.6155        .45922E-01   -.35731    
   3  Normalizat    1.2309        .29370        .28703E-03   -.85652    
   4  Prefactor     .79805        .20778        .24433E-03   -.99800    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06556e-11
Minuit parameter uncertainties:
  1  33.2535
  2  1.78274
  3  0.294095
  4  0.207987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913153': 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) = 4306.66170336
delta logL = 0.165822791841

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.887e+01  3.325e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.626e+00  1.783e+00  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.981e-01  2.080e-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.231e+00  2.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.19
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/913153/cmap_HighResolution_438393601_438652801_4FGL_J1131.4-0504_daily_bin768.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.88e-05', job_status='DONE', photon_flux_upper_limit='7.52e-08', time_completed='2021-09-04 03:30:37.631637', job_id='913153', GAL2='0.80', fit_tolerance='1e-08', EG2='1.23', EG='1.22', time_epoch_completed='1630751437.63', return_code2='0', ts='0.19', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='1.66e-01', ts2='0.53', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='768' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:30:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 913153: <4FGL_J1131.4-0504_daily_bin768> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin768 172.875 -5.073 438393601 438652801 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 :                                   659.36 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             284.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            841 sec.

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

