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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1506
RA = 171.964, Dec = 36.314
tmin = 629683201, tmax = 629942401
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='813046', job_status='RUN', time_executed='2021-09-03 22:07:45.131250', time_epoch_executed='1630732065.13' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1506'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813046

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813046/ft1_4FGL_J1127.8+3618_daily_bin1506.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813046/ft2_4FGL_J1127.8+3618_daily_bin1506.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813046/ft1_4FGL_J1127.8+3618_daily_bin1506.fits outfile=/scratch/kocevski/813046/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1506.fits ra=171.964 dec=36.314 rad=12.0 tmin=629683201.0 tmax=629942401.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.64
user 3.31
sys 0.23

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813046/ft1_filtered_4FGL_J1127.8+3618_daily_bin1506.fits evtable="EVENTS" scfile=/scratch/kocevski/813046/ft2_4FGL_J1127.8+3618_daily_bin1506.fits sctable="SC_DATA" expcube=/scratch/kocevski/813046/ltcube_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.fits outfile=/scratch/kocevski/813046/expmap_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.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/813046/ltcube_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.fits
.....................!
real 192.07
user 186.42
sys 4.50

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/813046/ft1_filtered_4FGL_J1127.8+3618_daily_bin1506.fits scfile=/scratch/kocevski/813046/ft2_4FGL_J1127.8+3618_daily_bin1506.fits outfile=/scratch/kocevski/813046/cmap_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.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.59
user 0.40
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813046/ft1_filtered_4FGL_J1127.8+3618_daily_bin1506.fits scfile=/scratch/kocevski/813046/ft2_4FGL_J1127.8+3618_daily_bin1506.fits outfile=/scratch/kocevski/813046/cmap_HighResolution_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.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.39
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    58.085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10125E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12550E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10078E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    18.435       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29924E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.872       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3701       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.093       1.0000         .10000E-03   10000.    
    11 'Prefactor '    16.481       1.0000         .10000E-03   10000.    
    12 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9876       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    22.736       1.0000         .10000E-03   10000.    
    17 'norm      '    7.1911       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.9351       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.6074       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    2.2381       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8711       1.0000         .10000E-03   10000.    
    23 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    20.121       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.7513       1.0000         .10000E-03   10000.    
    27 'Prefactor '    5.1458       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .91574       1.0000         .10000E-01   10.000    
    30 'Prefactor '    .83669       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=   6160.294     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     3353 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     58.096        33.764       -.58283E-07   -.20537E-03
   2  Prefactor     .10000E-03    5.1982       -.59561E-06** at limit **
   3  Prefactor     .10000E-03    4.1423       -.29762E-05** at limit **
   4  Prefactor     .10000E-03    15.295       -.52307E-06** at limit **
   5  Prefactor     18.446        22.765        .16952E-07   -.38322E-04
   6  Prefactor     .15982E-03    127.49       -.10070E-04** at limit **
   7  Prefactor     12.875        9.7437        .11302E-06    .92178E-04
   8  norm          1.3700        .33746        .18191E-07    .97151E-03
   9  Prefactor     .10000E-03    .78911        .11590E-06** at limit **
  10  Prefactor     13.101        13.741       -.13153E-06    .57504E-05
  11  Prefactor     16.485        13.989       -.36936E-06   -.17854E-03
  12  norm          .10000E-03    8.5522       -.11640E-06** at limit **
  13  norm          .10000E-03    3.5755        .82151E-07** at limit **
  14  Prefactor     3.9889        2.9201        .15093E-05    .98483E-03
  15  Prefactor     .10000E-03    101.13       -.14953E-05** at limit **
  16  Prefactor     22.739        14.670       -.22921E-06    .76791E-04
  17  norm          7.1921        3.3287       -.37552E-06    .52513E-04
  18  Prefactor     1.9353        7.3440        .16165E-05    .72400E-04
  19  Prefactor     9.6082        5.4693       -.29944E-06   -.88768E-04
  20  Prefactor     .10000E-03    13.839        .99791E-08** at limit **
  21  norm          2.2383        1.0605        .65070E-07    .15506E-03
  22  Prefactor     3.8730        18.723        .90563E-06    .40784E-04
  23  norm          .10000E-03    3.1889        .11415E-07** at limit **
  24  Prefactor     20.123        17.694        .12717E-06    .94161E-04
  25  Prefactor     .10000E-03    23.555        .17343E-07** at limit **
  26  norm          4.7515        1.3836       -.39440E-08   -.48390E-04
  27  Prefactor     5.1477        18.250        .65117E-06    .38237E-04
  28  Prefactor     .10000E-03    2.7088        .73139E-07** at limit **
  29  Normalizat    .91562        .16641       -.51099E-06    .33999E-03
  30  Prefactor     .83672        .19231       -.12970E-06    .23317E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 58.0965
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.4463
  Prefactor  = 0.000159821
  Prefactor  = 12.8745
  norm       = 1.36999
  Prefactor  = 0.0001
  Prefactor  = 13.1015
  Prefactor  = 16.4851
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.98889
  Prefactor  = 0.000100002
  Prefactor  = 22.7388
  norm       = 7.1921
  Prefactor  = 1.93528
  Prefactor  = 9.60817
  Prefactor  = 0.0001
  norm       = 2.23825
  Prefactor  = 3.87302
  norm       = 0.0001
  Prefactor  = 20.1232
  Prefactor  = 0.0001
  norm       = 4.75151
  Prefactor  = 5.14767
  Prefactor  = 0.0001
  Normalizat = 0.915622
  Prefactor  = 0.836719
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.294     FROM HESSE     STATUS=OK           596 CALLS     3949 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     58.096        33.590        .26320E-03   -1.4182    
   2  Prefactor     .10000E-03    5.4079        .34891E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1481        .15463E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     18.446        22.774        .93284E-04   -1.4849    
   6  Prefactor     .15982E-03    83.385        .20470       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.875        9.7376        .11165E-03   -1.4990    
   8  norm          1.3700        .33894        .21185E-04   -1.5474    
   9  Prefactor     .10000E-03    .79918        .68013E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.101        13.731        .11070E-03   -1.4984    
  11  Prefactor     16.485        14.027        .98656E-04   -1.4896    
  12  norm          .10000E-03    8.5978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.5882        .14494E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.9889        2.9337        .51732E-03   -1.5308    
  15  Prefactor     .10000E-03    101.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     22.739        14.620        .84005E-04   -1.4754    
  17  norm          7.1921        3.3213        .87703E-04   -1.5172    
  18  Prefactor     1.9353        7.2864        .29852E-03   -1.5430    
  19  Prefactor     9.6082        5.4680        .12929E-03   -1.5088    
  20  Prefactor     .10000E-03    13.849        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          2.2383        1.0605        .13737E-03   -1.5409    
  22  Prefactor     3.8730        18.719        .20509E-03   -1.5314    
  23  norm          .10000E-03    3.1920        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     20.123        17.688        .89292E-04   -1.4810    
  25  Prefactor     .10000E-03    23.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.7515        1.3829        .47769E-04   -1.5272    
  27  Prefactor     5.1477        18.242        .17723E-03   -1.5254    
  28  Prefactor     .10000E-03    2.7160        .12615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .91562        .19431        .23998E-03   -.95913    
  30  Prefactor     .83672        .22366        .29811E-03   -.98389    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11959e-09
