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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin983
RA = 171.964, Dec = 36.314
tmin = 494121601, tmax = 494380801
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='811031', job_status='RUN', time_executed='2021-09-03 22:03:39.675566', time_epoch_executed='1630731819.68' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='983'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/811031

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/811031/ft1_4FGL_J1127.8+3618_daily_bin983.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/811031/ft1_4FGL_J1127.8+3618_daily_bin983.fits outfile=/scratch/kocevski/811031/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin983.fits ra=171.964 dec=36.314 rad=12.0 tmin=494121601.0 tmax=494380801.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.14
user 2.91
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/811031/ft1_filtered_4FGL_J1127.8+3618_daily_bin983.fits" evtable="EVENTS" scfile=/scratch/kocevski/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits sctable="SC_DATA" outfile=/scratch/kocevski/811031/ltcube_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.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/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits
.....................!
real 16.45
user 16.11
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/811031/ft1_filtered_4FGL_J1127.8+3618_daily_bin983.fits evtable="EVENTS" scfile=/scratch/kocevski/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits sctable="SC_DATA" expcube=/scratch/kocevski/811031/ltcube_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.fits outfile=/scratch/kocevski/811031/expmap_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.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/811031/ltcube_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.fits
.....................!
real 158.42
user 153.54
sys 4.35

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/811031/ft1_filtered_4FGL_J1127.8+3618_daily_bin983.fits scfile=/scratch/kocevski/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits outfile=/scratch/kocevski/811031/cmap_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.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.51
user 0.35
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/811031/ft1_filtered_4FGL_J1127.8+3618_daily_bin983.fits scfile=/scratch/kocevski/811031/ft2_4FGL_J1127.8+3618_daily_bin983.fits outfile=/scratch/kocevski/811031/cmap_HighResolution_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.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.52
user 0.35
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    62.594       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    21.166       1.0000         .10000E-03   10000.    
     8 'norm      '    .86463       1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.5574       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.7554       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.0465       1.0000         .10000E-03   10000.    
    12 'norm      '    5.2087       1.0000         .10000E-03   10000.    
    13 'norm      '    .10111E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .13605E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.782       1.0000         .10000E-03   10000.    
    21 'norm      '    .32553       1.0000         .10000E-03   10000.    
    22 'Prefactor '    44.364       1.0000         .10000E-03   10000.    
    23 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    9.1575       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    3.1870       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    9.4497       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .71689       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.2451       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=   6280.811     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3931 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.648       -.12852E-05** at limit **
   2  Prefactor     .10000E-03    2.6641        .72736E-06** at limit **
   3  Prefactor     .10000E-03    3.0214        .51679E-06** at limit **
   4  Prefactor     62.592        40.089        .75940E-06    .39007E-04
   5  Prefactor     .10000E-03    6.4160       -.33638E-06** at limit **
   6  Prefactor     .10000E-03    85.606        .30870E-06** at limit **
   7  Prefactor     21.165        14.209       -.20775E-07    .19676E-04
   8  norm          .86532        .30601       -.34622E-08    .19381E-02
   9  Prefactor     6.5568        3.6916       -.15758E-06    .11047E-03
  10  Prefactor     7.8025        17.067       -.24909E-05    .19709E-03
  11  Prefactor     .89520        94.283        .81144E-05    .23746E-03
  12  norm          5.2067        8.2094        .82002E-07    .16829E-03
  13  norm          .10000E-03    15.366        .70250E-06** at limit **
  14  Prefactor     .10000E-03    .85949        .13028E-06** at limit **
  15  Prefactor     .10000E-03    19.023        .34792E-05** at limit **
  16  Prefactor     .10000E-03    10.668        .21179E-05** at limit **
  17  norm          .10000E-03    .62178        .14303E-06** at limit **
  18  Prefactor     .10000E-03    5.1521        .26515E-06** at limit **
  19  Prefactor     .10705E-03    4.9322       -.25985E-05** at limit **
  20  Prefactor     10.779        25.943        .54753E-05    .16639E-03
  21  norm          .32575        .67840       -.15747E-05   -.65921E-04
  22  Prefactor     44.359        25.211        .70014E-06    .47167E-04
  23  norm          .10000E-03    4.6113        .14595E-06** at limit **
  24  Prefactor     9.1406        22.259        .18865E-06    .11101E-03
  25  Prefactor     .10000E-03    13.753       -.36611E-05** at limit **
  26  norm          3.1871        1.4379       -.67379E-07    .21746E-03
  27  Prefactor     .10000E-03    19.304        .23854E-05** at limit **
  28  Prefactor     9.4506        9.9199       -.49410E-06    .48282E-04
  29  Normalizat    .71683        .16839        .10648E-05    .48798E-03
  30  Prefactor     1.2452        .19644        .49420E-06    .37584E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 62.5916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.1654
  norm       = 0.865321
  Prefactor  = 6.55684
  Prefactor  = 7.80248
  Prefactor  = 0.895195
  norm       = 5.20675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000107045
  Prefactor  = 10.7793
  norm       = 0.325755
  Prefactor  = 44.3592
  norm       = 0.0001
  Prefactor  = 9.14056
  Prefactor  = 0.0001
  norm       = 3.18715
  Prefactor  = 0.0001
  Prefactor  = 9.45056
  Normalizat = 0.71683
  Prefactor  = 1.24519
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.811     FROM HESSE     STATUS=OK           590 CALLS     4521 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6716        .12595E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.0721        .13426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     62.592        40.162        .50719E-04   -1.4124    
   5  Prefactor     .10000E-03    6.4197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    85.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     21.165        14.214        .87062E-04   -1.4788    
   8  norm          .86532        .30588        .22855E-04   -1.5522    
   9  Prefactor     6.5568        3.6946        .10320E-03   -1.5196    
  10  Prefactor     7.8025        16.629        .14399E-03   -1.5149    
  11  Prefactor     .89520        102.97        .48391E-02   -1.5519    
  12  norm          5.2067        8.1885        .17613E-03   -1.5252    
  13  norm          .10000E-03    15.615        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .88582        .14325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    19.054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .62749        .60963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    5.1599        .17563E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10705E-03    5.7337        .38939E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     10.779        25.966        .12202E-03   -1.5051    
  21  norm          .32575        .67941        .87826E-04   -1.5594    
  22  Prefactor     44.359        25.184        .60192E-04   -1.4375    
  23  norm          .10000E-03    4.6318        .16621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     9.1406        22.260        .13244E-03   -1.5103    
  25  Prefactor     .10000E-03    13.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          3.1871        1.4362        .60610E-04   -1.5351    
  27  Prefactor     .10000E-03    19.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     9.4506        9.9164        .13037E-03   -1.5093    
  29  Normalizat    .71683        .19672        .26494E-03   -1.0323    
  30  Prefactor     1.2452        .23022        .25535E-03   -.84952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55249e-09
