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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin539
RA = 172.875, Dec = -5.073
tmin = 379036801, tmax = 379296001
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='911602', job_status='RUN', time_executed='2021-09-04 03:13:29.672415', time_epoch_executed='1630750409.67' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='539'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911602

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911602/ft1_4FGL_J1131.4-0504_daily_bin539.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911602/ft1_4FGL_J1131.4-0504_daily_bin539.fits outfile=/scratch/kocevski/911602/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin539.fits ra=172.875 dec=-5.073 rad=12.0 tmin=379036801.0 tmax=379296001.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.43
user 3.23
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.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/911602/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin539.fits evtable="EVENTS" outfile="/scratch/kocevski/911602/ft1_filtered_4FGL_J1131.4-0504_daily_bin539.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.54
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911602/ft1_filtered_4FGL_J1131.4-0504_daily_bin539.fits" evtable="EVENTS" scfile=/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits sctable="SC_DATA" outfile=/scratch/kocevski/911602/ltcube_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.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/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits
.....................!
real 12.53
user 12.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911602/ft1_filtered_4FGL_J1131.4-0504_daily_bin539.fits evtable="EVENTS" scfile=/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits sctable="SC_DATA" expcube=/scratch/kocevski/911602/ltcube_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.fits outfile=/scratch/kocevski/911602/expmap_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.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/911602/ltcube_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.fits
.....................!
real 189.79
user 184.93
sys 4.47

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/911602/ft1_filtered_4FGL_J1131.4-0504_daily_bin539.fits scfile=/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits outfile=/scratch/kocevski/911602/cmap_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911602/ft1_filtered_4FGL_J1131.4-0504_daily_bin539.fits scfile=/scratch/kocevski/911602/ft2_4FGL_J1131.4-0504_daily_bin539.fits outfile=/scratch/kocevski/911602/cmap_HighResolution_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.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.58
user 0.37
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .27982       1.0000         .10000E-03   10000.    
     2 'norm      '    33.525       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .32900       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.8635       1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.1642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    191.09       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .30226       1.0000         .10000E-03   10000.    
    10 'Prefactor '    16.858       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.0967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8214       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2882       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .71934       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=   5633.302     FROM MIGRAD    STATUS=CONVERGED    569 CALLS     3502 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .27979        .72859        .14999E-07   -.63076E-03
   2  norm          33.524        10.975       -.18913E-07    .55839E-04
   3  Prefactor     .32875        15.318       -.11979E-05   -.17665E-05
   4  Prefactor     .10000E-03    8.3708       -.77759E-05** at limit **
   5  Prefactor     7.8639        8.1399       -.63108E-07   -.18526E-04
   6  Prefactor     2.1645        3.8733       -.54499E-06   -.51199E-03
   7  Prefactor     191.09        100.13        .49380E-05    .60941E-04
   8  norm          .10000E-03    10.694        .76406E-05** at limit **
   9  Prefactor     .30232        2.6349       -.39948E-06   -.26187E-04
  10  Prefactor     16.858        11.912       -.12756E-06    .33103E-04
  11  norm          .10000E-03    13.833       -.41408E-05** at limit **
  12  Prefactor     2.0967        2.1025       -.63848E-07   -.42591E-03
  13  Prefactor     .10000E-03    27.261        .93563E-05** at limit **
  14  Prefactor     .10000E-03    24.046        .95349E-05** at limit **
  15  norm          .10000E-03    3.4379       -.34227E-07** at limit **
  16  Prefactor     .10096E-03    2.1278       -.18330E-05** at limit **
  17  Prefactor     .10000E-03    18.655       -.43551E-05** at limit **
  18  Prefactor     .10000E-03    24.273        .99102E-05** at limit **
  19  Prefactor     3.8235        91.697        .18901E-04    .92310E-04
  20  Prefactor     .10000E-03    3.6418       -.65331E-07** at limit **
  21  Prefactor     .10000E-03    9.6801        .40640E-05** at limit **
  22  Prefactor     .10000E-03    15.341       -.85175E-05** at limit **
  23  Prefactor     .10000E-03    7.3108        .23795E-05** at limit **
  24  Normalizat    1.2882        .21058        .30878E-06    .41041E-03
  25  Prefactor     .71933        .14659       -.75598E-06    .41399E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.279793
  norm       = 33.5245
  Prefactor  = 0.328754
  Prefactor  = 0.0001
  Prefactor  = 7.86389
  Prefactor  = 2.16446
  Prefactor  = 191.095
  norm       = 0.0001
  Prefactor  = 0.302321
  Prefactor  = 16.858
  norm       = 0.0001
  Prefactor  = 2.0967
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100955
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.82346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.28819
  Prefactor  = 0.719328
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.302     FROM HESSE     STATUS=OK           427 CALLS     3929 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .27979        .70563        .67166E-03   -1.5602    
   2  norm          33.524        10.980        .69208E-04   -1.4549    
   3  Prefactor     .32875        90.039        .38280E-02   -1.5593    
   4  Prefactor     .10000E-03    8.3969        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.8639        8.1315        .14299E-03   -1.5147    
   6  Prefactor     2.1645        3.8568        .18604E-03   -1.5414    
   7  Prefactor     191.09        100.17        .29217E-04   -1.2934    
   8  norm          .10000E-03    10.943        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .30232        20.507        .22110E-02   -1.5598    
  10  Prefactor     16.858        11.926        .97547E-04   -1.4887    
  11  norm          .10000E-03    13.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.0967        2.0960        .10412E-03   -1.5418    
  13  Prefactor     .10000E-03    27.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    24.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.4566        .13576E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10096E-03    33.770        .19750E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8235        86.912        .20647E-03   -1.5317    
  20  Prefactor     .10000E-03    3.6803        .13987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.6978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    15.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.3179        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2882        .24812        .25165E-03   -.83919    
  25  Prefactor     .71933        .17214        .23593E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26168e-07
