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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin508
RA = 171.964, Dec = 36.314
tmin = 371001601, tmax = 371260801
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='806893', job_status='RUN', time_executed='2021-09-03 21:49:09.396768', time_epoch_executed='1630730949.4' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/806893

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/806893/ft1_4FGL_J1127.8+3618_daily_bin508.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/806893/ft1_4FGL_J1127.8+3618_daily_bin508.fits outfile=/scratch/kocevski/806893/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin508.fits ra=171.964 dec=36.314 rad=12.0 tmin=371001601.0 tmax=371260801.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.50
user 6.16
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.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/806893/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.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.37
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/806893/ltcube_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.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/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits
.....................!
real 16.47
user 16.05
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/806893/ltcube_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits outfile=/scratch/kocevski/806893/expmap_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.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/806893/ltcube_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits
.....................!
real 192.74
user 187.45
sys 4.60

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/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits scfile=/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits outfile=/scratch/kocevski/806893/cmap_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.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.56
user 0.41
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits scfile=/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits outfile=/scratch/kocevski/806893/cmap_HighResolution_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits', '/scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits', expMap='/scratch/kocevski/806893/expmap_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits', expCube='/scratch/kocevski/806893/ltcube_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/806893/Model_4FGL_J1127.8+3618_daily_bin508.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/806893/ft1_filtered_4FGL_J1127.8+3618_daily_bin508.fits
Spacecraft file(s): /scratch/kocevski/806893/ft2_4FGL_J1127.8+3618_daily_bin508.fits
Exposure map: /scratch/kocevski/806893/expmap_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits
Exposure cube: /scratch/kocevski/806893/ltcube_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/806893/Model_4FGL_J1127.8+3618_daily_bin508.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) = 6124.19564316

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    4.8487       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.1754       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19436E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.862       1.0000         .10000E-03   10000.    
     8 'norm      '    1.5347       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.227       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.1652       1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.5515       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6928       1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.554       1.0000         .10000E-03   10000.    
    17 'norm      '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .13225E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.1264       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .66680E-02   1.0000         .10000E-03   10000.    
    23 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    33.609       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    2.8095       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.629       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .97950       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.0703       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=   6124.161     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3964 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.525        .15290E-05** at limit **
   2  Prefactor     4.8507        4.0118        .17549E-06    .84650E-04
   3  Prefactor     3.1756        3.4706        .15578E-06    .55936E-05
   4  Prefactor     .10000E-03    16.218       -.15320E-05** at limit **
   5  Prefactor     .10000E-03    15.829       -.41052E-05** at limit **
   6  Prefactor     .10000E-03    277.85       -.71015E-04** at limit **
   7  Prefactor     16.827        14.913        .53640E-05    .72523E-03
   8  norm          1.5348        .36701        .13102E-07    .30159E-03
   9  Prefactor     .10000E-03    2.1072       -.18988E-05** at limit **
  10  Prefactor     17.220        15.382        .13854E-05    .17709E-04
  11  Prefactor     .10000E-03    7.5680        .48438E-06** at limit **
  12  norm          7.1618        15.470        .56625E-06   -.26232E-04
  13  norm          .10000E-03    4.1816       -.25624E-07** at limit **
  14  Prefactor     5.5510        3.6287       -.28240E-05   -.66904E-03
  15  Prefactor     3.7457        111.67        .79080E-04    .14109E-04
  16  Prefactor     22.525        21.795        .14154E-04    .20720E-03
  17  norm          .10000E-03    1.0277       -.35989E-06** at limit **
  18  Prefactor     .10001E-03    29.183       -.79195E-05** at limit **
  19  Prefactor     .10000E-03    6.5080       -.24895E-06** at limit **
  20  Prefactor     .10000E-03    16.765        .20843E-05** at limit **
  21  norm          5.1260        1.5366        .63181E-07   -.32397E-03
  22  Prefactor     .10109E-03    19.753        .18442E-05** at limit **
  23  norm          .10000E-03    5.2265        .13892E-06** at limit **
  24  Prefactor     33.605        31.538       -.38387E-07   -.32299E-04
  25  Prefactor     .10000E-03    24.706       -.23369E-05** at limit **
  26  norm          2.8090        1.4768       -.95417E-08   -.67115E-03
  27  Prefactor     .10000E-03    22.079        .83703E-05** at limit **
  28  Prefactor     13.629        9.6811        .42656E-06   -.66386E-04
  29  Normalizat    .97992        .19512       -.27970E-05    .43961E-03
  30  Prefactor     1.0699        .21526       -.18740E-05    .21360E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 4.85069
  Prefactor  = 3.17564
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 16.8268
  norm       = 1.53485
  Prefactor  = 0.000100004
  Prefactor  = 17.2203
  Prefactor  = 0.0001
  norm       = 7.16179
  norm       = 0.0001
  Prefactor  = 5.551
  Prefactor  = 3.74569
  Prefactor  = 22.5254
  norm       = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.126
  Prefactor  = 0.000101091
  norm       = 0.000100002
  Prefactor  = 33.6055
  Prefactor  = 0.0001
  norm       = 2.80904
  Prefactor  = 0.0001
  Prefactor  = 13.6294
  Normalizat = 0.979924
  Prefactor  = 1.06988
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.161     FROM HESSE     STATUS=OK           586 CALLS     4550 TOTAL
                     EDM=   .78E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     4.8507        4.0116        .13861E-03   -1.5267    
   3  Prefactor     3.1756        3.4691        .14817E-03   -1.5352    
   4  Prefactor     .10000E-03    16.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    15.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    277.27        .20254E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     16.827        14.240        .97537E-04   -1.4887    
   8  norm          1.5348        .36779        .22063E-04   -1.5460    
   9  Prefactor     .10000E-03    8.1377        .20443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.220        15.375        .96498E-04   -1.4878    
  11  Prefactor     .10000E-03    7.5934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.1618        15.421        .14985E-03   -1.5173    
  13  norm          .10000E-03    4.1886        .15628E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.5510        3.6095        .10104E-03   -1.5237    
  15  Prefactor     3.7457        109.34        .21017E-03   -1.5321    
  16  Prefactor     22.525        21.829        .84343E-04   -1.4758    
  17  norm          .10000E-03    1.0389        .77395E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    29.902        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.6250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    16.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.1260        1.5324        .50167E-04   -1.5255    
  22  Prefactor     .10109E-03    190.68        .65965E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    30.698        .34746E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     33.605        31.599        .69122E-04   -1.4548    
  25  Prefactor     .10000E-03    24.712        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          2.8090        1.4618        .65616E-04   -1.5373    
  27  Prefactor     .10000E-03    22.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     13.629        9.6769        .10850E-03   -1.4969    
  29  Normalizat    .97992        .22667        .26619E-03   -.93706    
  30  Prefactor     1.0699        .25253        .29902E-03   -.90435    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79419e-09