Minuit parameter uncertainties:
  1  7.15679e-05
  2  2.3078e-05
  3  2.39199e-05
  4  40.1791
  5  6.96781e-06
  6  0.000119405
  7  14.2165
  8  0.305885
  9  3.69471
  10  16.6391
  11  19.235
  12  8.19025
  13  5.0864e-05
  14  1.65436e-07
  15  5.25275e-05
  16  1.4031e-05
  17  7.37961e-07
  18  4.40104e-06
  19  0.0127126
  20  25.9934
  21  0.679428
  22  25.1898
  23  7.64082e-06
  24  22.2804
  25  5.03297e-05
  26  1.43618
  27  7.3498e-05
  28  9.91814
  29  0.196914
  30  0.230405
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  1.654e-07  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.245e+00  2.304e-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:  7.168e-01  1.969e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 4.83e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.73e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/811031/likelihoodResults_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.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): 102
logL (Free Index) = 6280.81647617
delta logL = -0.00531930130091

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6280.81115821
delta logL = -1.34472702484e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10293E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3548       1.0000          .0000       10.000    
     3 'Normalizat'    .71691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2452       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=   6280.811     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      218 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.0109        .90712E-02** at limit **
   2  Index         1.9916        8.9277        .50000       -.49320E-06
   3  Normalizat    .71683        .68201E-02    .42516E-01    .22612E-04
   4  Prefactor     1.2452        .84725E-02    .57746E-01    .44665E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.99165
  Normalizat = 0.716828
  Prefactor  = 1.24519
 **********
 **   18 **HESSE 
 **********

 FCN=   6280.811     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      249 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    60.581        .77399E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9916        6.5273        .50000       -.64559    
   3  Normalizat    .71683        .32425E-01    .26494E-03   -1.0323    
   4  Prefactor     1.2452        .40277E-01    .25535E-03   -.84952    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.21816e-09
Minuit parameter uncertainties:
  1  7.59123e-06
  2  411.498
  3  0.0324255
  4  0.0402779
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/811031': 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): 102
logL (Free Index) = 6280.81114949
delta logL = 7.3800665632e-06

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  7.591e-06  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.992e+00  4.115e+02  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.245e+00  4.028e-02  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:  7.168e-01  3.243e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.964 36.314

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/811031/cmap_HighResolution_494121601_494380801_4FGL_J1127.8+3618_daily_bin983.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.73e-03', job_status='DONE', photon_flux_upper_limit='4.83e-08', time_completed='2021-09-03 22:17:00.953789', job_id='811031', GAL2='1.25', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630732620.95', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.25', dlogl='7.38e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='983' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:17:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0189>
Subject: Job 811031: <4FGL_J1127.8+3618_daily_bin983> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin983> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep  3 22:01:02 2021
Job was executed on host(s) <bullet0189>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 22:01:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep  3 22:01:15 2021
Terminated at Fri Sep  3 22:17:01 2021
Results reported at Fri Sep  3 22:17:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin983 171.964 36.314 494121601 494380801 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 :                                   792.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   946 sec.
    Turnaround time :                            959 sec.

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

