/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 105 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 = 7037
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.8+3618_daily_bin109
RA = 171.964, Dec = 36.314
tmin = 267580801, tmax = 267840001
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='804961', job_status='RUN', time_executed='2021-09-03 21:43:25.905421', time_epoch_executed='1630730605.91' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='109'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/804961

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/804961/ft1_4FGL_J1127.8+3618_daily_bin109.fits


Retrieving the FT1 file...

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

Retrieving 44 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/804961/ft2_4FGL_J1127.8+3618_daily_bin109.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/804961/ft1_4FGL_J1127.8+3618_daily_bin109.fits outfile=/scratch/kocevski/804961/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin109.fits ra=171.964 dec=36.314 rad=12.0 tmin=267580801.0 tmax=267840001.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 1.42
user 1.21
sys 0.16

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/804961/ft1_filtered_4FGL_J1127.8+3618_daily_bin109.fits evtable="EVENTS" scfile=/scratch/kocevski/804961/ft2_4FGL_J1127.8+3618_daily_bin109.fits sctable="SC_DATA" expcube=/scratch/kocevski/804961/ltcube_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.fits outfile=/scratch/kocevski/804961/expmap_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.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/804961/ltcube_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.fits
.....................!
real 193.93
user 187.53
sys 4.72

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/804961/ft1_filtered_4FGL_J1127.8+3618_daily_bin109.fits scfile=/scratch/kocevski/804961/ft2_4FGL_J1127.8+3618_daily_bin109.fits outfile=/scratch/kocevski/804961/cmap_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/804961/ft1_filtered_4FGL_J1127.8+3618_daily_bin109.fits scfile=/scratch/kocevski/804961/ft2_4FGL_J1127.8+3618_daily_bin109.fits outfile=/scratch/kocevski/804961/cmap_HighResolution_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    42.019       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.8306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10713E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19222E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    1.8258       1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2212       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .69332       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    13.217       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    11.201       1.0000         .10000E-03   10000.    
    17 'norm      '    6.5262       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.3101       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10230E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .72268       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    8.5811       1.0000         .10000E-03   10000.    
    24 'Prefactor '    10.727       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.0468       1.0000         .10000E-03   10000.    
    27 'Prefactor '    13.977       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.6661       1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.0373       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .85124       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=   4790.566     FROM MIGRAD    STATUS=CONVERGED    764 CALLS     3871 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     42.016        35.590        .16992E-06   -.52059E-04
   2  Prefactor     5.8294        6.7430        .15044E-05   -.10240E-03
   3  Prefactor     .10000E-03    7.1987       -.60133E-07** at limit **
   4  Prefactor     .10000E-03    26.741        .18778E-05** at limit **
   5  Prefactor     .10000E-03    9.7496       -.26053E-06** at limit **
   6  Prefactor     .10005E-03    365.38        .39114E-04** at limit **
   7  Prefactor     .10000E-03    5.6315       -.13120E-06** at limit **
   8  norm          1.8268        .42938        .21268E-08   -.35707E-02
   9  Prefactor     5.2187        3.6771        .32725E-06   -.75021E-04
  10  Prefactor     .51426        14.819        .68203E-05   -.68818E-03
  11  Prefactor     .10000E-03    5.9493       -.54700E-07** at limit **
  12  norm          13.265        16.409        .42334E-06   -.27725E-03
  13  norm          .10000E-03    3.5314       -.12069E-07** at limit **
  14  Prefactor     .10000E-03    1.1340       -.34343E-07** at limit **
  15  Prefactor     .10000E-03    14.823        .98857E-06** at limit **
  16  Prefactor     11.200        11.090       -.27946E-07   -.42792E-04
  17  norm          6.5265        2.9961        .12615E-06   -.29908E-03
  18  Prefactor     9.3068        10.424        .70476E-06    .21017E-05
  19  Prefactor     .10000E-03    3.5342       -.96502E-07** at limit **
  20  Prefactor     .10000E-03    18.824       -.10025E-05** at limit **
  21  norm          .72246        .65978        .53634E-07   -.69023E-04
  22  Prefactor     .10000E-03    5.6022        .73178E-07** at limit **
  23  norm          8.5807        8.7224        .12125E-06    .30207E-05
  24  Prefactor     10.732        28.467        .18169E-05   -.11442E-04
  25  Prefactor     .10000E-03    18.904       -.97569E-06** at limit **
  26  norm          1.0462        .90036        .68349E-07   -.63629E-04
  27  Prefactor     13.983        30.492       -.12716E-05   -.83844E-05
  28  Prefactor     1.6577        11.992        .16512E-04    .27602E-03
  29  Normalizat    1.0377        .19963       -.29943E-05   -.54281E-03
  30  Prefactor     .85110        .21889       -.21519E-06   -.47255E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 42.0159
  Prefactor  = 5.82944
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100052
  Prefactor  = 0.0001
  norm       = 1.8268
  Prefactor  = 5.21872
  Prefactor  = 0.514263
  Prefactor  = 0.0001
  norm       = 13.2653
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.1997
  norm       = 6.52646
  Prefactor  = 9.30678
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.722459
  Prefactor  = 0.0001
  norm       = 8.58066
  Prefactor  = 10.7317
  Prefactor  = 0.0001
  norm       = 1.04625
  Prefactor  = 13.9832
  Prefactor  = 1.65772
  Normalizat = 1.03775
  Prefactor  = 0.851097
 **********
 **   18 **HESSE 
 **********

 FCN=   4790.566     FROM HESSE     STATUS=OK           586 CALLS     4457 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     42.016        35.449        .61842E-04   -1.4411    
   2  Prefactor     5.8294        6.7520        .83161E-03   -1.5225    
   3  Prefactor     .10000E-03    7.3373        .36104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    26.787        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    9.7558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10005E-03    367.37        .20264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6437        .16037E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          1.8268        .43746        .20551E-04   -1.5438    
   9  Prefactor     5.2187        3.6859        .10543E-03   -1.5251    
  10  Prefactor     .51426        159.05        .42435E-02   -1.5565    
  11  Prefactor     .10000E-03    5.9515        .16486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          13.265        16.697        .11018E-03   -1.4979    
  13  norm          .10000E-03    3.5351        .12703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.1473        .71879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    14.829        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     11.200        11.094        .59853E-03   -1.5039    
  17  norm          6.5265        2.9950        .77699E-04   -1.5197    
  18  Prefactor     9.3068        10.427        .65673E-03   -1.5098    
  19  Prefactor     .10000E-03    3.5783        .12696E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    18.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .72246        .69196        .51920E-03   -1.5538    
  22  Prefactor     .10000E-03    5.6101        .16000E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          8.5807        8.7253        .13684E-03   -1.5122    
  24  Prefactor     10.732        28.488        .12233E-03   -1.5053    
  25  Prefactor     .10000E-03    18.911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.0462        .91312        .29428E-03   -1.5503    
  27  Prefactor     13.983        30.470        .10714E-03   -1.4960    
  28  Prefactor     1.6577        12.080        .16335E-02   -1.5450    
  29  Normalizat    1.0377        .23513        .23169E-03   -.91776    
  30  Prefactor     .85110        .25703        .29768E-03   -.97871    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59416e-08
