/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 0 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 = 7678
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1127.8+3618_daily_bin146
RA = 171.964, Dec = 36.314
tmin = 277171201, tmax = 277430401
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='805014', job_status='RUN', time_executed='2021-09-03 21:41:47.986528', time_epoch_executed='1630730507.99' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='146'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/805014

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

Retrieving the FT1 file...

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

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

Retrieving 49 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/805014/ft1_4FGL_J1127.8+3618_daily_bin146.fits


Retrieving the FT1 file...

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

Retrieving 49 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/805014/ft2_4FGL_J1127.8+3618_daily_bin146.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/805014/ft1_4FGL_J1127.8+3618_daily_bin146.fits outfile=/scratch/kocevski/805014/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin146.fits ra=171.964 dec=36.314 rad=12.0 tmin=277171201.0 tmax=277430401.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 4.15
user 3.45
sys 0.22

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/805014/ft1_filtered_4FGL_J1127.8+3618_daily_bin146.fits evtable="EVENTS" scfile=/scratch/kocevski/805014/ft2_4FGL_J1127.8+3618_daily_bin146.fits sctable="SC_DATA" expcube=/scratch/kocevski/805014/ltcube_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.fits outfile=/scratch/kocevski/805014/expmap_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.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/805014/ltcube_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.fits
.....................!
real 191.35
user 185.80
sys 5.08

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/805014/ft1_filtered_4FGL_J1127.8+3618_daily_bin146.fits scfile=/scratch/kocevski/805014/ft2_4FGL_J1127.8+3618_daily_bin146.fits outfile=/scratch/kocevski/805014/cmap_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/805014/ft1_filtered_4FGL_J1127.8+3618_daily_bin146.fits scfile=/scratch/kocevski/805014/ft2_4FGL_J1127.8+3618_daily_bin146.fits outfile=/scratch/kocevski/805014/cmap_HighResolution_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.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.38
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.8360       1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.1569       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10903E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.7103       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    22.687       1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    41.539       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    2.7696       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    57.204       1.0000         .10000E-03   10000.    
    21 'norm      '    .92139       1.0000         .10000E-03   10000.    
    22 'Prefactor '    9.9472       1.0000         .10000E-03   10000.    
    23 'norm      '    5.7131       1.0000         .10000E-03   10000.    
    24 'Prefactor '    4.6280       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .11083E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .70160       1.0000         .10000E-03   10000.    
    27 'Prefactor '    45.221       1.0000         .10000E-03   10000.    
    28 'Prefactor '    15.078       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .74800       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1491       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=   6035.292     FROM MIGRAD    STATUS=CONVERGED    774 CALLS     3913 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.422        61.736       -.18023E-05    .23180E-04
   2  Prefactor     7.8361        5.1091        .44614E-06   -.25613E-03
   3  Prefactor     2.1165        9.0202        .18216E-05   -.10097E-03
   4  Prefactor     .10000E-03    18.964        .10163E-06** at limit **
   5  Prefactor     .10000E-03    6.4447        .22045E-06** at limit **
   6  Prefactor     .10000E-03    47.042       -.14141E-06** at limit **
   7  Prefactor     .10000E-03    2.9729       -.20575E-07** at limit **
   8  norm          2.7103        .43730       -.27569E-08   -.15005E-02
   9  Prefactor     .10000E-03    .74616       -.23954E-07** at limit **
  10  Prefactor     .10000E-03    4.6174        .14203E-06** at limit **
  11  Prefactor     .10000E-03    4.8252       -.16313E-06** at limit **
  12  norm          22.691        13.331        .32877E-06   -.18040E-03
  13  norm          .10000E-03    3.5892       -.26911E-07** at limit **
  14  Prefactor     .10001E-03    2.1944        .25611E-05** at limit **
  15  Prefactor     41.511        43.418       -.38176E-05   -.49618E-03
  16  Prefactor     .10000E-03    5.8517       -.47408E-06** at limit **
  17  norm          2.7690        2.5394       -.24160E-06   -.12276E-02
  18  Prefactor     .10000E-03    6.7509       -.56167E-07** at limit **
  19  Prefactor     .10000E-03    5.2823        .76528E-06** at limit **
  20  Prefactor     57.190        37.708        .24951E-05    .69429E-04
  21  norm          .92152        .98507        .68496E-07   -.48557E-03
  22  Prefactor     9.9488        15.729        .16223E-06   -.46663E-04
  23  norm          5.7113        6.7196       -.37129E-06   -.77511E-04
  24  Prefactor     4.6225        25.602        .57209E-05    .41655E-04
  25  Prefactor     .10000E-03    15.541       -.19186E-07** at limit **
  26  norm          .70159        1.1635        .32672E-06   -.37022E-03
  27  Prefactor     45.218        36.627        .11126E-05    .45926E-05
  28  Prefactor     15.077        8.8117        .66463E-07   -.37324E-04
  29  Normalizat    .74798        .17539       -.32653E-05   -.34517E-03
  30  Prefactor     1.1491        .20293        .75366E-06   -.50976E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.4222
  Prefactor  = 7.83607
  Prefactor  = 2.11648
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 22.6911
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 41.5111
  Prefactor  = 0.0001
  norm       = 2.76897
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.1897
  norm       = 0.921523
  Prefactor  = 9.94883
  norm       = 5.71127
  Prefactor  = 4.62247
  Prefactor  = 0.0001
  norm       = 0.701585
  Prefactor  = 45.2183
  Prefactor  = 15.0771
  Normalizat = 0.747982
  Prefactor  = 1.14908
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.292     FROM HESSE     STATUS=OK           584 CALLS     4497 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.422        59.270        .75512E-04   -1.4641    
   2  Prefactor     7.8361        5.1004        .68466E-03   -1.5148    
   3  Prefactor     2.1165        8.3383        .25294E-03   -1.5417    
   4  Prefactor     .10000E-03    19.008        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.4486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    47.087        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.9783        .13081E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.7103        .43776        .19871E-04   -1.5379    
   9  Prefactor     .10000E-03    .76381        .65515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.6236        .16302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8271        .16666E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          22.691        13.312        .84095E-04   -1.4755    
  13  norm          .10000E-03    3.5983        .14373E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    3.8066        .19669E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     41.511        44.416        .62197E-04   -1.4418    
  16  Prefactor     .10000E-03    5.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          2.7690        2.5299        .10497E-03   -1.5375    
  18  Prefactor     .10000E-03    6.7891        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.5076        .34781E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     57.190        37.759        .53041E-04   -1.4194    
  21  norm          .92152        .94116        .72382E-03   -1.5516    
  22  Prefactor     9.9488        15.695        .12705E-03   -1.5077    
  23  norm          5.7113        6.7183        .16805E-03   -1.5230    
  24  Prefactor     4.6225        25.366        .18709E-03   -1.5278    
  25  Prefactor     .10000E-03    15.547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .70159        1.1309        .10059E-03   -1.5540    
  27  Prefactor     45.218        36.465        .59621E-04   -1.4362    
  28  Prefactor     15.077        8.8106        .10315E-03   -1.4931    
  29  Normalizat    .74798        .20229        .26443E-03   -1.0203    
  30  Prefactor     1.1491        .23883        .26716E-03   -.87913    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.14505e-09
