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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin731
RA = 171.964, Dec = 36.314
tmin = 428803201, tmax = 429062401
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='808290', job_status='RUN', time_executed='2021-09-03 21:55:35.909579', time_epoch_executed='1630731335.91' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='731'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808290

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808290/ft1_4FGL_J1127.8+3618_daily_bin731.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808290/ft2_4FGL_J1127.8+3618_daily_bin731.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808290/ft1_4FGL_J1127.8+3618_daily_bin731.fits outfile=/scratch/kocevski/808290/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin731.fits ra=171.964 dec=36.314 rad=12.0 tmin=428803201.0 tmax=429062401.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.61
user 6.35
sys 0.24

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808290/ft1_filtered_4FGL_J1127.8+3618_daily_bin731.fits evtable="EVENTS" scfile=/scratch/kocevski/808290/ft2_4FGL_J1127.8+3618_daily_bin731.fits sctable="SC_DATA" expcube=/scratch/kocevski/808290/ltcube_428803201_429062401_4FGL_J1127.8+3618_daily_bin731.fits outfile=/scratch/kocevski/808290/expmap_428803201_429062401_4FGL_J1127.8+3618_daily_bin731.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/808290/ltcube_428803201_429062401_4FGL_J1127.8+3618_daily_bin731.fits
.....................!
real 192.48
user 187.33
sys 4.68

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/808290/ft1_filtered_4FGL_J1127.8+3618_daily_bin731.fits scfile=/scratch/kocevski/808290/ft2_4FGL_J1127.8+3618_daily_bin731.fits outfile=/scratch/kocevski/808290/cmap_428803201_429062401_4FGL_J1127.8+3618_daily_bin731.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.57
user 0.38
sys 0.16

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    12.679       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.852       1.0000         .10000E-03   10000.    
     5 'Prefactor '    19.757       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .84044       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.4590       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    14.784       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.4416       1.0000         .10000E-03   10000.    
    15 'Prefactor '    111.90       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2374       1.0000         .10000E-03   10000.    
    17 'norm      '    .10399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.6918       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .75144       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    6.2389       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10972E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .91660       1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.678       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .82460       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .70717       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=   3429.521     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3893 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.032        .23311E-07** at limit **
   2  Prefactor     12.678        6.5605       -.16800E-07   -.12043E-05
   3  Prefactor     .10000E-03    1.9187        .28146E-07** at limit **
   4  Prefactor     20.851        32.434        .71417E-08   -.34473E-05
   5  Prefactor     19.756        24.948        .46303E-07   -.57296E-05
   6  Prefactor     .10000E-03    42.836        .34242E-06** at limit **
   7  Prefactor     .10000E-03    3.5175        .34906E-07** at limit **
   8  norm          .84043        .30197       -.42842E-08   -.22979E-03
   9  Prefactor     .10000E-03    .84752        .44541E-07** at limit **
  10  Prefactor     9.4559        23.537       -.99908E-08   -.28842E-04
  11  Prefactor     .10000E-03    4.9639        .74134E-08** at limit **
  12  norm          14.783        26.878       -.16285E-07   -.34891E-04
  13  norm          .10000E-03    20.246        .51666E-06** at limit **
  14  Prefactor     9.4412        5.1189       -.20404E-06   -.60113E-03
  15  Prefactor     111.90        82.612       -.16015E-05   -.15955E-03
  16  Prefactor     4.2427        40.153       -.10178E-05   -.77174E-05
  17  norm          .10000E-03    2.6502        .96905E-06** at limit **
  18  Prefactor     7.6817        20.836        .31778E-06   -.12068E-04
  19  Prefactor     .74947        8.1510        .25470E-05   -.21526E-04
  20  Prefactor     .10000E-03    12.420       -.26255E-08** at limit **
  21  norm          6.2385        1.8261       -.39980E-07   -.36827E-03
  22  Prefactor     .10000E-03    31.378       -.21465E-06** at limit **
  23  norm          .10000E-03    4.4959        .20868E-07** at limit **
  24  Prefactor     .10000E-03    76.573       -.56204E-05** at limit **
  25  Prefactor     .10000E-03    62.815        .41022E-06** at limit **
  26  norm          .91553        1.8373       -.34153E-06    .18275E-04
  27  Prefactor     20.639        40.881       -.11779E-05   -.54397E-04
  28  Prefactor     .10000E-03    3.2969       -.12343E-06** at limit **
  29  Normalizat    .82478        .21509        .18845E-05   -.18075E-03
  30  Prefactor     .70700        .24394       -.26536E-05   -.26316E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 12.6783
  Prefactor  = 0.0001
  Prefactor  = 20.8506
  Prefactor  = 19.7557
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.840434
  Prefactor  = 0.0001
  Prefactor  = 9.45585
  Prefactor  = 0.0001
  norm       = 14.7833
  norm       = 0.0001
  Prefactor  = 9.4412
  Prefactor  = 111.904
  Prefactor  = 4.24272
  norm       = 0.0001
  Prefactor  = 7.68174
  Prefactor  = 0.749474
  Prefactor  = 0.0001
  norm       = 6.23853
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.915533
  Prefactor  = 20.6387
  Prefactor  = 0.0001
  Normalizat = 0.824782
  Prefactor  = 0.706996
 **********
 **   18 **HESSE 
 **********

 FCN=   3429.521     FROM HESSE     STATUS=OK           584 CALLS     4477 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.034        .18118E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     12.678        6.5646        .10209E-03   -1.4996    
   3  Prefactor     .10000E-03    1.9271        .79208E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     20.851        32.429        .87714E-04   -1.4794    
   5  Prefactor     19.756        24.948        .90110E-04   -1.4819    
   6  Prefactor     .10000E-03    42.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.5202        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .84043        .30273        .18418E-04   -1.5525    
   9  Prefactor     .10000E-03    .85114        .52639E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.4559        23.243        .13030E-03   -1.5093    
  11  Prefactor     .10000E-03    4.9644        .12743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          14.783        26.521        .10417E-03   -1.4939    
  13  norm          .10000E-03    20.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.4412        5.1396        .76097E-04   -1.5093    
  15  Prefactor     111.90        82.604        .38028E-04   -1.3588    
  16  Prefactor     4.2427        38.093        .19575E-03   -1.5296    
  17  norm          .10000E-03    4.1587        .17452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.6817        20.263        .14459E-03   -1.5154    
  19  Prefactor     .74947        8.3677        .31265E-03   -1.5535    
  20  Prefactor     .10000E-03    12.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          6.2385        1.8273        .40959E-04   -1.5208    
  22  Prefactor     .10000E-03    31.671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    4.4968        .12128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    75.867        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    62.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .91553        1.7817        .10320E-03   -1.5517    
  27  Prefactor     20.639        40.837        .88080E-04   -1.4799    
  28  Prefactor     .10000E-03    3.2974        .10384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .82478        .24767        .22354E-03   -.99156    
  30  Prefactor     .70700        .27916        .28682E-03   -1.0325    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.10891e-10
