/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 62 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 = 7420
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin95
RA = 172.875, Dec = -5.073
tmin = 263952001, tmax = 264211201
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='907083', job_status='RUN', time_executed='2021-09-04 02:58:15.352444', time_epoch_executed='1630749495.35' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='95'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907083

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907083/ft1_4FGL_J1131.4-0504_daily_bin95.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907083/ft1_4FGL_J1131.4-0504_daily_bin95.fits outfile=/scratch/kocevski/907083/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin95.fits ra=172.875 dec=-5.073 rad=12.0 tmin=263952001.0 tmax=264211201.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 1.72
user 1.50
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits" evtable="EVENTS" scfile=/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits sctable="SC_DATA" outfile=/scratch/kocevski/907083/ltcube_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.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/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits
.....................!
real 12.98
user 12.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits sctable="SC_DATA" expcube=/scratch/kocevski/907083/ltcube_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.fits outfile=/scratch/kocevski/907083/expmap_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.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/907083/ltcube_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.fits
.....................!
real 193.91
user 187.87
sys 5.20

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/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits scfile=/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits outfile=/scratch/kocevski/907083/cmap_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits scfile=/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits outfile=/scratch/kocevski/907083/cmap_HighResolution_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=172.875 yref=-5.073 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits evtable="EVENTS" scfile=/scratch/kocevski/907083/ft2_4FGL_J1131.4-0504_daily_bin95.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907083/Model_4FGL_J1131.4-0504_daily_bin95.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/907083/ft1_filtered_4FGL_J1131.4-0504_daily_bin95.fits.....................!
real 67.64
user 65.60
sys 1.58

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4629       1.0000         .10000E-03   10000.    
     2 'norm      '    5.7105       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.2819       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10362E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.3454       1.0000         .10000E-03   10000.    
     7 'Prefactor '    36.019       1.0000         .10000E-03   10000.    
     8 'norm      '    26.577       1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.3568       1.0000         .10000E-03   10000.    
    10 'Prefactor '    18.402       1.0000         .10000E-03   10000.    
    11 'norm      '    .15233E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.6052       1.0000         .10000E-03   10000.    
    13 'Prefactor '    47.448       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.5712       1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8697       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.4744       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11460       1.0000         .10000E-03   10000.    
    21 'Prefactor '    17.248       1.0000         .10000E-03   10000.    
    22 'Prefactor '    8.2083       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .96340       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0076       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=   7234.290     FROM MIGRAD    STATUS=CONVERGED    568 CALLS     2534 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4639        .67011       -.11837E-07    .12700E-04
   2  norm          5.7108        5.4782        .29407E-06   -.73706E-06
   3  Prefactor     .10000E-03    12.945       -.40275E-07** at limit **
   4  Prefactor     9.2454        16.258       -.54643E-05   -.47484E-04
   5  Prefactor     .10000E-03    5.3843        .12192E-06** at limit **
   6  Prefactor     4.3451        5.9101       -.87694E-06   -.10756E-03
   7  Prefactor     36.025        41.047        .80209E-05    .32302E-04
   8  norm          26.583        13.317        .10202E-05    .63569E-05
   9  Prefactor     7.3595        6.2484        .66932E-06   -.27265E-03
  10  Prefactor     18.401        9.4152        .10983E-06    .10268E-04
  11  norm          .10000E-03    48.810        .98243E-05** at limit **
  12  Prefactor     1.6051        1.5413       -.19956E-07   -.18496E-04
  13  Prefactor     47.449        28.688       -.81118E-06   -.94459E-04
  14  Prefactor     9.5632        18.846       -.36766E-05   -.20181E-04
  15  norm          .10000E-03    1.5024       -.12662E-07** at limit **
  16  Prefactor     .10000E-03    1.3823       -.49196E-07** at limit **
  17  Prefactor     1.8673        3.4622        .73710E-06   -.92664E-03
  18  Prefactor     .10000E-03    29.321       -.18057E-05** at limit **
  19  Prefactor     5.4734        25.463       -.15615E-05   -.40413E-05
  20  Prefactor     .90213E-01    4.0688       -.26970E-07   -.65640E-04
  21  Prefactor     17.244        13.248        .74939E-07    .78503E-05
  22  Prefactor     8.2067        28.797       -.26324E-05   -.55131E-05
  23  Prefactor     .10000E-03    9.0731        .27755E-07** at limit **
  24  Normalizat    .96326        .20488        .73294E-06   -.15331E-04
  25  Prefactor     1.0078        .14211       -.95329E-07    .16529E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.46389
  norm       = 5.71078
  Prefactor  = 0.0001
  Prefactor  = 9.24539
  Prefactor  = 0.0001
  Prefactor  = 4.34509
  Prefactor  = 36.0249
  norm       = 26.5827
  Prefactor  = 7.35948
  Prefactor  = 18.4012
  norm       = 0.000100001
  Prefactor  = 1.60512
  Prefactor  = 47.4486
  Prefactor  = 9.56321
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.86735
  Prefactor  = 0.0001
  Prefactor  = 5.47338
  Prefactor  = 0.0902135
  Prefactor  = 17.2445
  Prefactor  = 8.20666
  Prefactor  = 0.0001
  Normalizat = 0.963264
  Prefactor  = 1.00777
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.290     FROM HESSE     STATUS=OK           441 CALLS     2975 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4639        .66574        .44692E-04   -1.5466    
   2  norm          5.7108        5.4768        .16809E-03   -1.5230    
   3  Prefactor     .10000E-03    13.080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.2454        16.327        .13155E-03   -1.5100    
   5  Prefactor     .10000E-03    5.3946        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.3451        5.8754        .19323E-03   -1.5291    
   7  Prefactor     36.025        41.164        .66776E-04   -1.4507    
   8  norm          26.583        13.285        .77707E-04   -1.4676    
   9  Prefactor     7.3595        6.1823        .14787E-03   -1.5165    
  10  Prefactor     18.401        9.4224        .93366E-04   -1.4850    
  11  norm          .10000E-03    49.584        .40917E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     1.6051        1.5396        .99834E-04   -1.5455    
  13  Prefactor     47.449        28.688        .58211E-04   -1.4329    
  14  Prefactor     9.5632        18.858        .12953E-03   -1.5089    
  15  norm          .10000E-03    1.5063        .10180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4033        .97562E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.8673        12.797        .15231E-02   -1.5435    
  18  Prefactor     .10000E-03    30.254        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     5.4734        25.342        .17173E-03   -1.5240    
  20  Prefactor     .90213E-01    4.3037        .58070E-01   -1.5648    
  21  Prefactor     17.244        13.244        .96438E-04   -1.4877    
  22  Prefactor     8.2067        28.747        .13993E-03   -1.5135    
  23  Prefactor     .10000E-03    9.1162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .96326        .24165        .30659E-03   -.94271    
  25  Prefactor     1.0078        .16759        .22063E-03   -.92471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.60376e-09
