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


Performing analysis on: 4FGL_J1127.0-1857_daily_bin1429
RA = 171.763, Dec = -18.964
tmin = 609724801, tmax = 609984001
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='794165', job_status='RUN', time_executed='2021-09-03 21:08:53.825747', time_epoch_executed='1630728533.83' WHERE source_name='4FGL J1127.0-1857' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/794165

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/794165/ft1_4FGL_J1127.0-1857_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/794165/ft1_4FGL_J1127.0-1857_daily_bin1429.fits outfile=/scratch/kocevski/794165/ft1_filteredMKT_4FGL_J1127.0-1857_daily_bin1429.fits ra=171.763 dec=-18.964 rad=12.0 tmin=609724801.0 tmax=609984001.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 2.61
user 2.36
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/794165/ltcube_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.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/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits
.....................!
real 16.93
user 16.52
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/794165/ltcube_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.fits outfile=/scratch/kocevski/794165/expmap_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.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/794165/ltcube_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.fits
.....................!
real 192.18
user 186.43
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/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits scfile=/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits outfile=/scratch/kocevski/794165/cmap_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.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.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits scfile=/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits outfile=/scratch/kocevski/794165/cmap_HighResolution_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/794165/ft2_4FGL_J1127.0-1857_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/794165/Model_4FGL_J1127.0-1857_daily_bin1429.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/794165/ft1_filtered_4FGL_J1127.0-1857_daily_bin1429.fits......................!
real 30.30
user 28.90
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6730       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25702E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    417.50       1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.909       1.0000         .10000E-03   10000.    
     6 'Prefactor '    84.130       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .72102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.2362       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    194.60       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4764       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    23 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
    24 'Prefactor '    .59667       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=   2043.134     FROM MIGRAD    STATUS=CONVERGED    922 CALLS     3599 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6646        11.371        .15534E-03    .26860E-04
   2  norm          .10000E-03    3.6221        .83888E-03** at limit **
   3  Prefactor     .10000E-03    115.93        .21454E-02** at limit **
   4  Prefactor     417.56        232.12        .99991E-04    .35451E-04
   5  Prefactor     21.910        34.996        .85573E-04    .70080E-05
   6  Prefactor     84.075        139.86        .21898E-03    .14913E-04
   7  Prefactor     .10000E-03    42.758        .18142E-02** at limit **
   8  Prefactor     .10000E-03    11.840        .15189E-02** at limit **
   9  Prefactor     .10000E-03    38.234        .18142E-02** at limit **
  10  norm          .10000E-03    .55664        .32909E-03** at limit **
  11  Prefactor     .10002E-03    31.244        .59536E-01** at limit **
  12  Prefactor     .10000E-03    37.178        .18142E-02** at limit **
  13  Prefactor     .10000E-03    13.304        .16099E-02** at limit **
  14  Prefactor     6.2364        11.888        .80375E-03   -.11852E-03
  15  Prefactor     .10000E-03    22.234        .18142E-02** at limit **
  16  Prefactor     .10000E-03    72.680        .18142E-02** at limit **
  17  Prefactor     194.75        270.83        .14479E-03   -.97923E-04
  18  norm          3.3461        358.29        .21688E-03   -.87017E-05
  19  Prefactor     .10000E-03    26.109        .18142E-02** at limit **
  20  Prefactor     .10000E-03    101.89        .18142E-02** at limit **
  21  Prefactor     .10000E-03    79.677        .18142E-02** at limit **
  22  Prefactor     .10000E-03    193.88        .18142E-02** at limit **
  23  Normalizat    1.1417        .45544        .27669E-03   -.14219E-03
  24  Prefactor     .59666        .23437        .21307E-03    .58626E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.66456
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 417.562
  Prefactor  = 21.9104
  Prefactor  = 84.0755
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.23639
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 194.745
  norm       = 3.34613
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Normalizat = 1.14173
  Prefactor  = 0.596657
 **********
 **   18 **HESSE 
 **********

 FCN=   2043.134     FROM HESSE     STATUS=OK           383 CALLS     3982 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6646        11.369        .62135E-05   -1.5192    
   2  norm          .10000E-03    3.6221        .16778E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    115.94        .42908E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     417.56        232.12        .19998E-04   -1.1592    
   5  Prefactor     21.910        34.990        .34229E-05   -1.4771    
   6  Prefactor     84.075        139.85        .87591E-05   -1.3872    
   7  Prefactor     .10000E-03    42.759        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    11.840        .30378E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    38.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .55664        .65819E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    28.387        .63361E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    37.179        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    13.304        .32199E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.2364        11.887        .32150E-04   -1.5208    
  15  Prefactor     .10000E-03    22.234        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    72.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     194.75        267.27        .28957E-04   -1.2908    
  18  norm          3.3461        348.88        .86751E-05   -1.5342    
  19  Prefactor     .10000E-03    26.109        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    101.89        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    79.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    193.88        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    1.1417        .45582        .55338E-04   -.88423    
  24  Prefactor     .59666        .23458        .85227E-05   -1.0773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05202e-09
