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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin588
RA = 172.875, Dec = -5.073
tmin = 391737601, tmax = 391996801
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='911675', job_status='RUN', time_executed='2021-09-04 03:13:46.782580', time_epoch_executed='1630750426.78' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911675

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911675/ft1_4FGL_J1131.4-0504_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911675/ft1_4FGL_J1131.4-0504_daily_bin588.fits outfile=/scratch/kocevski/911675/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin588.fits ra=172.875 dec=-5.073 rad=12.0 tmin=391737601.0 tmax=391996801.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.29
user 3.07
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/911675/ltcube_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.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/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits
.....................!
real 17.94
user 16.61
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/911675/ltcube_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.fits outfile=/scratch/kocevski/911675/expmap_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.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/911675/ltcube_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.fits
.....................!
real 190.51
user 186.10
sys 4.04

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/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits scfile=/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits outfile=/scratch/kocevski/911675/cmap_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits scfile=/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits outfile=/scratch/kocevski/911675/cmap_HighResolution_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/911675/ft2_4FGL_J1131.4-0504_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911675/Model_4FGL_J1131.4-0504_daily_bin588.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/911675/ft1_filtered_4FGL_J1131.4-0504_daily_bin588.fits....................!
real 53.78
user 52.50
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .40748       1.0000         .10000E-03   10000.    
     2 'norm      '    11.138       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.1719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.3156       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    12.105       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67283E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.4440       1.0000         .10000E-03   10000.    
    11 'norm      '    8.9409       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8457       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .76538       1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.777       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    44.010       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.0554       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.8882       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.222       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0102       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .93269       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=   5796.041     FROM MIGRAD    STATUS=CONVERGED    571 CALLS     2881 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40764        .35369        .70396E-08   -.29838E-04
   2  norm          11.138        7.5661        .22137E-07   -.23372E-04
   3  Prefactor     .10000E-03    8.1055        .15533E-07** at limit **
   4  Prefactor     5.1733        16.630       -.12257E-05   -.56171E-04
   5  Prefactor     3.3149        6.7089        .16994E-05   -.10022E-02
   6  Prefactor     .10000E-03    1.3152       -.13913E-07** at limit **
   7  Prefactor     .10000E-03    24.435       -.67267E-07** at limit **
   8  norm          12.102        9.1547        .24614E-07   -.18604E-03
   9  Prefactor     .10000E-03    2.8671        .58001E-06** at limit **
  10  Prefactor     6.4426        9.1208       -.84068E-07   -.54747E-04
  11  norm          8.9130        23.504       -.30951E-05   -.19997E-03
  12  Prefactor     3.8458        2.5340        .42855E-07   -.14132E-03
  13  Prefactor     .10000E-03    13.220        .54723E-06** at limit **
  14  Prefactor     .10000E-03    84.851        .70401E-06** at limit **
  15  norm          .75788        6.5488       -.15433E-06   -.21677E-03
  16  Prefactor     10.782        5.4841       -.49011E-06   -.46626E-04
  17  Prefactor     .10000E-03    3.8634        .10295E-07** at limit **
  18  Prefactor     13.361        15.499       -.67448E-06   -.35158E-04
  19  Prefactor     44.020        40.546        .76776E-05    .16373E-03
  20  Prefactor     2.0553        9.5135        .13298E-06   -.92056E-04
  21  Prefactor     4.8769        16.309        .26766E-05    .31012E-04
  22  Prefactor     .10000E-03    13.295       -.56002E-06** at limit **
  23  Prefactor     14.225        20.216        .13437E-06   -.50078E-05
  24  Normalizat    1.0100        .21223       -.77757E-06   -.10292E-03
  25  Prefactor     .93287        .14794        .74399E-07   -.15621E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.40764
  norm       = 11.1382
  Prefactor  = 0.0001
  Prefactor  = 5.17332
  Prefactor  = 3.31489
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.1023
  Prefactor  = 0.000100003
  Prefactor  = 6.44263
  norm       = 8.91296
  Prefactor  = 3.84584
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.757884
  Prefactor  = 10.7823
  Prefactor  = 0.0001
  Prefactor  = 13.3609
  Prefactor  = 44.0203
  Prefactor  = 2.05535
  Prefactor  = 4.87691
  Prefactor  = 0.0001
  Prefactor  = 14.2246
  Normalizat = 1.00999
  Prefactor  = 0.93287
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.041     FROM HESSE     STATUS=OK           435 CALLS     3316 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40764        .35524        .40732E-04   -1.5580    
   2  norm          11.138        7.5668        .12004E-03   -1.5040    
   3  Prefactor     .10000E-03    8.3976        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.1733        17.941        .17677E-03   -1.5253    
   5  Prefactor     3.3149        12.911        .11116E-02   -1.5344    
   6  Prefactor     .10000E-03    1.3191        .85231E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    24.441        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          12.102        9.1676        .11514E-03   -1.5012    
   9  Prefactor     .10000E-03    12.228        .21633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.4426        9.1243        .15810E-03   -1.5200    
  11  norm          8.9130        21.417        .13404E-03   -1.5111    
  12  Prefactor     3.8458        2.5368        .93324E-04   -1.5316    
  13  Prefactor     .10000E-03    13.262        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    85.879        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .75788        12.196        .32246E-02   -1.5534    
  16  Prefactor     10.782        5.2559        .10280E-03   -1.5051    
  17  Prefactor     .10000E-03    3.8645        .14614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.361        15.485        .10959E-03   -1.4977    
  19  Prefactor     44.020        40.219        .30216E-03   -1.4380    
  20  Prefactor     2.0553        9.5203        .28829E-03   -1.5421    
  21  Prefactor     4.8769        16.220        .18193E-03   -1.5266    
  22  Prefactor     .10000E-03    13.305        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     14.225        20.197        .10621E-03   -1.4953    
  24  Normalizat    1.0100        .24063        .28277E-03   -.92696    
  25  Prefactor     .93287        .16951        .21755E-03   -.95002    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25833e-09