Minuit parameter uncertainties:
  1  2.59539e-06
  2  6.56499
  3  6.36865e-07
  4  32.4566
  5  24.9613
  6  0.000163533
  7  2.00593e-07
  8  0.30273
  9  3.71557e-07
  10  23.2652
  11  8.65871e-07
  12  26.5417
  13  3.5589e-05
  14  5.13986
  15  82.6894
  16  25.4469
  17  4.88465e-05
  18  20.2809
  19  5.00908
  20  1.0714e-05
  21  1.82728
  22  0.00014455
  23  1.97624e-06
  24  0.000123761
  25  0.000249197
  26  1.78184
  27  40.8926
  28  6.4281e-07
  29  0.248008
  30  0.279718
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  9.441e+00  5.140e+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:  7.070e-01  2.797e-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:  8.248e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 10.00
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 1.34e-07 +/- 7.31e-08
Energy Flux (Fixed Index): 4.58e-05 +/- 2.49e-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) = 3429.28607048
delta logL = 0.235081782627

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3429.28573659
delta logL = 0.235415667539

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.811       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1174       1.0000          .0000       10.000    
     3 'Normalizat'    .84720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .68596       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=   3429.286     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      265 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.804        119.39        .29141E-02    .52557E-04
   2  Index         2.1169        6.0514        .97991E-01    .42119E-04
   3  Normalizat    .84730        .21673        .44223E-01    .25972E-05
   4  Prefactor     .68594        .23839        .65712E-01    .91907E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.8041
  Index      = 2.11695
  Normalizat = 0.847303
  Prefactor  = 0.685936
 **********
 **   18 **HESSE 
 **********

 FCN=   3429.286     FROM HESSE     STATUS=OK            33 CALLS      298 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.804        5.9752        .86988E-04   -1.5021    
   2  Index         2.1169        .35648        .40704E-02   -.61457    
   3  Normalizat    .84730        .23120        .22105E-03   -.98337    
   4  Prefactor     .68594        .27513        .29074E-03   -1.0408    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.31559e-10
Minuit parameter uncertainties:
  1  5.97552
  2  0.356936
  3  0.231474
  4  0.275677
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808290': 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) = 3429.28573365
delta logL = 0.235418609359

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.180e+01  5.976e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.117e+00  3.569e-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:  6.859e-01  2.757e-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:  8.473e-01  2.315e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.86
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.12 +/- 0.36
Photon Flux (Free Index): 1.17e-07 +/- 5.98e-08
Energy Flux (Free Index): 6.20e-05 +/- 4.20e-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/808290/cmap_HighResolution_428803201_429062401_4FGL_J1127.8+3618_daily_bin731.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.34e-07', energy_flux2='6.20e-05', photon_flux_error='7.31e-08', dlogl='2.35e-01', energy_flux='4.58e-05', photon_flux2='1.17e-07', job_status='DONE', time_completed='2021-09-03 22:05:53.714209', photon_index_error2='0.36', photon_index2='2.12', ts='10.00', fit_tolerance='1e-08', GAL='0.71', photon_index_error='0.00', energy_flux_error2='4.20e-05', EG='0.82', time_epoch_completed='1630731953.71', return_code='0', job_id='808290', GAL2='0.69', EG2='0.85', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='5.98e-08', ts2='10.86', photon_index='2.37' WHERE bin_id='731' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:05:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 808290: <4FGL_J1127.8+3618_daily_bin731> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin731> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Sep  3 21:51:30 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:53:20 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:53:20 2021
Terminated at Fri Sep  3 22:05:54 2021
Results reported at Fri Sep  3 22:05:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin731 171.964 36.314 428803201 429062401 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 :                                   616.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             267.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   753 sec.
    Turnaround time :                            864 sec.

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

