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


Performing analysis on: 4FGL_J1131.4-0504_daily_bin101
RA = 172.875, Dec = -5.073
tmin = 265507201, tmax = 265766401
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='907090', job_status='RUN', time_executed='2021-09-04 02:59:53.851134', time_epoch_executed='1630749593.85' WHERE source_name='4FGL J1131.4-0504' and cadence='daily' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/907090

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/907090/ft1_4FGL_J1131.4-0504_daily_bin101.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/907090/ft1_4FGL_J1131.4-0504_daily_bin101.fits outfile=/scratch/kocevski/907090/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin101.fits ra=172.875 dec=-5.073 rad=12.0 tmin=265507201.0 tmax=265766401.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.25
user 1.09
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.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/907090/ft1_filteredMKT_4FGL_J1131.4-0504_daily_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.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.42
user 0.28
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/907090/ltcube_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.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/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits
.....................!
real 10.03
user 9.73
sys 0.26

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/907090/ltcube_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.fits outfile=/scratch/kocevski/907090/expmap_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.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/907090/ltcube_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.fits
.....................!
real 146.46
user 142.83
sys 3.28

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/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits outfile=/scratch/kocevski/907090/cmap_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.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.47
user 0.30
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits outfile=/scratch/kocevski/907090/cmap_HighResolution_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.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.52
user 0.31
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/907090/ft2_4FGL_J1131.4-0504_daily_bin101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/907090/Model_4FGL_J1131.4-0504_daily_bin101.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/907090/ft1_filtered_4FGL_J1131.4-0504_daily_bin101.fits.....................!
real 66.68
user 63.64
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4693       1.0000         .10000E-03   10000.    
     2 'norm      '    .22993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.3733       1.0000         .10000E-03   10000.    
     6 'Prefactor '    3.5381       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.513       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.7090       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.608       1.0000         .10000E-03   10000.    
    11 'norm      '    4.0220       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.1730       1.0000         .10000E-03   10000.    
    13 'Prefactor '    36.666       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.9400       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.2237       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4590       1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.666       1.0000         .10000E-03   10000.    
    22 'Prefactor '    21.492       1.0000         .10000E-03   10000.    
    23 'Prefactor '    11.348       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.4450       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73811       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=   9972.341     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2912 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4694        .56720       -.10755E-07    .55072E-04
   2  norm          .25040        2.6776        .43576E-06   -.38734E-03
   3  Prefactor     .10000E-03    2.3627        .11504E-07** at limit **
   4  Prefactor     .10000E-03    6.1648       -.10152E-07** at limit **
   5  Prefactor     7.3737        6.5120       -.10890E-06    .20517E-04
   6  Prefactor     3.5379        4.2075        .49275E-06   -.69718E-05
   7  Prefactor     .10000E-03    10.921       -.21509E-07** at limit **
   8  norm          13.505        9.9791        .10333E-05    .79320E-04
   9  Prefactor     1.7180        5.6955       -.29766E-05   -.21224E-03
  10  Prefactor     22.609        8.6400       -.25127E-07    .18498E-04
  11  norm          4.0109        12.508        .29676E-05    .13291E-04
  12  Prefactor     2.1741        2.1272        .55204E-07   -.13353E-04
  13  Prefactor     36.639        28.856        .18018E-05   -.26850E-04
  14  Prefactor     .10000E-03    11.764        .42956E-07** at limit **
  15  norm          3.9406        3.9361        .80613E-07   -.13916E-04
  16  Prefactor     3.2238        2.9814        .17482E-06   -.17858E-04
  17  Prefactor     .10000E-03    7.0233        .91137E-07** at limit **
  18  Prefactor     .10000E-03    15.617        .16685E-06** at limit **
  19  Prefactor     .10000E-03    18.186       -.35687E-07** at limit **
  20  Prefactor     4.4591        4.4311        .16037E-07   -.33011E-06
  21  Prefactor     24.671        14.607       -.19150E-06    .55294E-04
  22  Prefactor     21.489        23.396       -.44054E-07   -.53874E-05
  23  Prefactor     11.349        13.843        .31306E-07    .82426E-05
  24  Normalizat    1.4447        .18636        .15781E-05   -.97995E-04
  25  Prefactor     .73822        .12499       -.13769E-05    .13888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.46944
  norm       = 0.250399
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.37372
  Prefactor  = 3.53793
  Prefactor  = 0.0001
  norm       = 13.5052
  Prefactor  = 1.71803
  Prefactor  = 22.6095
  norm       = 4.01086
  Prefactor  = 2.17408
  Prefactor  = 36.6389
  Prefactor  = 0.0001
  norm       = 3.94065
  Prefactor  = 3.22375
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.45914
  Prefactor  = 24.671
  Prefactor  = 21.4887
  Prefactor  = 11.349
  Normalizat = 1.44473
  Prefactor  = 0.738219
 **********
 **   18 **HESSE 
 **********

 FCN=   9972.341     FROM HESSE     STATUS=OK           439 CALLS     3351 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4694        .56727        .34765E-04   -1.5394    
   2  norm          .25040        10.383        .31172E-02   -1.5608    
   3  Prefactor     .10000E-03    2.3683        .14981E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    6.2012        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     7.3737        6.5083        .14771E-03   -1.5165    
   6  Prefactor     3.5379        4.1740        .19940E-03   -1.5332    
   7  Prefactor     .10000E-03    10.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.505        9.9692        .10896E-03   -1.4973    
   9  Prefactor     1.7180        5.7791        .31234E-03   -1.5446    
  10  Prefactor     22.609        8.6532        .84242E-04   -1.4757    
  11  norm          4.0109        12.524        .20108E-03   -1.5307    
  12  Prefactor     2.1741        2.1222        .13549E-03   -1.5413    
  13  Prefactor     36.639        28.931        .66186E-04   -1.4497    
  14  Prefactor     .10000E-03    11.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.9406        3.9174        .18636E-03   -1.5311    
  16  Prefactor     3.2238        2.9604        .15295E-03   -1.5349    
  17  Prefactor     .10000E-03    7.0622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    15.726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    18.240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.4591        4.4319        .19069E-03   -1.5286    
  21  Prefactor     24.671        14.693        .80656E-04   -1.4714    
  22  Prefactor     21.489        23.383        .43200E-03   -1.4781    
  23  Prefactor     11.349        13.843        .11893E-03   -1.5034    
  24  Normalizat    1.4447        .21187        .26618E-03   -.79344    
  25  Prefactor     .73822        .14060        .25809E-03   -1.0205    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.46614e-10
