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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin890
RA = 172.875, Dec = -5.073
tmin = 470016001, tmax = 470275201
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='913329', job_status='RUN', time_executed='2021-09-04 03:17:02.960925', time_epoch_executed='1630750622.96' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='890'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/913329

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/913329/ft1_4FGL_J1131.4-0504_daily_bin890.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/913329/ft1_4FGL_J1131.4-0504_daily_bin890.fits outfile=/scratch/kocevski/913329/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin890.fits ra=172.875 dec=-5.073 rad=12.0 tmin=470016001.0 tmax=470275201.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 3.53
user 3.29
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits" evtable="EVENTS" scfile=/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits sctable="SC_DATA" outfile=/scratch/kocevski/913329/ltcube_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.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/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits
.....................!
real 11.52
user 11.15
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits sctable="SC_DATA" expcube=/scratch/kocevski/913329/ltcube_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.fits outfile=/scratch/kocevski/913329/expmap_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.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/913329/ltcube_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.fits
.....................!
real 190.70
user 185.22
sys 5.09

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/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits scfile=/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits outfile=/scratch/kocevski/913329/cmap_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.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.56
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits scfile=/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits outfile=/scratch/kocevski/913329/cmap_HighResolution_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.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/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits evtable="EVENTS" scfile=/scratch/kocevski/913329/ft2_4FGL_J1131.4-0504_daily_bin890.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/913329/Model_4FGL_J1131.4-0504_daily_bin890.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/913329/ft1_filtered_4FGL_J1131.4-0504_daily_bin890.fits.....................!
real 56.60
user 54.53
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .39638E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    5.4283       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.0979       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11518E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1106       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    8.9567       1.0000         .10000E-03   10000.    
     9 'Prefactor '    8.8062       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6442       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.684       1.0000         .10000E-03   10000.    
    15 'norm      '    3.9660       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.542       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3308       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    5.7360       1.0000         .10000E-03   10000.    
    22 'Prefactor '    56.119       1.0000         .10000E-03   10000.    
    23 'Prefactor '    41.594       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3135       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .82252       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=   5766.217     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     2924 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .39622E-01    .48625       -.49641E-07    .53840E-04
   2  norm          5.4284        4.9581        .35441E-06    .13906E-04
   3  Prefactor     5.0972        9.3914        .17244E-06    .68978E-05
   4  Prefactor     .10000E-03    18.737        .49705E-05** at limit **
   5  Prefactor     2.1090        6.2077        .15497E-05   -.10768E-02
   6  Prefactor     .10000E-03    1.4746       -.68728E-07** at limit **
   7  Prefactor     .10000E-03    22.230       -.72940E-05** at limit **
   8  norm          8.9529        9.4162       -.20579E-06   -.34202E-03
   9  Prefactor     8.8047        5.5227        .37484E-06   -.46179E-04
  10  Prefactor     .10000E-03    4.2577        .58627E-07** at limit **
  11  norm          .10000E-03    10.435        .49497E-05** at limit **
  12  Prefactor     1.6444        2.3332        .10817E-06   -.65824E-04
  13  Prefactor     .10000E-03    11.219       -.72855E-05** at limit **
  14  Prefactor     26.685        24.965        .66708E-06    .60844E-05
  15  norm          3.9665        5.6433       -.13464E-05   -.15148E-03
  16  Prefactor     .10000E-03    1.9945        .89386E-07** at limit **
  17  Prefactor     18.543        21.321        .16335E-05    .54277E-05
  18  Prefactor     3.3304        10.280       -.13510E-07   -.53154E-03
  19  Prefactor     .10000E-03    17.044        .37183E-05** at limit **
  20  Prefactor     .10000E-03    2.8309       -.64879E-07** at limit **
  21  Prefactor     5.7384        17.937        .20043E-05   -.53714E-05
  22  Prefactor     56.121        42.620        .17506E-05    .87621E-05
  23  Prefactor     41.597        25.022        .26150E-05    .51534E-04
  24  Normalizat    1.3133        .22426       -.15525E-05    .19041E-04
  25  Prefactor     .82266        .15523        .30266E-07   -.92633E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0396218
  norm       = 5.42839
  Prefactor  = 5.09716
  Prefactor  = 0.0001
  Prefactor  = 2.10898
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.95295
  Prefactor  = 8.80468
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.64439
  Prefactor  = 0.0001
  Prefactor  = 26.685
  norm       = 3.96649
  Prefactor  = 0.0001
  Prefactor  = 18.543
  Prefactor  = 3.33044
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.73838
  Prefactor  = 56.1209
  Prefactor  = 41.5973
  Normalizat = 1.3133
  Prefactor  = 0.82266
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.217     FROM HESSE     STATUS=OK           431 CALLS     3355 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .39622E-01    1.2095        .87381E-03   -1.5668    
   2  norm          5.4284        4.9612        .15703E-03   -1.5242    
   3  Prefactor     5.0972        9.0218        .17807E-03   -1.5256    
   4  Prefactor     .10000E-03    19.002        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.1090        15.647        .14199E-02   -1.5418    
   6  Prefactor     .10000E-03    1.4805        .89988E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.263        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          8.9529        9.4240        .66963E-03   -1.5109    
   9  Prefactor     8.8047        5.5382        .12905E-03   -1.5114    
  10  Prefactor     .10000E-03    4.2809        .15300E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    10.445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6444        2.3159        .13109E-03   -1.5451    
  13  Prefactor     .10000E-03    11.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.685        24.969        .77551E-04   -1.4674    
  15  norm          3.9665        5.6362        .20254E-03   -1.5310    
  16  Prefactor     .10000E-03    2.0097        .10443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     18.543        21.310        .93014E-04   -1.4846    
  18  Prefactor     3.3304        10.944        .11089E-02   -1.5343    
  19  Prefactor     .10000E-03    17.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8366        .12477E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     5.7384        17.961        .16771E-03   -1.5229    
  22  Prefactor     56.121        42.530        .53548E-04   -1.4208    
  23  Prefactor     41.597        25.060        .62156E-04   -1.4417    
  24  Normalizat    1.3133        .26659        .26386E-03   -.83170    
  25  Prefactor     .82266        .18486        .23686E-03   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.98503e-09