Minuit parameter uncertainties:
  1  33.6005
  2  8.83699e-07
  3  7.36533e-05
  4  1.58086e-05
  5  22.7851
  6  0.14145
  7  9.73877
  8  0.338941
  9  1.46118e-06
  10  13.7347
  11  14.03
  12  1.48937e-05
  13  2.51307e-06
  14  2.9338
  15  0.000867099
  16  14.6222
  17  3.32138
  18  7.28977
  19  5.46827
  20  4.80293e-07
  21  1.06052
  22  17.0379
  23  3.96774e-07
  24  17.6923
  25  3.52053e-06
  26  1.38293
  27  18.2616
  28  2.19862e-06
  29  0.19446
  30  0.223908
Done.

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

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.989e+00  2.934e+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:  8.367e-01  2.239e-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.156e-01  1.945e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.45
Ra Dec: 171.964 36.314
Photon Index (Fixed Index): 2.37 +/- 0.00
Photon Flux (Fixed Index): 5.68e-08 +/- 4.17e-08
Energy Flux (Fixed Index): 1.93e-05 +/- 1.42e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6160.29145104
delta logL = 0.00277243624714

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6160.29022877
delta logL = 0.00399471221954

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8435       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4241       1.0000          .0000       10.000    
     3 'Normalizat'    .91269       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83905       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.

 FCN=   6160.290     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      241 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8434        3.2899        .10002E-03    .11465E-02
   2  Index         2.4243        .62472        .71197E-02    .13684E-03
   3  Normalizat    .91279        .18892        .24028E-03   -.90514E-04
   4  Prefactor     .83895        .22334        .29773E-03   -.11940E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.84339
  Index      = 2.42434
  Normalizat = 0.91279
  Prefactor  = 0.838953
 **********
 **   18 **HESSE 
 **********

 FCN=   6160.290     FROM HESSE     STATUS=OK            25 CALLS      266 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8434        3.1438        .40008E-05   -1.5316    
   2  Index         2.4243        .59666        .28479E-03   -.54116    
   3  Normalizat    .91279        .18886        .96111E-05   -.96012    
   4  Prefactor     .83895        .22332        .11909E-04   -.98308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.22964e-10
Minuit parameter uncertainties:
  1  3.14392
  2  0.598602
  3  0.189001
  4  0.223567
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813046': 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) = 6160.29022851
delta logL = 0.00399497390481

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  3.843e+00  3.144e+00  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.424e+00  5.986e-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:  8.390e-01  2.236e-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.128e-01  1.890e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.49
Ra Dec: 171.964 36.314
Photon Index (Free Index): 2.42 +/- 0.60
Photon Flux (Free Index): 5.93e-08 +/- 4.85e-08
Energy Flux (Free Index): 1.88e-05 +/- 1.40e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/813046/cmap_HighResolution_629683201_629942401_4FGL_J1127.8+3618_daily_bin1506.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.68e-08', energy_flux2='1.88e-05', photon_flux_error='4.17e-08', dlogl='3.99e-03', energy_flux='1.93e-05', photon_flux2='5.93e-08', job_status='DONE', time_completed='2021-09-03 22:21:03.102259', photon_index_error2='0.60', photon_index2='2.42', ts='4.45', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='1.40e-05', EG='0.92', time_epoch_completed='1630732863.1', return_code='0', job_id='813046', GAL2='0.84', EG2='0.91', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='4.85e-08', ts2='4.49', photon_index='2.37' WHERE bin_id='1506' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:21:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 813046: <4FGL_J1127.8+3618_daily_bin1506> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1506 171.964 36.314 629683201 629942401 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 :                                   773.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             306.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            860 sec.

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