Minuit parameter uncertainties:
  1  6.6597e-06
  2  4.01185
  3  3.46937
  4  2.15532e-05
  5  2.41893e-05
  6  0.00212702
  7  14.2432
  8  0.367792
  9  0.000373287
  10  15.3784
  11  3.01285e-06
  12  15.4297
  13  9.18017e-06
  14  3.60966
  15  40.5557
  16  21.8367
  17  3.61966e-05
  18  0.000992953
  19  4.57979e-05
  20  5.54391e-06
  21  1.53245
  22  0.0289392
  23  0.000523834
  24  31.6145
  25  1.99651e-05
  26  1.46184
  27  2.20923e-05
  28  9.67805
  29  0.226897
  30  0.252808
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  5.551e+00  3.610e+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:  1.070e+00  2.528e-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:  9.799e-01  2.269e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.24
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 7.90e-08 +/- 5.13e-08
Energy Flux (Fixed Index): 2.69e-05 +/- 1.75e-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) = 6124.04804201
delta logL = 0.11275276831

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6124.04107452
delta logL = 0.119720261495

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4416       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6280       1.0000          .0000       10.000    
     3 'Normalizat'    .96228       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0842       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=   6124.041     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      231 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4432        44.679        .47768E-02    .24597E-03
   2  Index         2.6279        3.2035        .14171        .10245E-03
   3  Normalizat    .96220        .80790E-01    .45693E-01    .63830E-05
   4  Prefactor     1.0842        .83042E-01    .67201E-01    .53402E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.44325
  Index      = 2.62785
  Normalizat = 0.962197
  Prefactor  = 1.0842
 **********
 **   18 **HESSE 
 **********

 FCN=   6124.041     FROM HESSE     STATUS=OK            33 CALLS      264 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4432        3.8345        .86612E-04   -1.5286    
   2  Index         2.6279        .58542        .52590E-02   -.49432    
   3  Normalizat    .96220        .21827        .26823E-03   -.94308    
   4  Prefactor     1.0842        .25270        .29728E-03   -.89973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01345e-09
Minuit parameter uncertainties:
  1  3.83474
  2  0.587155
  3  0.218472
  4  0.25298
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/806893': 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) = 6124.0410742
delta logL = 0.119720583849

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  4.443e+00  3.835e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.628e+00  5.872e-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:  1.084e+00  2.530e-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:  9.622e-01  2.185e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.47
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.63 +/- 0.59
Photon Flux (Free Index): 9.43e-08 +/- 5.85e-08
Energy Flux (Free Index): 2.41e-05 +/- 1.45e-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/806893/cmap_HighResolution_371001601_371260801_4FGL_J1127.8+3618_daily_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.90e-08', energy_flux2='2.41e-05', photon_flux_error='5.13e-08', dlogl='1.20e-01', energy_flux='2.69e-05', photon_flux2='9.43e-08', job_status='DONE', time_completed='2021-09-03 22:02:54.824622', photon_index_error2='0.59', photon_index2='2.63', ts='5.24', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='1.45e-05', EG='0.98', time_epoch_completed='1630731774.82', return_code='0', job_id='806893', GAL2='1.08', EG2='0.96', return_code2='0', energy_flux_error='1.75e-05', photon_flux_error2='5.85e-08', ts2='5.47', photon_index='2.37' WHERE bin_id='508' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:02:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0069>
Subject: Job 806893: <4FGL_J1127.8+3618_daily_bin508> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin508> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Fri Sep  3 21:46:28 2021
Job was executed on host(s) <bullet0069>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:46:36 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:46:36 2021
Terminated at Fri Sep  3 22:02:55 2021
Results reported at Fri Sep  3 22:02:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin508 171.964 36.314 371001601 371260801 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 :                                   822.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             274.97 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            987 sec.

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