Minuit parameter uncertainties:
  1  59.3929
  2  5.10073
  3  8.34288
  4  1.33765e-06
  5  1.39517e-05
  6  4.35744e-05
  7  4.37542e-06
  8  0.437757
  9  2.6769e-06
  10  4.81951e-06
  11  4.69057e-06
  12  13.3138
  13  7.52709e-06
  14  0.000326638
  15  44.4514
  16  9.95443e-06
  17  2.53004
  18  5.84241e-06
  19  1.69604e-05
  20  37.7745
  21  0.941179
  22  15.7018
  23  6.71919
  24  21.6709
  25  3.18112e-06
  26  1.13095
  27  36.483
  28  8.81132
  29  0.202496
  30  0.239052
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  3.266e-04  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.149e+00  2.391e-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.480e-01  2.025e-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: 7.74e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/805014/likelihoodResults_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.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) = 6035.29346474
delta logL = -0.0012552274502

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6035.29220977
delta logL = -2.63604306383e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3601       1.0000          .0000       10.000    
     3 'Normalizat'    .74803       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1491       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=   6035.292     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      225 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .27403        .32380E-01** at limit **
   2  Index         2.3507        8.5968        .50000        .17885E-04
   3  Normalizat    .74798        .16323E-02    .42928E-01    .16651E-03
   4  Prefactor     1.1491        .20128E-02    .60412E-01    .12430E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.35074
  Normalizat = 0.747981
  Prefactor  = 1.14908
 **********
 **   18 **HESSE 
 **********

 FCN=   6035.292     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      260 TOTAL
                     EDM=   .12E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    19.886        .19808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3507        5.6971        .50000       -.55843    
   3  Normalizat    .74798        .93234E-02    .26443E-03   -1.0203    
   4  Prefactor     1.1491        .11494E-01    .26716E-03   -.87913    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.17887e-07
Minuit parameter uncertainties:
  1  0.000272971
  2  89.8086
  3  0.00932347
  4  0.0114945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/805014': 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) = 6035.2922094
delta logL = 1.0292569641e-07

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  2.730e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.351e+00  8.981e+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.149e+00  1.149e-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.480e-01  9.323e-03  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/805014/cmap_HighResolution_277171201_277430401_4FGL_J1127.8+3618_daily_bin146.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.97e-03', job_status='DONE', photon_flux_upper_limit='7.74e-08', time_completed='2021-09-03 21:57:15.033584', job_id='805014', GAL2='1.15', fit_tolerance='1e-08', EG2='0.75', EG='0.75', time_epoch_completed='1630731435.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='1.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='146' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 21:57:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 805014: <4FGL_J1127.8+3618_daily_bin146> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin146 171.964 36.314 277171201 277430401 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 :                                   922.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             364.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   935 sec.
    Turnaround time :                            950 sec.

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

