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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin395
RA = 171.763, Dec = -18.964
tmin = 341712001, tmax = 341971201
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='788095', job_status='RUN', time_executed='2021-09-03 20:50:43.183424', time_epoch_executed='1630727443.18' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/788095

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/788095/ft1_4FGL_J1127.0-1857_daily_bin395.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/788095/ft1_4FGL_J1127.0-1857_daily_bin395.fits outfile=/scratch/kocevski/788095/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin395.fits ra=171.763 dec=-18.964 rad=12.0 tmin=341712001.0 tmax=341971201.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.48
user 3.22
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.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/788095/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin395.fits evtable="EVENTS" outfile="/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.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.52
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits" evtable="EVENTS" scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits sctable="SC_DATA" outfile=/scratch/kocevski/788095/ltcube_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.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/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits
.....................!
real 16.38
user 15.97
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits sctable="SC_DATA" expcube=/scratch/kocevski/788095/ltcube_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits outfile=/scratch/kocevski/788095/expmap_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.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/788095/ltcube_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits
.....................!
real 192.29
user 186.53
sys 5.05

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/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits outfile=/scratch/kocevski/788095/cmap_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.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.69
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits outfile=/scratch/kocevski/788095/cmap_HighResolution_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.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.60
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits evtable="EVENTS" scfile=/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/788095/Model_4FGL_J1127.0-1857_daily_bin395.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/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits....................!
real 61.38
user 59.77
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits', '/scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits', expMap='/scratch/kocevski/788095/expmap_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits', expCube='/scratch/kocevski/788095/ltcube_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/788095/Model_4FGL_J1127.0-1857_daily_bin395.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/788095/ft1_filtered_4FGL_J1127.0-1857_daily_bin395.fits
Spacecraft file(s): /scratch/kocevski/788095/ft2_4FGL_J1127.0-1857_daily_bin395.fits
Exposure map: /scratch/kocevski/788095/expmap_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits
Exposure cube: /scratch/kocevski/788095/ltcube_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/788095/Model_4FGL_J1127.0-1857_daily_bin395.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) = 6607.35175815

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1755       1.0000         .10000E-03   10000.    
     2 'norm      '    17.215       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.1906       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.8981       1.0000         .10000E-03   10000.    
     9 'Prefactor '    55.892       1.0000         .10000E-03   10000.    
    10 'norm      '    13.083       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.096       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10170E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.0145       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .34468E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.7702       1.0000         .10000E-03   10000.    
    20 'Prefactor '    40.459       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11113E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    6.9522       1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0978       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=   6607.348     FROM MIGRAD    STATUS=CONVERGED    530 CALLS     2712 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1762        7.5166        .78562E-06    .82873E-04
   2  norm          17.216        8.4114        .64901E-07   -.27280E-05
   3  Prefactor     8.1907        18.621        .14419E-06    .51833E-05
   4  Prefactor     .10000E-03    38.305       -.29220E-05** at limit **
   5  Prefactor     .10000E-03    8.2228       -.27943E-06** at limit **
   6  Prefactor     .10000E-03    43.691        .26930E-05** at limit **
   7  Prefactor     .10000E-03    10.985       -.41284E-06** at limit **
   8  Prefactor     3.9001        13.181        .40254E-06    .82102E-05
   9  Prefactor     55.888        63.876        .70533E-06    .61599E-05
  10  norm          13.083        2.5296        .13636E-07    .10235E-03
  11  Prefactor     13.096        11.548        .19545E-06    .90166E-05
  12  Prefactor     .10000E-03    22.329       -.15126E-05** at limit **
  13  Prefactor     .10000E-03    3.2282        .29100E-07** at limit **
  14  Prefactor     .10000E-03    4.4074       -.64293E-08** at limit **
  15  Prefactor     .99684        10.246        .79816E-06   -.87853E-04
  16  Prefactor     .10000E-03    11.510       -.15556E-06** at limit **
  17  Prefactor     .10000E-03    8.9516        .47312E-06** at limit **
  18  norm          .10019E-03    2.7035       -.84939E-06** at limit **
  19  Prefactor     4.7710        8.4668        .24104E-05    .13749E-03
  20  Prefactor     40.446        48.123        .19582E-05    .36888E-04
  21  Prefactor     .10000E-03    19.265        .10713E-05** at limit **
  22  Prefactor     6.9469        84.297       -.52799E-06   -.13764E-04
  23  Normalizat    1.0654        .25818       -.90059E-06    .49002E-04
  24  Prefactor     1.0978        .15084       -.19581E-06    .93401E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.17617
  norm       = 17.2157
  Prefactor  = 8.19073
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.90013
  Prefactor  = 55.888
  norm       = 13.0827
  Prefactor  = 13.0963
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.996843
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010019
  Prefactor  = 4.77105
  Prefactor  = 40.4459
  Prefactor  = 0.0001
  Prefactor  = 6.94689
  Normalizat = 1.06538
  Prefactor  = 1.09775
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.348     FROM HESSE     STATUS=OK           405 CALLS     3117 TOTAL
                     EDM=   .37E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1762        7.5173        .66155E-03   -1.5102    
   2  norm          17.216        8.4146        .96530E-04   -1.4878    
   3  Prefactor     8.1907        18.613        .14009E-03   -1.5135    
   4  Prefactor     .10000E-03    38.400        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.2518        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    43.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    10.988        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.9001        13.174        .20435E-03   -1.5313    
   9  Prefactor     55.888        63.903        .53656E-04   -1.4211    
  10  norm          13.083        2.5314        .52873E-04   -1.4984    
  11  Prefactor     13.096        11.574        .11069E-03   -1.4984    
  12  Prefactor     .10000E-03    22.382        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.2546        .14259E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.5187        .33270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .99684        65.564        .48777E-02   -1.5508    
  16  Prefactor     .10000E-03    11.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    8.9609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10019E-03    3.6965        .44490E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.7710        8.4928        .92108E-03   -1.5271    
  20  Prefactor     40.446        48.242        .63019E-04   -1.4435    
  21  Prefactor     .10000E-03    19.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     6.9469        83.517        .15215E-03   -1.5181    
  23  Normalizat    1.0654        .30047        .35647E-03   -.90871    
  24  Prefactor     1.0978        .17696        .21117E-03   -.89538    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.689e-10
