/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 168 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin292
RA = 172.875, Dec = -5.073
tmin = 315014401, tmax = 315273601
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='908553', job_status='RUN', time_executed='2021-09-04 03:04:31.011330', time_epoch_executed='1630749871.01' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='292'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/908553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/908553/ft1_4FGL_J1131.4-0504_daily_bin292.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/908553/ft1_4FGL_J1131.4-0504_daily_bin292.fits outfile=/scratch/kocevski/908553/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin292.fits ra=172.875 dec=-5.073 rad=12.0 tmin=315014401.0 tmax=315273601.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.55
user 3.33
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits" evtable="EVENTS" scfile=/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits sctable="SC_DATA" outfile=/scratch/kocevski/908553/ltcube_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.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/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits
.....................!
real 12.06
user 11.69
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits sctable="SC_DATA" expcube=/scratch/kocevski/908553/ltcube_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.fits outfile=/scratch/kocevski/908553/expmap_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.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/908553/ltcube_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.fits
.....................!
real 190.08
user 185.24
sys 4.09

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 198 point sources and 0 extended sources

Setting source of interest to:
4FGL J1131.4-0504 @ 172.875 -5.073

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits scfile=/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits outfile=/scratch/kocevski/908553/cmap_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.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.66
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits scfile=/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits outfile=/scratch/kocevski/908553/cmap_HighResolution_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.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.76
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits evtable="EVENTS" scfile=/scratch/kocevski/908553/ft2_4FGL_J1131.4-0504_daily_bin292.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/908553/Model_4FGL_J1131.4-0504_daily_bin292.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/908553/ft1_filtered_4FGL_J1131.4-0504_daily_bin292.fits.....................!
real 61.95
user 60.37
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41441       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.864       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10415E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.2432       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .18970E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    17.669       1.0000         .10000E-03   10000.    
     8 'norm      '    .34369E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8323       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.1421       1.0000         .10000E-03   10000.    
    11 'norm      '    4.6132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39301       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.7407       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.4016       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.3486       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    24.763       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9180       1.0000         .10000E-03   10000.    
    21 'Prefactor '    26.106       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.8137       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .65531       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6331.499     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2478 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .41615        .62068        .47278E-08   -.81732E-03
   2  norm          .10000E-03    2.3792        .16940E-06** at limit **
   3  Prefactor     12.843        2.1860        .46008E-06   -.61754E-03
   4  Prefactor     .10000E-03    21.015       -.33917E-04** at limit **
   5  Prefactor     6.2461        1.7446       -.33322E-05   -.87115E-03
   6  Prefactor     .10000E-03    5.4869        .98765E-06** at limit **
   7  Prefactor     17.660        3.2488       -.55733E-05   -.36384E-03
   8  norm          .10002E-03    22.379        .24411E-04** at limit **
   9  Prefactor     2.8350        3.7889        .71708E-06   -.23414E-03
  10  Prefactor     2.1446        2.8914        .14033E-04    .61143E-02
  11  norm          4.6047        1.5398       -.23275E-05   -.37482E-03
  12  Prefactor     .39343        1.7678       -.12574E-05    .26529E-03
  13  Prefactor     .10135E-03    19.833       -.88210E-05** at limit **
  14  Prefactor     .10012E-03    76.792        .38763E-04** at limit **
  15  norm          5.7424        5.8442       -.44678E-05   -.29693E-02
  16  Prefactor     2.3990        4.0833        .57580E-05    .64448E-03
  17  Prefactor     8.3494        1.0223        .13044E-06   -.40648E-05
  18  Prefactor     .10000E-03    8.0889        .15860E-05** at limit **
  19  Prefactor     24.647        43.227       -.68011E-04    .12743E-02
  20  Prefactor     3.9144        1.0595       -.46676E-06   -.32563E-03
  21  Prefactor     26.119        4.6254        .69978E-05   -.10710E-02
  22  Prefactor     .10001E-03    22.326        .47231E-04** at limit **
  23  Prefactor     .10185E-03    22.764       -.90300E-05** at limit **
  24  Normalizat    1.8132        .26139       -.69389E-05   -.33937E-03
  25  Prefactor     .65566        .17938        .65190E-05   -.40934E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.416154
  norm       = 0.0001
  Prefactor  = 12.8429
  Prefactor  = 0.000100003
  Prefactor  = 6.24607
  Prefactor  = 0.0001
  Prefactor  = 17.6603
  norm       = 0.000100018
  Prefactor  = 2.83498
  Prefactor  = 2.14462
  norm       = 4.6047
  Prefactor  = 0.39343
  Prefactor  = 0.000101354
  Prefactor  = 0.000100121
  norm       = 5.74236
  Prefactor  = 2.39896
  Prefactor  = 8.34939
  Prefactor  = 0.0001
  Prefactor  = 24.6472
  Prefactor  = 3.91442
  Prefactor  = 26.1187
  Prefactor  = 0.000100006
  Prefactor  = 0.000101851
  Normalizat = 1.8132
  Prefactor  = 0.655664
 **********
 **   18 **HESSE 
 **********

 FCN=   6331.499     FROM HESSE     STATUS=OK           493 CALLS     2971 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .41615        1.0809        .17237E-01   -1.5579    
   2  norm          .10000E-03    2.3668        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.843        20.506        .27920E-02   -1.4991    
   4  Prefactor     .10000E-03    21.662        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     6.2461        9.0212        .40164E-02   -1.5208    
   6  Prefactor     .10000E-03    5.3019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     17.660        36.047        .23821E-02   -1.4867    
   8  norm          .10002E-03    7.0854        .73023E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8350        4.1867        .60409E-02   -1.5371    
  10  Prefactor     2.1446        6.6100        .70400E-02   -1.5415    
  11  norm          4.6047        24.304        .46849E-02   -1.5279    
  12  Prefactor     .39343        1.8242        .10826E-01   -1.5583    
  13  Prefactor     .10135E-03    36.091        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10012E-03    77.012        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.7424        6.0589        .41909E-02   -1.5229    
  16  Prefactor     2.3990        4.2084        .66054E-02   -1.5398    
  17  Prefactor     8.3494        10.750        .34686E-02   -1.5130    
  18  Prefactor     .10000E-03    8.0882        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     24.647        45.372        .20125E-02   -1.4715    
  20  Prefactor     3.9144        11.824        .50955E-02   -1.5312    
  21  Prefactor     26.119        20.806        .19601E-02   -1.4685    
  22  Prefactor     .10001E-03    24.252        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10185E-03    39.031        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.8132        .23108        .58171E-01   -.69320    
  25  Prefactor     .65566        .15488        .62446E-01   -1.0529    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.55478e-07
