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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin754
RA = 172.875, Dec = -5.073
tmin = 434764801, tmax = 435024001
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='913132', job_status='RUN', time_executed='2021-09-04 03:20:52.550007', time_epoch_executed='1630750852.55' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913132

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913132/ft1_4FGL_J1131.4-0504_daily_bin754.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913132/ft1_4FGL_J1131.4-0504_daily_bin754.fits outfile=/scratch/kocevski/913132/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin754.fits ra=172.875 dec=-5.073 rad=12.0 tmin=434764801.0 tmax=435024001.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 5.71
user 5.41
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.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/913132/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/913132/ltcube_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.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/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits
.....................!
real 12.06
user 11.69
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/913132/ltcube_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.fits outfile=/scratch/kocevski/913132/expmap_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.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/913132/ltcube_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.fits
.....................!
real 190.13
user 185.12
sys 4.33

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/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits outfile=/scratch/kocevski/913132/cmap_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits outfile=/scratch/kocevski/913132/cmap_HighResolution_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.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/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/913132/ft2_4FGL_J1131.4-0504_daily_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913132/Model_4FGL_J1131.4-0504_daily_bin754.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/913132/ft1_filtered_4FGL_J1131.4-0504_daily_bin754.fits.....................!
real 48.19
user 46.80
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.6839       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.1586       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 '    .11013E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    11.016       1.0000         .10000E-03   10000.    
    11 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5036       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    27.902       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23599E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.108       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.4739       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    24.933       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .80483       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2422       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=   4842.584     FROM MIGRAD    STATUS=CONVERGED    562 CALLS     2869 TOTAL
                     EDM=   .59E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.6840        .78245       -.63704E-07   -.18306E-02
   2  norm          .10000E-03    4.1613       -.67217E-08** at limit **
   3  Prefactor     .10000E-03    15.168        .10155E-04** at limit **
   4  Prefactor     .10000E-03    19.894       -.53741E-05** at limit **
   5  Prefactor     .10000E-03    9.8728        .78846E-06** at limit **
   6  Prefactor     3.1567        5.5292       -.10496E-05   -.43198E-03
   7  Prefactor     .10000E-03    59.803       -.10243E-04** at limit **
   8  norm          .10000E-03    5.7299        .18760E-06** at limit **
   9  Prefactor     .10000E-03    5.9112       -.17256E-06** at limit **
  10  Prefactor     11.015        13.810       -.14089E-07   -.57434E-04
  11  norm          .10000E-03    29.227        .91014E-05** at limit **
  12  Prefactor     2.5037        2.9873       -.12559E-06   -.39953E-03
  13  Prefactor     .10000E-03    19.895       -.52179E-05** at limit **
  14  Prefactor     27.903        43.795        .73604E-06   -.14455E-04
  15  norm          .10000E-03    1.8428        .12350E-07** at limit **
  16  Prefactor     .10106E-03    2.0185        .85662E-06** at limit **
  17  Prefactor     .10000E-03    9.8998        .92799E-06** at limit **
  18  Prefactor     18.108        26.748        .24770E-06   -.46275E-05
  19  Prefactor     .10000E-03    25.180       -.63977E-05** at limit **
  20  Prefactor     8.4741        7.7859        .41205E-07    .33434E-04
  21  Prefactor     .10000E-03    11.779       -.56883E-05** at limit **
  22  Prefactor     .10000E-03    18.050        .18469E-05** at limit **
  23  Prefactor     24.934        22.030        .16929E-06    .68646E-05
  24  Normalizat    .80481        .24668        .18061E-06   -.10458E-03
  25  Prefactor     1.2421        .17823       -.10170E-07   -.13503E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.68402
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15666
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.0155
  norm       = 0.0001
  Prefactor  = 2.50367
  Prefactor  = 0.0001
  Prefactor  = 27.903
  norm       = 0.0001
  Prefactor  = 0.000101056
  Prefactor  = 0.0001
  Prefactor  = 18.1084
  Prefactor  = 0.0001
  Prefactor  = 8.47409
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.9338
  Normalizat = 0.804809
  Prefactor  = 1.24212
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.584     FROM HESSE     STATUS=OK           423 CALLS     3292 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.6840        .77881        .40477E-04   -1.5448    
   2  norm          .10000E-03    4.1964        .13862E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    15.255        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.9384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.1567        5.5603        .20593E-03   -1.5353    
   7  Prefactor     .10000E-03    59.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.7524        .16260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.1421        .32960E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     11.015        13.813        .12071E-03   -1.5044    
  11  norm          .10000E-03    29.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.5037        2.9811        .12439E-03   -1.5391    
  13  Prefactor     .10000E-03    19.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     27.903        43.788        .75843E-04   -1.4651    
  15  norm          .10000E-03    1.8444        .92241E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10106E-03    47.533        .18745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.9271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.108        26.744        .94122E-04   -1.4857    
  19  Prefactor     .10000E-03    25.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     8.4741        7.7877        .13771E-03   -1.5126    
  21  Prefactor     .10000E-03    11.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    18.062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     24.934        22.043        .80224E-04   -1.4709    
  24  Normalizat    .80481        .27837        .33068E-03   -.99891    
  25  Prefactor     1.2421        .20337        .20488E-03   -.85045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07757e-08