Minuit parameter uncertainties:
  1  0.665746
  2  5.47727
  3  3.3948e-06
  4  16.3348
  5  2.70783e-05
  6  5.87618
  7  41.1961
  8  13.2868
  9  6.18281
  10  9.42312
  11  0.000375157
  12  1.53963
  13  28.6959
  14  18.8699
  15  2.53185e-07
  16  5.58374e-07
  17  9.77966
  18  2.88269e-06
  19  23.5707
  20  1.2456
  21  13.2467
  22  28.7958
  23  3.08466e-06
  24  0.241924
  25  0.167673
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.008e+00  1.677e-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:  9.633e-01  2.419e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.20e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/907083/likelihoodResults_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.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) = 7234.28985554
delta logL = -9.61444320637e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7234.28975948
delta logL = -8.23811205919e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7018       1.0000          .0000       5.0000    
     3 'Normalizat'    .96326       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0078       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=   7234.290     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      194 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    60.116        .90712E-02** at limit **
   2  alpha         2.7664        3.6461        .41322       -.70185E-05
   3  Normalizat    .96327        .19036        .69301E-01    .96350E-04
   4  Prefactor     1.0078        .14061        .43671E-01   -.47888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.76637
  Normalizat = 0.963271
  Prefactor  = 1.00776
 **********
 **   18 **HESSE 
 **********

 FCN=   7234.290     FROM HESSE     STATUS=OK            25 CALLS      219 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    56.584        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.7664        3.6071        .16529E-01    .10675    
   3  Normalizat    .96327        .22234        .30658E-03   -.94271    
   4  Prefactor     1.0078        .16443        .22063E-03   -.92471    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05602e-09
Minuit parameter uncertainties:
  1  0.000159667
  2  2.48588
  3  0.22255
  4  0.164516
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907083': 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) = 7234.28975925
delta logL = 1.44163095683e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
629    Prefactor:  1.008e+00  1.645e-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:  9.633e-01  2.225e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/907083/cmap_HighResolution_263952001_264211201_4FGL_J1131.4-0504_daily_bin95.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.20e-05', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-04 03:11:40.833720', job_id='907083', GAL2='1.01', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1630750300.83', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='1.44e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='95' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:11:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 907083: <4FGL_J1131.4-0504_daily_bin95> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin95> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 02:57:00 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:57:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 02:57:02 2021
Terminated at Sat Sep  4 03:11:41 2021
Results reported at Sat Sep  4 03:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin95 172.875 -5.073 263952001 264211201 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 :                                   803.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             355.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