Minuit parameter uncertainties:
  1  0.705648
  2  10.9805
  3  10.8962
  4  1.45691e-05
  5  8.13266
  6  3.85721
  7  100.261
  8  5.39406e-05
  9  4.98084
  10  11.928
  11  1.15595e-05
  12  2.09603
  13  2.53627e-05
  14  5.56444e-06
  15  1.19852e-06
  16  0.0113653
  17  6.90246e-05
  18  3.76195e-05
  19  36.5179
  20  7.12334e-08
  21  4.5406e-05
  22  5.00977e-05
  23  1.55889e-06
  24  0.248354
  25  0.172269
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.156e-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:  7.193e-01  1.723e-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.288e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/911602/likelihoodResults_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.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) = 5633.30200659
delta logL = -0.000343529015481

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5633.30166304
delta logL = 2.61507011601e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7331       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2882       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71933       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=   5633.302     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      198 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    16.346        .90712E-02** at limit **
   2  alpha         2.7531        3.6598        .41380       -.74226E-05
   3  Normalizat    1.2882        .19831        .56908E-01   -.16798E-03
   4  Prefactor     .71933        .14397        .42658E-01    .70869E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100012
  alpha      = 2.75313
  Normalizat = 1.28819
  Prefactor  = 0.71933
 **********
 **   18 **HESSE 
 **********

 FCN=   5633.302     FROM HESSE     STATUS=OK            29 CALLS      227 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    14.246        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7531        3.6052        .16552        .10142    
   3  Normalizat    1.2882        .23195        .25165E-03   -.83920    
   4  Prefactor     .71933        .16842        .23593E-03   -1.0277    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12558e-09
Minuit parameter uncertainties:
  1  0.000820301
  2  2.48904
  3  0.232139
  4  0.16854
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911602': 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) = 5633.30166295
delta logL = 1.1074826034e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  8.203e-04  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.753e+00  2.489e+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.193e-01  1.685e-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.288e+00  2.321e-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/911602/cmap_HighResolution_379036801_379296001_4FGL_J1131.4-0504_daily_bin539.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.05e-05', job_status='DONE', photon_flux_upper_limit='3.97e-08', time_completed='2021-09-04 03:26:15.341030', job_id='911602', GAL2='0.72', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1630751175.34', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.11e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='539' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:26:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 911602: <4FGL_J1131.4-0504_daily_bin539> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin539> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:11:18 2021
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:11:20 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:11:20 2021
Terminated at Sat Sep  4 03:26:16 2021
Results reported at Sat Sep  4 03:26:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin539 172.875 -5.073 379036801 379296001 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            898 sec.

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