Minuit parameter uncertainties:
  1  0.778811
  2  4.32998e-07
  3  4.31796e-05
  4  3.8944e-05
  5  2.04808e-05
  6  5.5612
  7  2.04344e-05
  8  1.39127e-05
  9  9.91091e-06
  10  13.8173
  11  1.69921e-05
  12  2.98128
  13  9.29242e-06
  14  43.8389
  15  1.48977e-06
  16  0.01418
  17  1.26454e-05
  18  26.7619
  19  1.08537e-07
  20  7.78861
  21  1.75432e-05
  22  1.92725e-06
  23  22.0504
  24  0.278867
  25  0.203494
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.699e-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:  1.242e+00  2.035e-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.048e-01  2.789e-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: 5.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/913132/likelihoodResults_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.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) = 4842.58463386
delta logL = -0.000161918839694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4842.58447209
delta logL = -1.49964762386e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10523E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7051       1.0000          .0000       5.0000    
     3 'Normalizat'    .80481       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2421       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=   4842.584     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      183 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    30.107        .90712E-02** at limit **
   2  alpha         2.7306        3.6109        .41328       -.44925E-05
   3  Normalizat    .80481        .23310        .74712E-01    .39210E-04
   4  Prefactor     1.2421        .17646        .33703E-01    .46642E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100008
  alpha      = 2.73056
  Normalizat = 0.80481
  Prefactor  = 1.24212
 **********
 **   18 **HESSE 
 **********

 FCN=   4842.584     FROM HESSE     STATUS=OK            25 CALLS      208 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    29.586        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7306        3.6005        .16531E-01    .92354E-01
   3  Normalizat    .80481        .26450        .33068E-03   -.99891    
   4  Prefactor     1.2421        .20068        .20488E-03   -.85045    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84558e-10
Minuit parameter uncertainties:
  1  0.000976732
  2  2.48998
  3  0.264921
  4  0.200807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913132': 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) = 4842.58447191
delta logL = 2.89337549475e-08

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  9.767e-04  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.731e+00  2.490e+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:  1.242e+00  2.008e-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.048e-01  2.649e-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/913132/cmap_HighResolution_434764801_435024001_4FGL_J1131.4-0504_daily_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='5.26e-08', time_completed='2021-09-04 03:31:59.993484', job_id='913132', GAL2='1.24', fit_tolerance='1e-08', EG2='0.80', EG='0.80', time_epoch_completed='1630751519.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='2.89e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='754' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:32:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 913132: <4FGL_J1131.4-0504_daily_bin754> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin754 172.875 -5.073 434764801 435024001 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 :                                   657.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             267.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            925 sec.

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