Minuit parameter uncertainties:
  1  0.567267
  2  3.22486
  3  5.30853e-07
  4  1.04493e-05
  5  6.50894
  6  4.17436
  7  1.29023e-05
  8  9.97045
  9  5.78093
  10  8.65371
  11  12.5326
  12  2.12228
  13  28.9416
  14  8.45355e-07
  15  3.9177
  16  2.96049
  17  1.76708e-06
  18  1.428e-05
  19  1.61476e-05
  20  4.4322
  21  14.6955
  22  23.393
  23  13.8473
  24  0.212003
  25  0.140672
Done.

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

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  4.011e+00  1.253e+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:  7.382e-01  1.407e-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.445e+00  2.120e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/907090/likelihoodResults_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.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) = 9970.62178387
delta logL = 1.71963011317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9970.53953025
delta logL = 1.80188372789

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.3568       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96840E-04   1.0000          .0000       5.0000    
     3 'Normalizat'    1.4490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73444       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=   9970.540     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      214 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.3574        8.1263        .39799E-02   -.19750E-03
   2  alpha         .55664E-08    3.6924        .46270    ** at limit **
   3  Normalizat    1.4492        .16473        .60093E-01   -.22953E-03
   4  Prefactor     .73433        .11914        .42858E-01    .23372E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.35736
  alpha      = 5.56638e-09
  Normalizat = 1.44921
  Prefactor  = 0.734334
 **********
 **   18 **HESSE 
 **********

 FCN=   9970.540     FROM HESSE     STATUS=OK            33 CALLS      247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.3574        7.9531        .15920E-03   -1.5204    
   2  alpha         .55664E-08    3.5785        .50000       -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4492        .18997        .26576E-03   -.79216    
   4  Prefactor     .73433        .13742        .25848E-03   -1.0220    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.10039e-09
Minuit parameter uncertainties:
  1  7.95445
  2  0.000239077
  3  0.190062
  4  0.137479
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/907090': 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) = 9970.53952046
delta logL = 1.80189351495

Extracting fit parameters...

4FGL J1131.4-0504
   Spectrum: LogParabola
310         norm:  6.357e+00  7.954e+00  1.000e-04  1.000e+04 ( 1.000e-13)
311        alpha:  5.566e-09  2.391e-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:  7.343e-01  1.375e-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.449e+00  1.901e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.77
Ra Dec: 172.875 -5.073
Photon Index (Free Index): 0.00 +/- 0.00
Photon Flux (Free Index): 2.68e-09 +/- 3.35e-09
Energy Flux (Free Index): 1.12e-05 +/- 1.41e-05

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/907090/cmap_HighResolution_265507201_265766401_4FGL_J1131.4-0504_daily_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.77e-05', comment='SUCCESS', energy_flux2='1.12e-05', dlogl='1.80e+00', photon_flux2='2.68e-09', job_status='DONE', time_completed='2021-09-04 03:12:42.319337', photon_index_error2='0.00', photon_index2='0.00', ts='0.16', fit_tolerance='1e-08', GAL='0.74', photon_index_error='0.00', photon_flux_upper_limit='3.43e-08', energy_flux_error2='1.41e-05', EG='1.44', time_epoch_completed='1630750362.32', return_code='0', job_id='907090', GAL2='0.73', EG2='1.45', return_code2='0', photon_flux_error2='3.35e-09', ts2='3.77', photon_index='2.71' WHERE bin_id='101' AND source_name='4FGL J1131.4-0504' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 03:12:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 907090: <4FGL_J1131.4-0504_daily_bin101> in cluster <slac> Done

Job <4FGL_J1131.4-0504_daily_bin101> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sat Sep  4 02:57:01 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 02:57:03 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:03 2021
Terminated at Sat Sep  4 03:12:43 2021
Results reported at Sat Sep  4 03:12:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1131.4-0504_daily_bin101 172.875 -5.073 265507201 265766401 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 :                                   764.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             281.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   939 sec.
    Turnaround time :                            942 sec.

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

