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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin928
RA = 171.964, Dec = 36.314
tmin = 479865601, tmax = 480124801
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='809566', job_status='RUN', time_executed='2021-09-03 21:58:36.076478', time_epoch_executed='1630731516.08' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='928'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/809566

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/809566/ft1_4FGL_J1127.8+3618_daily_bin928.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/809566/ft1_4FGL_J1127.8+3618_daily_bin928.fits outfile=/scratch/kocevski/809566/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin928.fits ra=171.964 dec=36.314 rad=12.0 tmin=479865601.0 tmax=480124801.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.51
user 3.28
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.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/809566/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin928.fits evtable="EVENTS" outfile="/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.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.66
user 0.36
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits" evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits sctable="SC_DATA" outfile=/scratch/kocevski/809566/ltcube_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.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/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits
.....................!
real 16.31
user 15.93
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits sctable="SC_DATA" expcube=/scratch/kocevski/809566/ltcube_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits outfile=/scratch/kocevski/809566/expmap_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.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/809566/ltcube_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits
.....................!
real 190.99
user 186.46
sys 4.01

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

Setting source of interest to:
4FGL J1127.8+3618 @ 171.964 36.314

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits outfile=/scratch/kocevski/809566/cmap_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.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.964 yref=36.314 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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits outfile=/scratch/kocevski/809566/cmap_HighResolution_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.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.964 yref=36.314 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.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits evtable="EVENTS" scfile=/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/809566/Model_4FGL_J1127.8+3618_daily_bin928.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/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits.....................!
real 52.91
user 51.44
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits', '/scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits', expMap='/scratch/kocevski/809566/expmap_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits', expCube='/scratch/kocevski/809566/ltcube_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/809566/Model_4FGL_J1127.8+3618_daily_bin928.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.8+3618'

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.787e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/809566/ft1_filtered_4FGL_J1127.8+3618_daily_bin928.fits
Spacecraft file(s): /scratch/kocevski/809566/ft2_4FGL_J1127.8+3618_daily_bin928.fits
Exposure map: /scratch/kocevski/809566/expmap_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits
Exposure cube: /scratch/kocevski/809566/ltcube_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/809566/Model_4FGL_J1127.8+3618_daily_bin928.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) = 5856.63337694

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.139       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11829E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .18365E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10902E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.0309       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.4142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    33.938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10313E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.3300       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6871       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.3479       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .93561E-01   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.9706       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .56726E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.139       1.0000         .10000E-03   10000.    
    26 'norm      '    3.9323       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .38225E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0242       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .86626       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5856.621     FROM MIGRAD    STATUS=CONVERGED    798 CALLS     3967 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.147        34.994       -.15061E-05   -.16657E-03
   2  Prefactor     .10000E-03    5.0192        .31574E-05** at limit **
   3  Prefactor     .10000E-03    6.3038        .20943E-05** at limit **
   4  Prefactor     .10000E-03    20.122       -.10507E-05** at limit **
   5  Prefactor     .10000E-03    24.889        .35465E-06** at limit **
   6  Prefactor     .10000E-03    48.710       -.16158E-05** at limit **
   7  Prefactor     .10000E-03    4.7333       -.93050E-07** at limit **
   8  norm          1.0310        .30901        .44134E-08   -.17934E-03
   9  Prefactor     1.4147        1.7739       -.62140E-07   -.36696E-04
  10  Prefactor     33.945        15.652        .14282E-06   -.66440E-04
  11  Prefactor     .10000E-03    9.8328        .35889E-07** at limit **
  12  norm          .10000E-03    2.4655       -.32318E-07** at limit **
  13  norm          2.3390        9.4974        .10628E-04    .51594E-03
  14  Prefactor     2.6848        2.0404        .34529E-07   -.12917E-03
  15  Prefactor     .10000E-03    17.473        .38707E-07** at limit **
  16  Prefactor     .10000E-03    15.335        .66224E-06** at limit **
  17  norm          2.3480        2.0716       -.17739E-07   -.35591E-03
  18  Prefactor     .10000E-03    4.0380       -.10871E-06** at limit **
  19  Prefactor     .14937        3.1414        .17737E-05   -.50524E-03
  20  Prefactor     .10000E-03    140.49        .20915E-05** at limit **
  21  norm          2.9709        1.1815       -.15303E-07   -.20356E-02
  22  Prefactor     .10000E-03    12.580       -.23785E-05** at limit **
  23  norm          .10000E-03    5.3312        .26258E-06** at limit **
  24  Prefactor     .10000E-03    6.7297       -.18990E-06** at limit **
  25  Prefactor     20.180        35.029       -.36105E-05   -.14385E-04
  26  norm          3.9334        1.4760        .67924E-07    .33430E-03
  27  Prefactor     .10103E-03    43.698        .17863E-04** at limit **
  28  Prefactor     .10000E-03    2.4407       -.24847E-07** at limit **
  29  Normalizat    1.0238        .17193       -.10456E-05   -.19393E-03
  30  Prefactor     .86636        .19521        .86535E-06   -.11155E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.1473
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.031
  Prefactor  = 1.41469
  Prefactor  = 33.945
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.33904
  Prefactor  = 2.68476
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.34803
  Prefactor  = 0.0001
  Prefactor  = 0.149365
  Prefactor  = 0.000100002
  norm       = 2.97088
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.1797
  norm       = 3.9334
  Prefactor  = 0.000101028
  Prefactor  = 0.0001
  Normalizat = 1.02377
  Prefactor  = 0.866364
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.621     FROM HESSE     STATUS=OK           588 CALLS     4555 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.147        34.652        .78354E-04   -1.4685    
   2  Prefactor     .10000E-03    12.587        .31202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    6.5362        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    20.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    25.035        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.750        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.7651        .16257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.0310        .30983        .22010E-04   -1.5505    
   9  Prefactor     1.4147        1.7505        .11037E-03   -1.5470    
  10  Prefactor     33.945        15.689        .68787E-04   -1.4542    
  11  Prefactor     .10000E-03    9.8591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.4661        .11735E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.3390        11.640        .13433E-02   -1.5402    
  14  Prefactor     2.6848        2.0389        .89417E-04   -1.5380    
  15  Prefactor     .10000E-03    17.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    15.524        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.3480        2.0589        .98045E-04   -1.5401    
  18  Prefactor     .10000E-03    4.0489        .15018E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .14937        45.872        .23878E-02   -1.5631    
  20  Prefactor     .10000E-03    141.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.9709        1.1796        .48812E-04   -1.5363    
  22  Prefactor     .10000E-03    61.355        .51422E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    5.3762        .17260E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.180        34.942        .89251E-04   -1.4809    
  26  norm          3.9334        1.4666        .54315E-04   -1.5311    
  27  Prefactor     .10103E-03    133.41        .63175E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.4460        .11676E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.0238        .20128        .22576E-03   -.92238    
  30  Prefactor     .86636        .22999        .29105E-03   -.97327    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34551e-08