Minuit parameter uncertainties:
  1  11.3724
  2  4.89408e-06
  3  0.00102864
  4  232.648
  5  35.0232
  6  140.403
  7  0.000221323
  8  4.69514e-07
  9  9.4224e-05
  10  1.45969e-06
  11  0.00150245
  12  8.78244e-05
  13  5.20364e-06
  14  11.8915
  15  0.000129217
  16  0.000295866
  17  268.968
  18  68.7491
  19  4.58718e-05
  20  0.00072409
  21  3.26455e-06
  22  0.00108712
  23  0.457414
  24  0.234968
Done.

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

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.000e-04  1.460e-06  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:  5.967e-01  2.350e-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.142e+00  4.574e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.763 -18.964
Photon Flux Upper Limit: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.66e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/794165/likelihoodResults_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.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) = 2043.13411814
delta logL = -6.38978281131e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2043.13411178
delta logL = -3.28273017658e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0943       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .59666       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   2043.134     FROM MIGRAD    STATUS=FAILED        81 CALLS      225 TOTAL
                     EDM=   .73E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    .57560        .32911E-03** at limit **
   2  alpha         2.1148        3.5556        .16743       -.48788E-05
   3  Normalizat    1.1417        .39407        .27669E-03   -.37338E-04
   4  Prefactor     .59665        .22735        .21307E-03   -.58920E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2043.134     FROM SIMPLEX   STATUS=UNCHANGED    114 CALLS      339 TOTAL
                     EDM=   .99E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    .57560        .96854E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1148        3.5556        .86165E-03   -.15471    
   3  Normalizat    1.1417        .39407        .14768E-03   -.88423    
   4  Prefactor     .59665        .22735        .14695E-03   -1.0773    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2043.134     FROM MIGRAD    STATUS=CONVERGED     31 CALLS      370 TOTAL
                     EDM=   .72E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .55736        .65822E-04** at limit **
   2  alpha         2.1399        3.4849        .66973E-01   -.14599E-07
   3  Normalizat    1.1417        .39442        .11068E-04    .48278E-05
   4  Prefactor     .59665        .22755        .85227E-05    .93375E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.1399
  Normalizat = 1.14174
  Prefactor  = 0.596653
 **********
 **   18 **HESSE 
 **********

 FCN=   2043.134     FROM HESSE     STATUS=OK            23 CALLS      393 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .55720        .13164E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1399        3.4191        .26789E-02   -.14454    
   3  Normalizat    1.1417        .39475        .22136E-05   -.88423    
   4  Prefactor     .59665        .22773        .17045E-05   -1.0773    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.90984e-13
Minuit parameter uncertainties:
  1  2.40797e-07
  2  113.566
  3  0.395784
  4  0.22808
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/794165': 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) = 2043.13411166
delta logL = 8.96011442819e-08

Extracting fit parameters...

4FGL J1127.0-1857
   Spectrum: LogParabola
309         norm:  1.000e-04  2.408e-07  1.000e-04  1.000e+04 ( 1.000e-11)
310        alpha:  2.140e+00  1.136e+02  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:  5.967e-01  2.281e-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.142e+00  3.958e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.763 -18.964

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/794165/cmap_HighResolution_609724801_609984001_4FGL_J1127.0-1857_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.66e-05', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-03 21:17:01.062159', job_id='794165', GAL2='0.60', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630729021.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.60', dlogl='8.96e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1429' AND source_name='4FGL J1127.0-1857' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:17:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0195>
Subject: Job 794165: <4FGL_J1127.0-1857_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1127.0-1857_daily_bin1429> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 21:06:27 2021
Job was executed on host(s) <bullet0195>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:06:40 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:06:40 2021
Terminated at Fri Sep  3 21:17:01 2021
Results reported at Fri Sep  3 21:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.0-1857_daily_bin1429 171.763 -18.964 609724801 609984001 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 :                                   482.47 sec.
    Max Memory :                                 1198 MB
    Average Memory :                             285.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   621 sec.
    Turnaround time :                            634 sec.

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