Minuit parameter uncertainties:
  1  1.08092
  2  2.66711e-05
  3  20.5168
  4  0.00049358
  5  9.02317
  6  6.31627e-05
  7  36.0911
  8  0.000722808
  9  4.18713
  10  6.61227
  11  21.1711
  12  1.69419
  13  0.013991
  14  0.00610229
  15  6.05956
  16  4.20892
  17  10.7524
  18  1.51589e-06
  19  45.436
  20  11.8314
  21  20.8113
  22  0.00075941
  23  0.0170102
  24  0.231217
  25  0.154983
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  4.605e+00  2.117e+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:  6.557e-01  1.550e-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.813e+00  2.312e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/908553/likelihoodResults_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.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) = 6331.02508652
delta logL = 0.47425627343

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6330.76487083
delta logL = 0.734471964729

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.856       1.0000         .10000E-03   10000.    
     2 'alpha     '    .71731       1.0000          .0000       5.0000    
     3 'Normalizat'    1.8311       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63884       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=   6330.765     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      228 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.856        24.387        .21419E-02    .47860E-03
   2  alpha         .71667        1.0448        .50000       -.14419E-06
   3  Normalizat    1.8313        .21970        .57924E-01   -.18626E-05
   4  Prefactor     .63877        .15207        .63117E-01    .25182E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.856
  alpha      = 0.71667
  Normalizat = 1.83126
  Prefactor  = 0.638774
 **********
 **   18 **HESSE 
 **********

 FCN=   6330.765     FROM HESSE     STATUS=OK            31 CALLS      259 TOTAL
                     EDM=   .87E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.856        29.209        .85677E-04   -1.4773    
   2  alpha         .71667        1.1207        .49547E-01   -.79424    
   3  Normalizat    1.8313        .25784        .25611E-03   -.68851    
   4  Prefactor     .63877        .17832        .27924E-03   -1.0598    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.72543e-10
Minuit parameter uncertainties:
  1  29.2284
  2  1.21594
  3  0.258033
  4  0.178475
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/908553': 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) = 6330.76487043
delta logL = 0.734472362836

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  2.186e+01  2.923e+01  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  7.167e-01  1.216e+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:  6.388e-01  1.785e-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.831e+00  2.580e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.55
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 0.72 +/- 1.22
Photon Flux (Free Index): 6.36e-09 +/- 7.66e-09
Energy Flux (Free Index): 1.50e-05 +/- 1.84e-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/908553/cmap_HighResolution_315014401_315273601_4FGL_J1131.4-0504_daily_bin292.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', comment='SUCCESS', energy_flux2='1.50e-05', dlogl='7.34e-01', photon_flux2='6.36e-09', job_status='DONE', time_completed='2021-09-04 03:16:50.398548', photon_index_error2='1.22', photon_index2='0.72', ts='0.06', fit_tolerance='1e-08', GAL='0.66', photon_index_error='0.00', photon_flux_upper_limit='5.36e-08', energy_flux_error2='1.84e-05', EG='1.81', time_epoch_completed='1630750610.4', return_code='0', job_id='908553', GAL2='0.64', EG2='1.83', return_code2='0', photon_flux_error2='7.66e-09', ts2='1.55', photon_index='2.71' WHERE bin_id='292' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:16:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 908553: <4FGL_J1131.4-0504_daily_bin292> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin292> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Sat Sep  4 03:01:31 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 03:01:34 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:01:34 2021
Terminated at Sat Sep  4 03:16:51 2021
Results reported at Sat Sep  4 03:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin292 172.875 -5.073 315014401 315273601 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 :                                   736.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             293.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            920 sec.

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

