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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin1132
RA = 171.763, Dec = -18.964
tmin = 532742401, tmax = 533001601
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='792654', job_status='RUN', time_executed='2021-09-03 21:02:59.474918', time_epoch_executed='1630728179.47' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='1132'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/792654

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/792654/ft1_4FGL_J1127.0-1857_daily_bin1132.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/792654/ft1_4FGL_J1127.0-1857_daily_bin1132.fits outfile=/scratch/kocevski/792654/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin1132.fits ra=171.763 dec=-18.964 rad=12.0 tmin=532742401.0 tmax=533001601.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.75
user 3.49
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.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/792654/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin1132.fits evtable="EVENTS" outfile="/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.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.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits" evtable="EVENTS" scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits sctable="SC_DATA" outfile=/scratch/kocevski/792654/ltcube_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.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/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits
.....................!
real 16.58
user 16.19
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits sctable="SC_DATA" expcube=/scratch/kocevski/792654/ltcube_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits outfile=/scratch/kocevski/792654/expmap_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.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/792654/ltcube_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits
.....................!
real 193.10
user 187.27
sys 5.29

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 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.0-1857 @ 171.763 -18.964

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits outfile=/scratch/kocevski/792654/cmap_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.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=171.763 yref=-18.964 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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits outfile=/scratch/kocevski/792654/cmap_HighResolution_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.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=171.763 yref=-18.964 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits evtable="EVENTS" scfile=/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/792654/Model_4FGL_J1127.0-1857_daily_bin1132.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/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits.....................!
real 74.47
user 72.86
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits', '/scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits', expMap='/scratch/kocevski/792654/expmap_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits', expCube='/scratch/kocevski/792654/ltcube_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/792654/Model_4FGL_J1127.0-1857_daily_bin1132.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.0-1857'

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  2.807e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.092e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/792654/ft1_filtered_4FGL_J1127.0-1857_daily_bin1132.fits
Spacecraft file(s): /scratch/kocevski/792654/ft2_4FGL_J1127.0-1857_daily_bin1132.fits
Exposure map: /scratch/kocevski/792654/expmap_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits
Exposure cube: /scratch/kocevski/792654/ltcube_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/792654/Model_4FGL_J1127.0-1857_daily_bin1132.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) = 8452.86346505

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.3879       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7792       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2861       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1125       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    45.139       1.0000         .10000E-03   10000.    
    10 'norm      '    .66029       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.0031       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.8710       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    36.429       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.481       1.0000         .10000E-03   10000.    
    18 'norm      '    .13360E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    8.2587       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10194E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0347       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8452.842     FROM MIGRAD    STATUS=CONVERGED    539 CALLS     2330 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.3884        3.8351        .80037E-07   -.76301E-06
   2  norm          2.7800        4.6824       -.53754E-08   -.32034E-04
   3  Prefactor     .10000E-03    7.0742       -.19676E-06** at limit **
   4  Prefactor     .10000E-03    19.930        .53713E-06** at limit **
   5  Prefactor     3.2895        16.277        .47525E-05   -.41282E-04
   6  Prefactor     4.1134        122.41       -.26570E-05    .86851E-06
   7  Prefactor     .10000E-03    16.184        .49724E-06** at limit **
   8  Prefactor     .10000E-03    7.7232        .38882E-07** at limit **
   9  Prefactor     45.122        34.175        .20804E-05    .70565E-04
  10  norm          .66288        .93880       -.28731E-06   -.16098E-02
  11  Prefactor     4.0011        6.7913        .28065E-05   -.95835E-04
  12  Prefactor     .10000E-03    14.893       -.74137E-07** at limit **
  13  Prefactor     .10000E-03    1.4003        .21611E-08** at limit **
  14  Prefactor     1.8719        4.9682        .66668E-06   -.22694E-05
  15  Prefactor     14.588        12.889       -.13572E-06   -.29602E-04
  16  Prefactor     36.429        27.746       -.27882E-07    .12875E-04
  17  Prefactor     14.488        11.632        .26874E-06    .20107E-03
  18  norm          .10000E-03    2.0969       -.20527E-06** at limit **
  19  Prefactor     8.2586        6.0971        .51691E-06    .71041E-05
  20  Prefactor     .10000E-03    14.208       -.54949E-06** at limit **
  21  Prefactor     .10000E-03    32.491       -.14698E-05** at limit **
  22  Prefactor     .10000E-03    40.869        .18885E-05** at limit **
  23  Normalizat    1.0345        .18967       -.11151E-05    .17195E-03
  24  Prefactor     1.0024        .11107        .59960E-07    .15226E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.3884
  norm       = 2.78003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.28951
  Prefactor  = 4.11336
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.1223
  norm       = 0.662882
  Prefactor  = 4.00114
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.87192
  Prefactor  = 14.588
  Prefactor  = 36.4287
  Prefactor  = 14.4882
  norm       = 0.0001
  Prefactor  = 8.25857
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.0345
  Prefactor  = 1.00242
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.842     FROM HESSE     STATUS=OK           403 CALLS     2733 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.3884        3.8339        .14571E-03   -1.5244    
   2  norm          2.7800        4.6720        .24410E-03   -1.5374    
   3  Prefactor     .10000E-03    7.0777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2895        16.071        .11168E-02   -1.5345    
   6  Prefactor     4.1134        121.71        .19879E-03   -1.5302    
   7  Prefactor     .10000E-03    16.207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    7.8240        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     45.122        34.233        .29837E-03   -1.4363    
  10  norm          .66288        .84641        .10101E-02   -1.5545    
  11  Prefactor     4.0011        6.7893        .10078E-02   -1.5308    
  12  Prefactor     .10000E-03    14.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.4051        .10621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.8719        4.9137        .30171E-03   -1.5434    
  15  Prefactor     14.588        12.773        .10486E-03   -1.4944    
  16  Prefactor     36.429        27.764        .66401E-04   -1.4500    
  17  Prefactor     14.488        10.603        .10525E-03   -1.4947    
  18  norm          .10000E-03    6.5043        .23301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     8.2586        6.0870        .69752E-03   -1.5133    
  20  Prefactor     .10000E-03    14.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    33.099        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    40.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.0345        .22282        .30366E-03   -.91883    
  24  Prefactor     1.0024        .13258        .19049E-03   -.92649    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.86486e-10
