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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin571
RA = 172.875, Dec = -5.073
tmin = 387331201, tmax = 387590401
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='911650', job_status='RUN', time_executed='2021-09-04 03:14:01.932387', time_epoch_executed='1630750441.93' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='571'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911650

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911650/ft1_4FGL_J1131.4-0504_daily_bin571.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911650/ft1_4FGL_J1131.4-0504_daily_bin571.fits outfile=/scratch/kocevski/911650/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin571.fits ra=172.875 dec=-5.073 rad=12.0 tmin=387331201.0 tmax=387590401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.40
user 4.15
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits" evtable="EVENTS" scfile=/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits sctable="SC_DATA" outfile=/scratch/kocevski/911650/ltcube_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.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/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits
.....................!
real 11.62
user 11.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits sctable="SC_DATA" expcube=/scratch/kocevski/911650/ltcube_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.fits outfile=/scratch/kocevski/911650/expmap_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.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/911650/ltcube_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.fits
.....................!
real 190.05
user 185.21
sys 4.41

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/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits scfile=/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits outfile=/scratch/kocevski/911650/cmap_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.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/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits scfile=/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits outfile=/scratch/kocevski/911650/cmap_HighResolution_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.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.56
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits evtable="EVENTS" scfile=/scratch/kocevski/911650/ft2_4FGL_J1131.4-0504_daily_bin571.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911650/Model_4FGL_J1131.4-0504_daily_bin571.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/911650/ft1_filtered_4FGL_J1131.4-0504_daily_bin571.fits.....................!
real 46.78
user 45.28
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10547E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    38.584       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2245       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .37934E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    23.131       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1544       1.0000         .10000E-03   10000.    
    13 'Prefactor '    11.098       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .57734E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.870       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .35747E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    28.441       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0941       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84202       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=   4608.962     FROM MIGRAD    STATUS=CONVERGED    594 CALLS     2956 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .47619        .42905E-06** at limit **
   2  norm          27.802        11.092        .58593E-07    .24096E-04
   3  Prefactor     38.563        14.177       -.11300E-05   -.85586E-03
   4  Prefactor     .10000E-03    8.2395       -.11225E-07** at limit **
   5  Prefactor     .10000E-03    5.4384        .16157E-07** at limit **
   6  Prefactor     .10000E-03    1.5847        .12187E-06** at limit **
   7  Prefactor     .10000E-03    25.639        .46000E-06** at limit **
   8  norm          3.2250        5.2190       -.12622E-06   -.15992E-03
   9  Prefactor     .10000E-03    1.8960        .46770E-06** at limit **
  10  Prefactor     .10000E-03    7.7475        .83833E-07** at limit **
  11  norm          23.143        21.743       -.17130E-06   -.66291E-04
  12  Prefactor     4.1552        2.6798        .10516E-06    .86682E-04
  13  Prefactor     11.072        28.545        .15746E-05    .67678E-04
  14  Prefactor     .10000E-03    18.140       -.30420E-06** at limit **
  15  norm          .10000E-03    3.6634        .18263E-06** at limit **
  16  Prefactor     .10008E-03    9.5026       -.51797E-06** at limit **
  17  Prefactor     .10000E-03    18.554       -.32343E-06** at limit **
  18  Prefactor     12.872        15.740        .19614E-06    .83933E-04
  19  Prefactor     .10000E-03    24.729        .50471E-06** at limit **
  20  Prefactor     .10151E-03    78.503       -.71793E-05** at limit **
  21  Prefactor     28.436        20.791        .27699E-06   -.19473E-03
  22  Prefactor     .10001E-03    37.968       -.14220E-05** at limit **
  23  Prefactor     .10000E-03    61.175        .18074E-05** at limit **
  24  Normalizat    1.0939        .26467       -.45997E-05   -.17259E-03
  25  Prefactor     .84208        .18226        .31020E-05   -.98675E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 27.8023
  Prefactor  = 38.5628
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.22498
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 23.1425
  Prefactor  = 4.15518
  Prefactor  = 11.0721
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100081
  Prefactor  = 0.0001
  Prefactor  = 12.8716
  Prefactor  = 0.000100001
  Prefactor  = 0.000101513
  Prefactor  = 28.4361
  Prefactor  = 0.000100006
  Prefactor  = 0.000100004
  Normalizat = 1.0939
  Prefactor  = 0.842083
 **********
 **   18 **HESSE 
 **********

 FCN=   4608.962     FROM HESSE     STATUS=OK           427 CALLS     3383 TOTAL
                     EDM=   .72E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.2423        .81108E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.802        11.092        .75981E-04   -1.4653    
   3  Prefactor     38.563        14.339        .64526E-04   -1.4465    
   4  Prefactor     .10000E-03    8.2631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    5.4541        .15462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.5930        .83508E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.742        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2250        5.2162        .19224E-03   -1.5349    
   9  Prefactor     .10000E-03    1.9449        .92214E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    27.895        .36485E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          23.143        21.779        .83285E-04   -1.4745    
  12  Prefactor     4.1552        2.6776        .85321E-04   -1.5300    
  13  Prefactor     11.072        28.582        .12026E-03   -1.5042    
  14  Prefactor     .10000E-03    18.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.6769        .12685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10008E-03    14.246        .20424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.746        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.872        15.742        .11165E-03   -1.4990    
  19  Prefactor     .10000E-03    24.856        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10151E-03    9.3270        .60310E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     28.436        20.594        .75123E-04   -1.4641    
  22  Prefactor     .10001E-03    39.097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    63.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0939        .27715        .27446E-03   -.89948    
  25  Prefactor     .84208        .19051        .22414E-03   -.98195    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.16752e-09