Minuit parameter uncertainties:
  1  35.4668
  2  6.75291
  3  1.99432e-05
  4  7.40336e-06
  5  2.6843e-06
  6  0.00883249
  7  8.26253e-07
  8  0.437466
  9  3.68611
  10  18.1351
  11  1.01593e-05
  12  16.7027
  13  3.18635e-07
  14  3.63416e-06
  15  6.03498e-06
  16  11.0957
  17  2.99511
  18  10.4295
  19  8.51931e-06
  20  2.63652e-06
  21  0.691966
  22  9.08198e-08
  23  8.72658
  24  28.5241
  25  9.73226e-08
  26  0.913129
  27  30.5043
  28  8.95229
  29  0.235368
  30  0.257392
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.634e-06  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.511e-01  2.574e-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.038e+00  2.354e-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: 6.88e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.30e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/804961/likelihoodResults_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.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) = 4790.57007069
delta logL = -0.0040990464513

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4790.56597173
delta logL = -8.87330315891e-08

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 'Index     '    2.3770       1.0000          .0000       10.000    
     3 'Normalizat'    1.0378       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85113       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4789.624     FROM MIGRAD    STATUS=FAILED       171 CALLS      322 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42774E-02    .29264E-03** at limit **
   2  Index         7.8925        2.9666        .14776        .23657E-03
   3  Normalizat    .96328        .50292E-01    .23169E-02    .42231E-03
   4  Prefactor     .91036        .58711E-01    .29768E-02    .29886E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4789.624     FROM SIMPLEX   STATUS=UNCHANGED    152 CALLS      474 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .42774E-02    .37565E-05** at limit **
   2  Index         7.8925        2.9666        .33457E-03    .23657E-03
   3  Normalizat    .96328        .50292E-01    .98161E-05    .42231E-03
   4  Prefactor     .91036        .58711E-01    .73607E-05    .29886E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4789.624     FROM MIGRAD    STATUS=CONVERGED     37 CALLS      511 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .91241E-03    .93303E-05** at limit **
   2  Index         7.8925        .41176        .58075E-02    .16622E-04
   3  Normalizat    .96328        .22194        .92676E-04    .35621E-03
   4  Prefactor     .91036        .25937        .11907E-03    .27132E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.89246
  Normalizat = 0.963278
  Prefactor  = 0.910357
 **********
 **   18 **HESSE 
 **********

 FCN=   4789.624     FROM HESSE     STATUS=OK            25 CALLS      536 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .90706E-03    .37321E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.8925        .40540        .23230E-03    .61688    
   3  Normalizat    .96328        .22190        .18535E-04   -.94271    
   4  Prefactor     .91036        .25940        .23815E-04   -.95780    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03954e-10