Minuit parameter uncertainties:
  1  34.6786
  2  0.000303324
  3  0.000337237
  4  9.42642e-05
  5  0.000126164
  6  5.3004e-05
  7  1.49455e-05
  8  0.30983
  9  1.75058
  10  15.6908
  11  3.02105e-05
  12  3.98456e-06
  13  10.4388
  14  2.03896
  15  2.30444e-05
  16  0.000173736
  17  2.059
  18  1.82348e-05
  19  5.23741
  20  0.00118612
  21  1.17958
  22  0.000363623
  23  4.48978e-05
  24  1.17348e-05
  25  34.9774
  26  1.46658
  27  0.0234691
  28  5.91756e-06
  29  0.201426
  30  0.230246
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.685e+00  2.039e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.371e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.664e-01  2.302e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.024e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.32
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 3.82e-08 +/- 2.90e-08
Energy Flux (Fixed Index): 1.30e-05 +/- 9.89e-06

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) = 5856.58680715
delta logL = 0.0345661967149

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5856.58163759
delta logL = 0.0397357546799

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.8954       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1740       1.0000          .0000       10.000    
     3 'Normalizat'    1.0315       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5856.582     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      199 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.8967        70.705        .59704E-02    .75746E-04
   2  Index         2.1737        5.4671        .18098        .33068E-04
   3  Normalizat    1.0315        .11352        .42014E-01    .34976E-05
   4  Prefactor     .86134        .89940E-01    .65979E-01    .13576E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.89666
  Index      = 2.1737
  Normalizat = 1.03152
  Prefactor  = 0.861337
 **********
 **   18 **HESSE 
 **********

 FCN=   5856.582     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.8967        2.2962        .97366E-04   -1.5368    
   2  Index         2.1737        .69681        .96882E-02   -.60075    
   3  Normalizat    1.0315        .19304        .22506E-03   -.91982    
   4  Prefactor     .86134        .22956        .29186E-03   -.97505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.16608e-10
Minuit parameter uncertainties:
  1  2.29629
  2  0.700172
  3  0.19317
  4  0.229816
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/809566': 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) = 5856.58163726
delta logL = 0.039736079545

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  2.897e+00  2.296e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.174e+00  7.002e-01  0.000e+00  1.000e+01 (-1.000e+00)
328        Scale:  9.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  8.613e-01  2.298e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.032e+00  1.932e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.41
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.17 +/- 0.70
Photon Flux (Free Index): 3.10e-08 +/- 3.41e-08
Energy Flux (Free Index): 1.46e-05 +/- 1.40e-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/809566/cmap_HighResolution_479865601_480124801_4FGL_J1127.8+3618_daily_bin928.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.82e-08', energy_flux2='1.46e-05', photon_flux_error='2.90e-08', dlogl='3.97e-02', energy_flux='1.30e-05', photon_flux2='3.10e-08', job_status='DONE', time_completed='2021-09-03 22:11:51.021499', photon_index_error2='0.70', photon_index2='2.17', ts='5.32', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='1.02', time_epoch_completed='1630732311.02', return_code='0', job_id='809566', GAL2='0.86', EG2='1.03', return_code2='0', energy_flux_error='9.89e-06', photon_flux_error2='3.41e-08', ts2='5.41', photon_index='2.37' WHERE bin_id='928' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:11:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 809566: <4FGL_J1127.8+3618_daily_bin928> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin928> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Sep  3 21:56:10 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:56:31 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:56:31 2021
Terminated at Fri Sep  3 22:11:51 2021
Results reported at Fri Sep  3 22:11:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin928 171.964 36.314 479865601 480124801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.8+3618 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   790.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   923 sec.
    Turnaround time :                            941 sec.

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