Minuit parameter uncertainties:
  1  3.83411
  2  4.67264
  3  4.69085e-06
  4  7.3909e-06
  5  14.5476
  6  44.8491
  7  5.82034e-06
  8  1.67317e-05
  9  34.2483
  10  0.846429
  11  6.79063
  12  1.18262e-06
  13  2.78946e-07
  14  4.91477
  15  12.7749
  16  27.7743
  17  10.6043
  18  1.35734e-05
  19  6.08742
  20  1.20344e-05
  21  0.00013402
  22  0.000114658
  23  0.223021
  24  0.132627
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  6.629e-01  8.464e-01  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.092e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.002e+00  1.326e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  1.035e+00  2.230e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.00
Ra Dec: 171.763 -18.964
Photon Flux Upper Limit: 8.78e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/792654/likelihoodResults_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.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) = 8452.07540612
delta logL = 0.766442871989

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8452.05989369
delta logL = 0.781955304075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .44384       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.5908       1.0000          .0000       5.0000    
     3 'Normalizat'    .94659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0365       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8452.060     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      225 TOTAL
                     EDM=   .81E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .44109        3.6430        .89593E-02    .16123E-02
   2  alpha         3.5965        4.2372        .46469        .40723E-04
   3  Normalizat    .94617        .42452E-01    .71385E-01   -.10230E-03
   4  Prefactor     1.0367        .26350E-01    .40777E-01   -.12128E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.441091
  alpha      = 3.59648
  Normalizat = 0.946174
  Prefactor  = 1.03668
 **********
 **   18 **HESSE 
 **********

 FCN=   8452.060     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      258 TOTAL
                     EDM=   .26E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .44109        9.5639        .40686E-03   -1.5575    
   2  alpha         3.5965        3.4796        .18233E-01    .45403    
   3  Normalizat    .94617        .20947        .31584E-03   -.94856    
   4  Prefactor     1.0367        .12903        .18763E-03   -.91517    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.63859e-07
Minuit parameter uncertainties:
  1  4.1081
  2  7.28669
  3  0.209647
  4  0.129072
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/792654': 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) = 8452.05988726
delta logL = 0.781961727324

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  4.411e-01  4.108e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  3.596e+00  7.287e+00  0.000e+00  5.000e+00 ( 1.000e+00)
311         beta:  8.161e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
312           Eb:  5.818e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.037e+00  1.291e-01  0.000e+00  1.000e+01 ( 1.000e+00)
619        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
620        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
617   Normalization:  9.462e-01  2.096e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.72
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 3.60 +/- 7.29
Photon Flux (Free Index): 8.13e-08 +/- 7.07e-08
Energy Flux (Free Index): 1.36e-05 +/- 1.96e-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/792654/cmap_HighResolution_532742401_533001601_4FGL_J1127.0-1857_daily_bin1132.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.95e-05', comment='SUCCESS', energy_flux2='1.36e-05', dlogl='7.82e-01', photon_flux2='8.13e-08', job_status='DONE', time_completed='2021-09-03 21:17:17.930939', photon_index_error2='7.29', photon_index2='3.60', ts='1.00', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='8.78e-08', energy_flux_error2='1.96e-05', EG='1.03', time_epoch_completed='1630729037.93', return_code='0', job_id='792654', GAL2='1.04', EG2='0.95', return_code2='102', photon_flux_error2='7.07e-08', ts2='2.72', photon_index='2.09' WHERE bin_id='1132' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:17:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 792654: <4FGL_J1127.0-1857_daily_bin1132> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin1132> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:01:17 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:02:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 21:02:46 2021
Terminated at Fri Sep  3 21:17:18 2021
Results reported at Fri Sep  3 21:17:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin1132 171.763 -18.964 532742401 533001601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.0-1857 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   854.49 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            961 sec.

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