Minuit parameter uncertainties:
  1  7.51805
  2  8.41514
  3  18.6264
  4  5.23013e-05
  5  1.38221e-07
  6  5.61601e-05
  7  4.44782e-06
  8  13.1834
  9  63.9813
  10  2.53142
  11  11.5761
  12  1.50307e-05
  13  6.96577e-07
  14  1.3589e-06
  15  16.1864
  16  1.72088e-06
  17  4.83193e-06
  18  0.00167812
  19  8.4949
  20  48.2887
  21  8.85588e-05
  22  48.2579
  23  0.300955
  24  0.177053
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.308e+01  2.531e+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

GAL_V02
   Spectrum: PowerLaw
618    Prefactor:  1.098e+00  1.771e-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.065e+00  3.010e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 94.34
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 4.23e-07 +/- 8.19e-08
Energy Flux (Fixed Index): 1.90e-04 +/- 3.68e-05

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) = 6607.34816552
delta logL = 0.000156083357979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6607.34815782
delta logL = 0.000163786175108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.083       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0891       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0663       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0974       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=   6607.348     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      189 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.090        2.7580        .27686E-02   -.17180E-04
   2  alpha         2.0890        .19097        .12329        .11510E-04
   3  Normalizat    1.0663        .25083        .80497E-01    .18735E-04
   4  Prefactor     1.0974        .14964        .37685E-01   -.17225E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0904
  alpha      = 2.08903
  Normalizat = 1.06627
  Prefactor  = 1.09742
 **********
 **   18 **HESSE 
 **********

 FCN=   6607.348     FROM HESSE     STATUS=OK            31 CALLS      220 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.090        2.5038        .52912E-04   -1.4984    
   2  alpha         2.0890        .17589        .53749E-03   -.16514    
   3  Normalizat    1.0663        .29400        .35635E-03   -.90842    
   4  Prefactor     1.0974        .17543        .21120E-03   -.89549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.09701e-13
Minuit parameter uncertainties:
  1  2.50385
  2  0.176043
  3  0.294454
  4  0.175518
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/788095': 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) = 6607.34815323
delta logL = 0.00016837576095

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.309e+01  2.504e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.089e+00  1.760e-01  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.097e+00  1.755e-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.066e+00  2.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 94.51
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.09 +/- 0.18
Photon Flux (Free Index): 4.22e-07 +/- 9.32e-08
Energy Flux (Free Index): 1.91e-04 +/- 4.54e-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/788095/cmap_HighResolution_341712001_341971201_4FGL_J1127.0-1857_daily_bin395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.23e-07', energy_flux2='1.91e-04', photon_flux_error='8.19e-08', dlogl='1.68e-04', energy_flux='1.90e-04', photon_flux2='4.22e-07', job_status='DONE', time_completed='2021-09-03 21:02:07.215277', photon_index_error2='0.18', photon_index2='2.09', ts='94.34', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='4.54e-05', EG='1.07', time_epoch_completed='1630728127.22', return_code='0', job_id='788095', GAL2='1.10', EG2='1.07', return_code2='0', energy_flux_error='3.68e-05', photon_flux_error2='9.32e-08', ts2='94.51', photon_index='2.09' WHERE bin_id='395' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:02:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 788095: <4FGL_J1127.0-1857_daily_bin395> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin395 171.763 -18.964 341712001 341971201 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 :                                   681.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             276.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            931 sec.

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

