/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 153 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 = 7405
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1131.4-0504_daily_bin431
RA = 172.875, Dec = -5.073
tmin = 351043201, tmax = 351302401
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='911430', job_status='RUN', time_executed='2021-09-04 03:13:47.101245', time_epoch_executed='1630750427.1' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='431'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/911430

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/911430/ft1_4FGL_J1131.4-0504_daily_bin431.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/911430/ft1_4FGL_J1131.4-0504_daily_bin431.fits outfile=/scratch/kocevski/911430/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin431.fits ra=172.875 dec=-5.073 rad=12.0 tmin=351043201.0 tmax=351302401.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.42
user 3.21
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits" evtable="EVENTS" scfile=/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits sctable="SC_DATA" outfile=/scratch/kocevski/911430/ltcube_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.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/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits
.....................!
real 13.11
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits sctable="SC_DATA" expcube=/scratch/kocevski/911430/ltcube_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.fits outfile=/scratch/kocevski/911430/expmap_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.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/911430/ltcube_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.fits
.....................!
real 190.39
user 185.11
sys 4.82

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/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits scfile=/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits outfile=/scratch/kocevski/911430/cmap_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.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.59
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits scfile=/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits outfile=/scratch/kocevski/911430/cmap_HighResolution_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits evtable="EVENTS" scfile=/scratch/kocevski/911430/ft2_4FGL_J1131.4-0504_daily_bin431.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/911430/Model_4FGL_J1131.4-0504_daily_bin431.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/911430/ft1_filtered_4FGL_J1131.4-0504_daily_bin431.fits.....................!
real 49.55
user 47.69
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5852       1.0000         .10000E-03   10000.    
     2 'norm      '    .99794       1.0000         .10000E-03   10000.    
     3 'Prefactor '    19.330       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12998E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .93055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    92.406       1.0000         .10000E-03   10000.    
     8 'norm      '    .54627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11064E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8119       1.0000         .10000E-03   10000.    
    11 'norm      '    .13273E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11746E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    23.074       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10132E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    15.311       1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1485       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    11.949       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.347       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .68665       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1518       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=   5245.403     FROM MIGRAD    STATUS=CONVERGED    565 CALLS     2911 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5852        .81842       -.10781E-06   -.27905E-03
   2  norm          .99859        5.4148       -.18165E-06    .33226E-04
   3  Prefactor     19.330        13.168       -.79758E-06   -.28704E-04
   4  Prefactor     .10000E-03    14.507       -.33942E-05** at limit **
   5  Prefactor     19.129        15.351        .19004E-05   -.16072E-03
   6  Prefactor     .93175        4.0027       -.13677E-05   -.10670E-02
   7  Prefactor     92.321        82.044       -.83321E-04   -.94790E-05
   8  norm          .51399        9.6082        .27209E-05   -.26972E-03
   9  Prefactor     .10000E-03    2.6718        .65344E-06** at limit **
  10  Prefactor     4.8134        9.6175        .33993E-06   -.10258E-03
  11  norm          .10000E-03    17.466        .66983E-06** at limit **
  12  Prefactor     .10000E-03    1.1356       -.28192E-06** at limit **
  13  Prefactor     23.049        22.514       -.19731E-04   -.53983E-04
  14  Prefactor     .10000E-03    30.498        .47959E-05** at limit **
  15  norm          15.311        8.1234        .31639E-06   -.43719E-04
  16  Prefactor     2.1500        3.3228       -.47298E-06   -.44356E-03
  17  Prefactor     .10000E-03    10.511        .55832E-05** at limit **
  18  Prefactor     .10000E-03    8.9384       -.39041E-05** at limit **
  19  Prefactor     .10000E-03    12.562        .85849E-06** at limit **
  20  Prefactor     11.953        9.9710       -.12056E-05    .55854E-05
  21  Prefactor     16.346        16.310       -.20092E-05   -.62262E-05
  22  Prefactor     .10000E-03    12.947       -.58892E-06** at limit **
  23  Prefactor     .10000E-03    7.5814        .65569E-06** at limit **
  24  Normalizat    .68646        .22933        .81943E-05   -.30717E-04
  25  Prefactor     1.1519        .16380        .31932E-05   -.10578E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.58521
  norm       = 0.998593
  Prefactor  = 19.3298
  Prefactor  = 0.000100003
  Prefactor  = 19.1295
  Prefactor  = 0.931749
  Prefactor  = 92.3208
  norm       = 0.513993
  Prefactor  = 0.000100001
  Prefactor  = 4.81335
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 23.0485
  Prefactor  = 0.0001
  norm       = 15.3111
  Prefactor  = 2.15001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9526
  Prefactor  = 16.3462
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.686458
  Prefactor  = 1.15194
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.403     FROM HESSE     STATUS=OK           435 CALLS     3346 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5852        .83160        .40477E-04   -1.5456    
   2  norm          .99859        20.404        .31737E-02   -1.5508    
   3  Prefactor     19.330        13.427        .91099E-04   -1.4828    
   4  Prefactor     .10000E-03    14.552        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     19.129        15.248        .91538E-04   -1.4833    
   6  Prefactor     .93175        3.7244        .26434E-03   -1.5515    
   7  Prefactor     92.321        81.935        .20903E-03   -1.3783    
   8  norm          .51399        35.030        .39083E-02   -1.5565    
   9  Prefactor     .10000E-03    2.7033        .11542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     4.8134        9.6028        .18340E-03   -1.5269    
  11  norm          .10000E-03    17.534        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.6215        .14967E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     23.049        22.486        .83387E-04   -1.4747    
  14  Prefactor     .10000E-03    30.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          15.311        8.0884        .10236E-03   -1.4925    
  16  Prefactor     2.1500        3.2862        .15249E-03   -1.5415    
  17  Prefactor     .10000E-03    10.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    12.564        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     11.953        9.9785        .11589E-03   -1.5016    
  21  Prefactor     16.346        16.297        .99061E-04   -1.4899    
  22  Prefactor     .10000E-03    12.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    7.5960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .68646        .25372        .34222E-03   -1.0443    
  25  Prefactor     1.1519        .18392        .20446E-03   -.87823    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.75035e-09
