/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 52 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 = 7454
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.0-1857_daily_bin682
RA = 171.763, Dec = -18.964
tmin = 416102401, tmax = 416361601
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='789532', job_status='RUN', time_executed='2021-09-03 20:54:15.795713', time_epoch_executed='1630727655.8' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='682'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/789532

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/789532/ft1_4FGL_J1127.0-1857_daily_bin682.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/789532/ft1_4FGL_J1127.0-1857_daily_bin682.fits outfile=/scratch/kocevski/789532/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin682.fits ra=171.763 dec=-18.964 rad=12.0 tmin=416102401.0 tmax=416361601.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 6.65
user 6.27
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.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/789532/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin682.fits evtable="EVENTS" outfile="/scratch/kocevski/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.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.63
user 0.34
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits" evtable="EVENTS" scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits sctable="SC_DATA" outfile=/scratch/kocevski/789532/ltcube_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.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/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits
.....................!
real 16.87
user 16.36
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits sctable="SC_DATA" expcube=/scratch/kocevski/789532/ltcube_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.fits outfile=/scratch/kocevski/789532/expmap_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.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/789532/ltcube_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.fits
.....................!
real 191.64
user 186.82
sys 4.16

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/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits outfile=/scratch/kocevski/789532/cmap_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.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.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits outfile=/scratch/kocevski/789532/cmap_HighResolution_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.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/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits evtable="EVENTS" scfile=/scratch/kocevski/789532/ft2_4FGL_J1127.0-1857_daily_bin682.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/789532/Model_4FGL_J1127.0-1857_daily_bin682.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/789532/ft1_filtered_4FGL_J1127.0-1857_daily_bin682.fits......................!
real 35.35
user 34.04
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.543       1.0000         .10000E-03   10000.    
     2 'norm      '    37.993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10697E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    155.36       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11253E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .13997E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .14452       1.0000         .10000E-03   10000.    
     8 'Prefactor '    29.268       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    5.2448       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    29.829       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.8615       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.3117       1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.524       1.0000         .10000E-03   10000.    
    16 'Prefactor '    28.179       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.842       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8757       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .37192E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.872       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10428E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    .87891       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .60465       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2940.342     FROM MIGRAD    STATUS=CONVERGED    961 CALLS     3691 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.541        11.647        .10884E-03    .77817E-05
   2  norm          37.995        15.094        .65024E-04   -.20281E-04
   3  Prefactor     .10000E-03    332.97        .18142E-02** at limit **
   4  Prefactor     155.61        172.92        .16172E-03   -.52021E-04
   5  Prefactor     .10000E-03    69.927        .18142E-02** at limit **
   6  Prefactor     .10001E-03    254.46        .18142E-02** at limit **
   7  Prefactor     .19679        94.053        .13550        .29050E-04
   8  Prefactor     29.258        22.791        .74057E-04    .81653E-04
   9  Prefactor     .10001E-03    387.27        .18142E-02** at limit **
  10  norm          5.2445        2.2915        .51122E-04   -.22816E-03
  11  Prefactor     .10000E-03    14.641        .18142E-02** at limit **
  12  Prefactor     29.835        37.218        .73359E-04    .58890E-05
  13  Prefactor     9.8608        10.314        .12760E-03   -.19244E-04
  14  Prefactor     4.3103        9.5683        .19401E-03   -.23440E-04
  15  Prefactor     28.527        29.829        .75014E-04   -.65168E-05
  16  Prefactor     28.180        35.846        .75470E-04   -.64774E-06
  17  Prefactor     13.819        31.452        .10766E-03    .56338E-04
  18  norm          8.8739        9.5199        .12506E-03    .76817E-04
  19  Prefactor     .10000E-03    4.4733        .11168E-02** at limit **
  20  Prefactor     .10003E-03    839.86        .39166E-03** at limit **
  21  Prefactor     10.828        29.783        .12151E-03    .57541E-04
  22  Prefactor     .10000E-03    82.444        .18142E-02** at limit **
  23  Normalizat    .87915        .35607        .30323E-03   -.54476E-04
  24  Prefactor     .60457        .19197        .20486E-03    .67175E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5414
  norm       = 37.9953
  Prefactor  = 0.0001
  Prefactor  = 155.612
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  Prefactor  = 0.196791
  Prefactor  = 29.2576
  Prefactor  = 0.000100007
  norm       = 5.24452
  Prefactor  = 0.0001
  Prefactor  = 29.835
  Prefactor  = 9.86076
  Prefactor  = 4.31029
  Prefactor  = 28.5269
  Prefactor  = 28.1797
  Prefactor  = 13.8191
  norm       = 8.87394
  Prefactor  = 0.0001
  Prefactor  = 0.000100035
  Prefactor  = 10.8282
  Prefactor  = 0.0001
  Normalizat = 0.879151
  Prefactor  = 0.604565
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.342     FROM HESSE     STATUS=OK           383 CALLS     4074 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.541        11.648        .43536E-05   -1.4972    
   2  norm          37.995        15.094        .13005E-04   -1.4474    
   3  Prefactor     .10000E-03    333.05        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     155.61        172.89        .32344E-04   -1.3207    
   5  Prefactor     .10000E-03    69.987        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    254.51        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .19679        93.767        .13577       -1.5619    
   8  Prefactor     29.258        22.790        .14811E-04   -1.4626    
   9  Prefactor     .10001E-03    387.54        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          5.2445        2.2914        .20449E-05   -1.5250    
  11  Prefactor     .10000E-03    14.651        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     29.835        37.220        .29344E-05   -1.4615    
  13  Prefactor     9.8608        10.314        .51042E-05   -1.5080    
  14  Prefactor     4.3103        9.5654        .77603E-05   -1.5293    
  15  Prefactor     28.527        29.824        .30006E-05   -1.4639    
  16  Prefactor     28.180        35.847        .15094E-04   -1.4646    
  17  Prefactor     13.819        31.457        .43063E-05   -1.4964    
  18  norm          8.8739        9.5206        .50023E-05   -1.5112    
  19  Prefactor     .10000E-03    4.4737        .22337E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    839.93        .78333E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     10.828        29.784        .48603E-05   -1.5050    
  22  Prefactor     .10000E-03    82.445        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .87915        .35637        .12129E-04   -.97197    
  24  Prefactor     .60457        .19215        .81945E-05   -1.0739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.2133e-10
