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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin673
RA = 171.964, Dec = 36.314
tmin = 413769601, tmax = 414028801
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='808198', job_status='RUN', time_executed='2021-09-03 21:53:20.178296', time_epoch_executed='1630731200.18' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/808198

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/808198/ft1_4FGL_J1127.8+3618_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/808198/ft2_4FGL_J1127.8+3618_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/808198/ft1_4FGL_J1127.8+3618_daily_bin673.fits outfile=/scratch/kocevski/808198/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin673.fits ra=171.964 dec=36.314 rad=12.0 tmin=413769601.0 tmax=414028801.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.24
user 5.92
sys 0.27

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/808198/ft1_filtered_4FGL_J1127.8+3618_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/808198/ft2_4FGL_J1127.8+3618_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/808198/ltcube_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.fits outfile=/scratch/kocevski/808198/expmap_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.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/808198/ltcube_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.fits
.....................!
real 192.07
user 186.91
sys 4.14

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/808198/ft1_filtered_4FGL_J1127.8+3618_daily_bin673.fits scfile=/scratch/kocevski/808198/ft2_4FGL_J1127.8+3618_daily_bin673.fits outfile=/scratch/kocevski/808198/cmap_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.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.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/808198/ft1_filtered_4FGL_J1127.8+3618_daily_bin673.fits scfile=/scratch/kocevski/808198/ft2_4FGL_J1127.8+3618_daily_bin673.fits outfile=/scratch/kocevski/808198/cmap_HighResolution_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.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.41
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .85306       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    28.299       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .73980E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.5749       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .43714E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .73165       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.9396       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    15.739       1.0000         .10000E-03   10000.    
    21 'norm      '    6.1469       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    120.18       1.0000         .10000E-03   10000.    
    26 'norm      '    .34534       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.3576       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .72057       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=   5131.757     FROM MIGRAD    STATUS=CONVERGED    777 CALLS     3987 TOTAL
                     EDM=   .14E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.636        .45598E-06** at limit **
   2  Prefactor     .85478        7.1234       -.15999E-05   -.34259E-04
   3  Prefactor     .10000E-03    2.2846        .34989E-07** at limit **
   4  Prefactor     28.304        32.236       -.20776E-06    .82208E-05
   5  Prefactor     .10000E-03    28.090       -.20810E-06** at limit **
   6  Prefactor     .10000E-03    112.67        .32428E-05** at limit **
   7  Prefactor     .10000E-03    83.250        .55862E-05** at limit **
   8  norm          2.5750        .47580        .80534E-08   -.27056E-03
   9  Prefactor     .10000E-03    2.9454        .10100E-05** at limit **
  10  Prefactor     .10000E-03    8.6099        .25522E-06** at limit **
  11  Prefactor     .10000E-03    5.8478        .42129E-07** at limit **
  12  norm          .10000E-03    16.427       -.43488E-06** at limit **
  13  norm          .10000E-03    4.5409        .62459E-07** at limit **
  14  Prefactor     .73224        2.0874        .73349E-06    .17568E-03
  15  Prefactor     .10000E-03    127.95       -.19734E-05** at limit **
  16  Prefactor     .10000E-03    32.321        .78142E-06** at limit **
  17  norm          .10000E-03    1.1887        .41339E-06** at limit **
  18  Prefactor     6.9398        9.2983       -.15524E-06   -.45411E-04
  19  Prefactor     .10000E-03    2.1053        .10256E-06** at limit **
  20  Prefactor     15.692        61.611       -.42227E-05    .46165E-05
  21  norm          6.1474        2.2504        .12340E-06   -.29414E-03
  22  Prefactor     .10000E-03    25.977       -.33482E-06** at limit **
  23  norm          .10000E-03    7.0323        .11818E-06** at limit **
  24  Prefactor     .10000E-03    18.395        .99965E-06** at limit **
  25  Prefactor     120.18        79.769        .57394E-06   -.18781E-05
  26  norm          .34581        1.0845        .36005E-07   -.37418E-04
  27  Prefactor     .10000E-03    24.962        .17667E-07** at limit **
  28  Prefactor     .10000E-03    2.1597        .22039E-07** at limit **
  29  Normalizat    1.3576        .20580       -.15809E-05   -.13799E-03
  30  Prefactor     .72037        .22949        .91730E-06   -.14631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.854776
  Prefactor  = 0.0001
  Prefactor  = 28.304
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.57499
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.732242
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.93985
  Prefactor  = 0.0001
  Prefactor  = 15.6923
  norm       = 6.1474
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 120.181
  norm       = 0.345812
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35764
  Prefactor  = 0.72037
 **********
 **   18 **HESSE 
 **********

 FCN=   5131.757     FROM HESSE     STATUS=OK           578 CALLS     4565 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .85478        7.2794        .36199E-03   -1.5523    
   3  Prefactor     .10000E-03    2.2949        .10575E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     28.304        32.097        .75311E-04   -1.4643    
   5  Prefactor     .10000E-03    28.245        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    112.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    84.302        .42764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.5750        .47615        .20491E-04   -1.5387    
   9  Prefactor     .10000E-03    7.8044        .19788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.6349        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    5.8502        .16919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    16.490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    4.5498        .14910E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .73224        2.0676        .16935E-03   -1.5537    
  15  Prefactor     .10000E-03    130.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    33.260        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    1.2011        .76103E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.9398        9.2917        .15229E-03   -1.5181    
  19  Prefactor     .10000E-03    2.1196        .10150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     15.692        61.580        .10096E-03   -1.4915    
  21  norm          6.1474        2.2564        .50819E-04   -1.5212    
  22  Prefactor     .10000E-03    26.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    7.0837        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    18.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     120.18        80.007        .36709E-04   -1.3511    
  26  norm          .34581        1.0773        .12814E-03   -1.5590    
  27  Prefactor     .10000E-03    25.028        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    2.1604        .10282E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.3576        .23698        .22815E-03   -.81862    
  30  Prefactor     .72037        .26558        .34698E-03   -1.0273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.28247e-10