Minuit parameter uncertainties:
  1  0.831603
  2  9.03091
  3  13.4296
  4  0.000417074
  5  15.2509
  6  3.72532
  7  82.036
  8  8.49082
  9  0.000105278
  10  9.60591
  11  0.000353431
  12  4.1469e-05
  13  22.4944
  14  0.000102738
  15  8.08898
  16  3.28647
  17  5.00694e-05
  18  1.35294e-05
  19  3.00952e-06
  20  9.97993
  21  16.3014
  22  4.63189e-06
  23  2.08077e-05
  24  0.254158
  25  0.18402
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  3.534e-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.152e+00  1.840e-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:  6.865e-01  2.542e-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.39e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.27e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/911430/likelihoodResults_351043201_351302401_4FGL_J1131.4-0504_daily_bin431.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): 102
logL (Free Index) = 5245.40357423
delta logL = -0.000271534421699

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5245.40330697
delta logL = -4.26859423897e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7902       1.0000          .0000       5.0000    
     3 'Normalizat'    .68646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1519       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=   5245.403     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      279 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    454.44        .18142E-01** at limit **
   2  alpha         2.3662        3.5745        .20000        .37744E-07
   3  Normalizat    .68645        .27977E-01    .34222E-03   -.92814E-03
   4  Prefactor     1.1519        .21310E-01    .20446E-03   -.15369E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.36617
  Normalizat = 0.686454
  Prefactor  = 1.15193
 **********
 **   18 **HESSE 
 **********

 FCN=   5245.403     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      306 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6949.1        .30204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3662        2.7749        .80000E-01   -.53558E-01
   3  Normalizat    .68645        .21995        .68444E-04   -1.0443    
   4  Prefactor     1.1519        .16770        .40892E-04   -.87824    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.83665e-08
Minuit parameter uncertainties:
  1  0.00167784
  2  11631
  3  0.220228
  4  0.16778
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/911430': 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): 102
logL (Free Index) = 5245.40330257
delta logL = 1.32522472995e-07

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  1.000e-04  1.678e-03  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  2.366e+00  1.163e+04  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.152e+00  1.678e-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:  6.865e-01  2.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 172.875 -5.073

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.27e-05', job_status='DONE', photon_flux_upper_limit='4.39e-08', time_completed='2021-09-04 03:25:20.613892', job_id='911430', GAL2='1.15', fit_tolerance='1e-08', EG2='0.69', EG='0.69', time_epoch_completed='1630751120.61', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.33e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.71' WHERE bin_id='431' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:25:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0259>
Subject: Job 911430: <4FGL_J1131.4-0504_daily_bin431> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin431 172.875 -5.073 351043201 351302401 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 :                                   690.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             261.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   858 sec.
    Turnaround time :                            862 sec.

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