Minuit parameter uncertainties:
  1  11.6495
  2  15.0956
  3  0.000416879
  4  173.456
  5  0.000150464
  6  0.00255172
  7  8.60263
  8  22.7966
  9  0.00333769
  10  2.29148
  11  5.37959e-05
  12  37.2491
  13  10.3157
  14  9.56878
  15  29.8395
  16  35.8746
  17  31.4944
  18  9.5222
  19  5.65086e-06
  20  0.0109833
  21  29.8249
  22  5.96936e-05
  23  0.357333
  24  0.19236
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  5.245e+00  2.291e+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:  6.046e-01  1.924e-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:  8.792e-01  3.573e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.39
Ra Dec: 171.763 -18.964
Photon Index (Fixed Index): 2.09 +/- 0.00
Photon Flux (Fixed Index): 1.70e-07 +/- 7.41e-08
Energy Flux (Fixed Index): 7.63e-05 +/- 3.33e-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) = 2940.03676076
delta logL = 0.305597851522

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2940.02772749
delta logL = 0.314631126589

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8603       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4556       1.0000          .0000       5.0000    
     3 'Normalizat'    .81964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62733       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2940.028     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      238 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8603        2.2436        .46171E-04    .96630E-03
   2  alpha         2.4556        .47654        .82047E-02    .43515E-04
   3  Normalizat    .81970        .34005        .31252E-03   -.13060E-04
   4  Prefactor     .62733        .19128        .20136E-03    .21370E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8603
  alpha      = 2.45564
  Normalizat = 0.819698
  Prefactor  = 0.627329
 **********
 **   18 **HESSE 
 **********

 FCN=   2940.028     FROM HESSE     STATUS=OK            25 CALLS      263 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8603        2.2183        .92343E-05   -1.5267    
   2  alpha         2.4556        .47096        .32819E-03   -.17744E-01
   3  Normalizat    .81970        .34022        .12501E-04   -.99342    
   4  Prefactor     .62733        .19137        .80543E-05   -1.0645    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05633e-10
Minuit parameter uncertainties:
  1  2.2183
  2  0.473795
  3  0.341107
  4  0.191568
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/789532': 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) = 2940.02772741
delta logL = 0.314631210927

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  4.860e+00  2.218e+00  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.456e+00  4.738e-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:  6.273e-01  1.916e-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:  8.197e-01  3.411e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.96
Ra Dec: 171.763 -18.964
Photon Index (Free Index): 2.46 +/- 0.47
Photon Flux (Free Index): 2.22e-07 +/- 1.10e-07
Energy Flux (Free Index): 6.52e-05 +/- 2.81e-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/789532/cmap_HighResolution_416102401_416361601_4FGL_J1127.0-1857_daily_bin682.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.70e-07', energy_flux2='6.52e-05', photon_flux_error='7.41e-08', dlogl='3.15e-01', energy_flux='7.63e-05', photon_flux2='2.22e-07', job_status='DONE', time_completed='2021-09-03 21:03:23.155467', photon_index_error2='0.47', photon_index2='2.46', ts='13.39', fit_tolerance='1e-08', GAL='0.60', photon_index_error='0.00', energy_flux_error2='2.81e-05', EG='0.88', time_epoch_completed='1630728203.16', return_code='0', job_id='789532', GAL2='0.63', EG2='0.82', return_code2='0', energy_flux_error='3.33e-05', photon_flux_error2='1.10e-07', ts2='13.96', photon_index='2.09' WHERE bin_id='682' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:03:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 789532: <4FGL_J1127.0-1857_daily_bin682> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin682> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep  3 20:51:31 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 20:52:41 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:52:41 2021
Terminated at Fri Sep  3 21:03:23 2021
Results reported at Fri Sep  3 21:03:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin682 171.763 -18.964 416102401 416361601 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 :                                   537.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   642 sec.
    Turnaround time :                            712 sec.

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