Minuit parameter uncertainties:
  1  4.61099e-08
  2  0.406071
  3  0.222109
  4  0.25975
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/804961': 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) = 4789.6237981
delta logL = 0.94217354455

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.611e-08  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  7.892e+00  4.061e-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:  9.104e-01  2.598e-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.633e-01  2.221e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.99
Ra Dec: 171.964 36.314
Photon Index (Free Index): 7.89 +/- 0.41
Photon Flux (Free Index): 6.20e-08 +/- 5.13e-08
Energy Flux (Free Index): 7.21e-06 +/- 5.93e-06

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/804961/cmap_HighResolution_267580801_267840001_4FGL_J1127.8+3618_daily_bin109.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.30e-03', comment='SUCCESS', energy_flux2='7.21e-06', dlogl='9.42e-01', photon_flux2='6.20e-08', job_status='DONE', time_completed='2021-09-03 21:56:34.768502', photon_index_error2='0.41', photon_index2='7.89', ts='-0.00', fit_tolerance='1e-08', GAL='0.85', photon_index_error='0.00', photon_flux_upper_limit='6.88e-08', energy_flux_error2='5.93e-06', EG='1.04', time_epoch_completed='1630731394.77', return_code='0', job_id='804961', GAL2='0.91', EG2='0.96', return_code2='0', photon_flux_error2='5.13e-08', ts2='1.99', photon_index='2.37' WHERE bin_id='109' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:56:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 804961: <4FGL_J1127.8+3618_daily_bin109> in cluster <slac> Done

Job <4FGL_J1127.8+3618_daily_bin109> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep  3 21:41:21 2021
Job was executed on host(s) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep  3 21:41:27 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:41:27 2021
Terminated at Fri Sep  3 21:56:35 2021
Results reported at Fri Sep  3 21:56:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin109 171.964 36.314 267580801 267840001 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 :                                   787.22 sec.
    Max Memory :                                 1212 MB
    Average Memory :                             319.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   908 sec.
    Turnaround time :                            914 sec.

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