Minuit parameter uncertainties:
  1  3.93896e-06
  2  4.98942
  3  4.02324e-06
  4  32.1164
  5  4.47372e-05
  6  5.47152e-05
  7  0.000639879
  8  0.476151
  9  0.000312262
  10  7.27334e-06
  11  2.36452e-06
  12  3.75014e-05
  13  2.50434e-06
  14  2.06776
  15  0.000250377
  16  2.94096e-05
  17  3.88437e-06
  18  9.2936
  19  1.5799e-06
  20  61.8307
  21  2.25648
  22  4.78287e-05
  23  2.90781e-06
  24  5.41793e-06
  25  80.0791
  26  1.07733
  27  2.21596e-05
  28  6.05494e-07
  29  0.237168
  30  0.266048
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  7.322e-01  2.068e+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.204e-01  2.660e-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.358e+00  2.372e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/808198/likelihoodResults_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.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): 0
logL (Free Index) = 5131.66156121
delta logL = 0.0958055325791

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5131.65263799
delta logL = 0.104728754108

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2106       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8367       1.0000          .0000       10.000    
     3 'Normalizat'    1.3654       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .71073       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5131.653     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      289 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2100        2.3567        .15186E-03    .22473E-04
   2  Index         1.8367        .97199        .14142E-01   -.66417E-04
   3  Normalizat    1.3655        .23026        .22758E-03    .99910E-08
   4  Prefactor     .71070        .26516        .34903E-03    .65145E-07
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.21004
  Index      = 1.83669
  Normalizat = 1.36547
  Prefactor  = 0.710705
 **********
 **   18 **HESSE 
 **********

 FCN=   5131.653     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .44E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2100        2.3617        .30373E-04   -1.5488    
   2  Index         1.8367        .97451        .28285E-02   -.68499    
   3  Normalizat    1.3655        .23042        .45516E-04   -.81633    
   4  Prefactor     .71070        .26534        .13961E-04   -1.0311    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.3735e-13
Minuit parameter uncertainties:
  1  2.36192
  2  0.985103
  3  0.23059
  4  0.265813
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/808198': 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) = 5131.65263795
delta logL = 0.104728793081

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.210e+00  2.362e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  1.837e+00  9.851e-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:  7.107e-01  2.658e-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.365e+00  2.306e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.15
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/808198/cmap_HighResolution_413769601_414028801_4FGL_J1127.8+3618_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.22e-03', job_status='DONE', photon_flux_upper_limit='9.36e-08', time_completed='2021-09-03 22:07:47.453965', job_id='808198', GAL2='0.71', fit_tolerance='1e-08', EG2='1.37', EG='1.36', time_epoch_completed='1630732067.45', return_code2='0', ts='0.15', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='1.05e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='673' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:07:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0161>
Subject: Job 808198: <4FGL_J1127.8+3618_daily_bin673> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin673 171.964 36.314 413769601 414028801 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 :                                   862.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             307.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   885 sec.
    Turnaround time :                            986 sec.

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