Minuit parameter uncertainties:
  1  0.355246
  2  7.56744
  3  4.2204e-06
  4  17.9597
  5  12.9216
  6  2.82882e-07
  7  2.67678e-06
  8  9.1687
  9  0.000391199
  10  9.12629
  11  21.4353
  12  2.53683
  13  2.68554e-05
  14  0.000113478
  15  6.08159
  16  5.25613
  17  2.32002e-08
  18  15.4899
  19  40.2435
  20  8.84916
  21  16.2346
  22  4.02157e-05
  23  20.2072
  24  0.240888
  25  0.169608
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  8.913e+00  2.144e+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:  9.329e-01  1.696e-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.010e+00  2.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/911675/likelihoodResults_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.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) = 5796.0310691
delta logL = 0.00980937565419

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5796.02911022
delta logL = 0.0117682583123

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.6731       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0088       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93283       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=   5796.029     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      239 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.6707        22.893        .14477E-03    .32276E-04
   2  alpha         3.0140        1.8812        .40954E-01    .85831E-05
   3  Normalizat    1.0087        .22441        .28292E-03    .18420E-03
   4  Prefactor     .93284        .16816        .21754E-03    .13555E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.67068
  alpha      = 3.014
  Normalizat = 1.00875
  Prefactor  = 0.932843
 **********
 **   18 **HESSE 
 **********

 FCN=   5796.029     FROM HESSE     STATUS=OK            25 CALLS      264 TOTAL
                     EDM=   .68E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.6707        20.537        .57907E-05   -1.5154    
   2  alpha         3.0140        1.7335        .16381E-02    .20708    
   3  Normalizat    1.0087        .22437        .11317E-04   -.92738    
   4  Prefactor     .93284        .16818        .43509E-04   -.95003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.83664e-11
Minuit parameter uncertainties:
  1  20.5562
  2  1.92651
  3  0.224576
  4  0.168278
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911675': 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) = 5796.0291101
delta logL = 0.0117683766666

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  7.671e+00  2.056e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  3.014e+00  1.927e+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:  9.328e-01  1.683e-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.009e+00  2.246e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.21
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/911675/cmap_HighResolution_391737601_391996801_4FGL_J1131.4-0504_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='5.60e-08', time_completed='2021-09-04 03:26:00.823754', job_id='911675', GAL2='0.93', fit_tolerance='1e-08', EG2='1.01', EG='1.01', time_epoch_completed='1630751160.82', return_code2='0', ts='0.21', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='1.18e-02', ts2='0.24', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='588' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:26:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 911675: <4FGL_J1131.4-0504_daily_bin588> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin588 172.875 -5.073 391737601 391996801 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 :                                   730.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             287.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