Minuit parameter uncertainties:
  1  3.47204e-05
  2  11.0925
  3  14.3403
  4  1.0445e-05
  5  6.65523e-07
  6  1.03017e-05
  7  0.000238419
  8  5.21698
  9  4.83695e-05
  10  5.79967e-05
  11  21.7862
  12  2.67772
  13  28.6173
  14  0.000150971
  15  1.33598e-05
  16  0.00214284
  17  0.000189617
  18  15.7474
  19  0.000238117
  20  0.00751443
  21  20.5993
  22  0.00098998
  23  0.00105902
  24  0.277521
  25  0.190656
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  2.314e+01  2.179e+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.421e-01  1.907e-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.094e+00  2.775e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.56
Ra Dec: 172.875 -5.073
Photon Index (Fixed Index): 2.71 +/- 0.00
Photon Flux (Fixed Index): 1.92e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 9.89e-06 +/- 9.31e-06

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

Saving results to:
/scratch/kocevski/911650/likelihoodResults_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.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) = 4607.84989792
delta logL = 1.11210592678

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4607.74747013
delta logL = 1.21453372516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.232       1.0000         .10000E-03   10000.    
     2 'alpha     '    .97202       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1069       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83615       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=   4607.747     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      207 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.232        28.298        .16879E-02   -.56202E-03
   2  alpha         .96996        .93808        .50000        .22390E-05
   3  Normalizat    1.1067        .22057        .61730E-01    .10648E-04
   4  Prefactor     .83628        .16089        .44186E-01    .87191E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 35.2318
  alpha      = 0.969957
  Normalizat = 1.10671
  Prefactor  = 0.836278
 **********
 **   18 **HESSE 
 **********

 FCN=   4607.747     FROM HESSE     STATUS=OK            31 CALLS      238 TOTAL
                     EDM=   .73E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.232        29.746        .67515E-04   -1.4520    
   2  alpha         .96996        .95073        .32675E-01   -.65861    
   3  Normalizat    1.1067        .25807        .27303E-03   -.89537    
   4  Prefactor     .83628        .18839        .22458E-03   -.98405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31984e-10
Minuit parameter uncertainties:
  1  29.7582
  2  0.991811
  3  0.258365
  4  0.188539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911650': 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) = 4607.74746723
delta logL = 1.21453662035

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  3.523e+01  2.976e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  9.700e-01  9.918e-01  0.000e+00  5.000e+00 ( 1.000e+00)
312         beta:  6.202e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
313           Eb:  1.252e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  8.363e-01  1.885e-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.107e+00  2.584e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.00
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 0.97 +/- 0.99
Photon Flux (Free Index): 9.91e-09 +/- 8.28e-09
Energy Flux (Free Index): 1.91e-05 +/- 1.86e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/911650/cmap_HighResolution_387331201_387590401_4FGL_J1131.4-0504_daily_bin571.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.61e-05', comment='SUCCESS', photon_flux='1.92e-08', energy_flux2='1.91e-05', photon_flux_error='1.81e-08', dlogl='1.21e+00', energy_flux='9.89e-06', photon_flux2='9.91e-09', job_status='DONE', time_completed='2021-09-04 03:24:52.962327', photon_index_error2='0.99', photon_index2='0.97', ts='2.56', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', photon_flux_upper_limit='7.00e-08', energy_flux_error2='1.86e-05', EG='1.09', time_epoch_completed='1630751092.96', return_code='0', job_id='911650', GAL2='0.84', EG2='1.11', return_code2='0', energy_flux_error='9.31e-06', photon_flux_error2='8.28e-09', ts2='5.00', photon_index='2.71' WHERE bin_id='571' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:24:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 911650: <4FGL_J1131.4-0504_daily_bin571> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin571> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 03:11:21 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:11:23 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:23 2021
Terminated at Sat Sep  4 03:24:53 2021
Results reported at Sat Sep  4 03:24:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin571 172.875 -5.073 387331201 387590401 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 :                                   648.43 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             273.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   810 sec.
    Turnaround time :                            812 sec.

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