Minuit parameter uncertainties:
  1  0.43729
  2  4.96158
  3  9.0242
  4  5.66745e-05
  5  11.4931
  6  4.29893e-08
  7  0.000117115
  8  9.42555
  9  5.53855
  10  3.17661e-06
  11  4.88433e-05
  12  2.31602
  13  8.14458e-05
  14  24.9791
  15  5.63693
  16  1.85007e-06
  17  21.319
  18  10.9503
  19  4.00745e-05
  20  1.8366e-06
  21  17.9781
  22  42.5531
  23  25.0666
  24  0.266865
  25  0.184999
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  4.884e-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:  8.227e-01  1.850e-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.313e+00  2.669e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/913329/likelihoodResults_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.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) = 5766.21712319
delta logL = -0.000454033917777

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5766.21666915
delta logL = 5.34237187821e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7089       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3133       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82266       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=   5766.217     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      236 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    621.34        .18142E-01** at limit **
   2  alpha         1.9967        3.3755        .16534        .48820E-08
   3  Normalizat    1.3133        .42701E-01    .26386E-03    .20638E-04
   4  Prefactor     .82266        .31312E-01    .23686E-03    .22847E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.99671
  Normalizat = 1.3133
  Prefactor  = 0.822661
 **********
 **   18 **HESSE 
 **********

 FCN=   5766.217     FROM HESSE     STATUS=OK            23 CALLS      259 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.365        .24963E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9967        3.4349        .66135E-02   -.20270    
   3  Normalizat    1.3133        .24813        .10554E-04   -.83170    
   4  Prefactor     .82266        .18197        .94745E-05   -.98898    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33702e-10
Minuit parameter uncertainties:
  1  0.000346229
  2  818.044
  3  0.248352
  4  0.182105
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/913329': 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) = 5766.21666878
delta logL = 3.76361640519e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  3.462e-04  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  1.997e+00  8.180e+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:  8.227e-01  1.821e-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.313e+00  2.484e-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/913329/cmap_HighResolution_470016001_470275201_4FGL_J1131.4-0504_daily_bin890.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.08e-05', job_status='DONE', photon_flux_upper_limit='4.03e-08', time_completed='2021-09-04 03:29:28.704506', job_id='913329', GAL2='0.82', fit_tolerance='1e-08', EG2='1.31', EG='1.31', time_epoch_completed='1630751368.7', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='890' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:29:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 913329: <4FGL_J1131.4-0504_daily_bin890> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin890 172.875 -5.073 470016001 470275201 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 :                                   734.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             301.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   758 sec.
    Turnaround time :                            761 sec.

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

