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


Performing analysis on: 4FGL_J1127.8+3618_daily_bin1525
RA = 171.964, Dec = 36.314
tmin = 634608001, tmax = 634867201
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='813076', job_status='RUN', time_executed='2021-09-03 22:07:59.520395', time_epoch_executed='1630732079.52' WHERE source_name='4FGL J1127.8+3618' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/813076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/813076/ft1_4FGL_J1127.8+3618_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/813076/ft1_4FGL_J1127.8+3618_daily_bin1525.fits outfile=/scratch/kocevski/813076/ft1_filteredMKT_4FGL_J1127.8+3618_daily_bin1525.fits ra=171.964 dec=36.314 rad=12.0 tmin=634608001.0 tmax=634867201.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.12
user 2.88
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/813076/ft1_filtered_4FGL_J1127.8+3618_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/813076/ltcube_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.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/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits
.....................!
real 15.58
user 15.16
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/813076/ft1_filtered_4FGL_J1127.8+3618_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/813076/ltcube_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.fits outfile=/scratch/kocevski/813076/expmap_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.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/813076/ltcube_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.fits
.....................!
real 192.40
user 187.08
sys 4.89

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/813076/ft1_filtered_4FGL_J1127.8+3618_daily_bin1525.fits scfile=/scratch/kocevski/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits outfile=/scratch/kocevski/813076/cmap_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/813076/ft1_filtered_4FGL_J1127.8+3618_daily_bin1525.fits scfile=/scratch/kocevski/813076/ft2_4FGL_J1127.8+3618_daily_bin1525.fits outfile=/scratch/kocevski/813076/cmap_HighResolution_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.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.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     4 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10968E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10164E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    18.567       1.0000         .10000E-03   10000.    
    13 'norm      '    .12197E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    463.09       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.8128       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    5.3720       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .14163E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    485.92       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10327E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    6.4827       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .18430E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    .12081       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.4594       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   574.8556     FROM MIGRAD    STATUS=CONVERGED     97 CALLS     3958 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        .22597        .24203E-05   -.57060E-04
   2  Prefactor    10000.0        4.0037        .36335E-04   -.84901E-03
   3  Prefactor    10000.0        .60938        .11905E-04   -.28353E-03
   4  Prefactor    10000.0        .35488        .71699E-05   -.16906E-03
   5  Prefactor     .93717E-03    .52614       -.94901E-05** at limit **
   6  Prefactor    10000.0        .34552        .48182E-05** at limit **
   7  Prefactor     .12737E-03    63.216       -.96521E-04** at limit **
   8  norm          .10000E-03    7.2590        .23015E-05** at limit **
   9  Prefactor     .10047E-03    14.782        .30600E-04** at limit **
  10  Prefactor     .10013E-03    45.050       -.46242E-04** at limit **
  11  Prefactor     .11441E-03    59.070       -.86706E-04** at limit **
  12  norm          18.560        1.6921       -.29761E-05    .10856E-02
  13  norm          .10185E-03    41.461       -.31876E-04** at limit **
  14  Prefactor     .10043E-03    29.796       -.47941E-04** at limit **
  15  Prefactor     463.09        1.3195       -.38482E-06    .33597E-02
  16  Prefactor     .10375E-03    33.556       -.65333E-04** at limit **
  17  norm          .10000E-03    11.309        .59729E-06** at limit **
  18  Prefactor     .10009E-03    28.358        .56568E-04** at limit **
  19  Prefactor     3.8175        1.2682        .34555E-05   -.20997E-03
  20  Prefactor     .11437E-03    38.827        .58178E-04** at limit **
  21  norm          5.3711        6.4952       -.17479E-06   -.54940E-04
  22  Prefactor     .10077E-03    56.842        .10577E-03** at limit **
  23  norm          .10000E-03    21.620        .12221E-05** at limit **
  24  Prefactor     485.92        1.3640       -.40548E-06    .36886E-02
  25  Prefactor     .11087E-03    35.654        .12647E-04** at limit **
  26  norm          6.4830        4.3845        .17000E-06    .24232E-04
  27  Prefactor     .10235E-03    26.900        .63114E-05** at limit **
  28  Prefactor     .10015E-03    25.063       -.38867E-04** at limit **
  29  Normalizat    .12052        1.5162       -.99699E-05   -.54221E-05
  30  Prefactor     1.4594        .91021        .73599E-05    .21909E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9999.97
  Prefactor  = 9999.99
  Prefactor  = 9999.99
  Prefactor  = 9999.98
  Prefactor  = 0.000937172
  Prefactor  = 10000
  Prefactor  = 0.000127365
  norm       = 0.000100002
  Prefactor  = 0.000100466
  Prefactor  = 0.000100135
  Prefactor  = 0.000114406
  norm       = 18.5605
  norm       = 0.000101845
  Prefactor  = 0.000100433
  Prefactor  = 463.091
  Prefactor  = 0.00010375
  norm       = 0.000100001
  Prefactor  = 0.000100092
  Prefactor  = 3.81748
  Prefactor  = 0.000114368
  norm       = 5.37106
  Prefactor  = 0.000100771
  norm       = 0.000100005
  Prefactor  = 485.918
  Prefactor  = 0.000110872
  norm       = 6.48295
  Prefactor  = 0.000102355
  Prefactor  = 0.000100154
  Normalizat = 0.120519
  Prefactor  = 1.45941
 **********
 **   18 **HESSE 
 **********

 FCN=   574.8556     FROM HESSE     STATUS=NOT POSDEF   628 CALLS     4586 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        6009.3        .91509E-02    1.5676    
   2  Prefactor    10000.0        7042.1        .90712E-02    1.5690    
   3  Prefactor    10000.0        9490.3        .90712E-02    1.5689    
   4  Prefactor    10000.0        8968.6        .91403E-02    1.5678    
   5  Prefactor     .93717E-03    8001.0        .10350E-01   -1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor    10000.0        8696.8        .10566E-01    1.5704    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .12737E-03    276.17        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    6.7592        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10047E-03    34.351        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10013E-03    223.89        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .11441E-03    263.62        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          18.560        1804.2        .23237E-02   -1.4846    
  13  norm          .10185E-03    212.52        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10043E-03    32.256        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     463.09        470.00        .47584E-03   -1.1370    
  16  Prefactor     .10375E-03    51.783        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    10.532        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10009E-03    37.847        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     3.8175        239.56        .51677E-02   -1.5317    
  20  Prefactor     .11437E-03    157.10        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          5.3711        11.801        .43347E-02   -1.5244    
  22  Prefactor     .10077E-03    97.644        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    20.133        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     485.92        737.26        .46509E-03   -1.1263    
  25  Prefactor     .11087E-03    183.37        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          6.4830        6.1467        .39407E-02   -1.5199    
  27  Prefactor     .10235E-03    71.876        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10015E-03    72.623        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    .12052        8.0515        .18865       -1.3600    
  30  Prefactor     1.4594        5.3559        .62537E-01   -.78683    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.33205e-06
Minuit parameter uncertainties:
  1  114.978
  2  12.1125
  3  23.5069
  4  61.7483
  5  5.13045
  6  3.99481
  7  0.174678
  8  0.00021833
  9  0.00800376
  10  0.011018
  11  0.123801
  12  378.4
  13  0.0397469
  14  0.00747932
  15  474.011
  16  0.027895
  17  0.000198328
  18  0.00372444
  19  60.7365
  20  0.0952688
  21  11.8061
  22  0.0173869
  23  0.000603429
  24  752.526
  25  0.0895746
  26  6.14734
  27  0.0260494
  28  0.00669871
  29  4.88464
  30  4.72327
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 574.85557763

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.004e-04  7.479e-03  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.459e+00  4.723e+00  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.205e-01  4.885e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.964 36.314
Photon Flux Upper Limit: 1.47e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.14e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/813076/likelihoodResults_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.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) = 574.855704033
delta logL = -0.000126403564195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 574.855577849
delta logL = -2.19551679947e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11129E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3099       1.0000          .0000       10.000    
     3 'Normalizat'    .12048       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4595       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=   574.8556     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      246 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6166.2        .90712E-02** at limit **
   2  Index         2.3228        6.0599        .50000       -.34959E-05
   3  Normalizat    .12052        .14469        .18865        .14359E-04
   4  Prefactor     1.4594        .17846        .62537E-01    .12041E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.3228
  Normalizat = 0.120522
  Prefactor  = 1.45941
 **********
 **   18 **HESSE 
 **********

 FCN=   574.8556     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    256.03        .13587E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3228        6.8602        .50000       -.56503    
   3  Normalizat    .12052        .93344        .79572E-02   -1.3600    
   4  Prefactor     1.4594        .76807        .27648E-03   -.78683    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69831e-10
Minuit parameter uncertainties:
  1  0.000461531
  2  11.7681
  3  0.656772
  4  0.774263
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/813076': 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) = 574.855577666
delta logL = -3.5944708543e-08

Extracting fit parameters...

4FGL J1127.8+3618
   Spectrum: PowerLaw
326    Prefactor:  1.000e-04  4.615e-04  1.000e-04  1.000e+04 ( 1.000e-12)
327        Index:  2.323e+00  1.177e+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.459e+00  7.743e-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.205e-01  6.568e-01  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/813076/cmap_HighResolution_634608001_634867201_4FGL_J1127.8+3618_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.14e-01', job_status='DONE', photon_flux_upper_limit='1.47e-06', time_completed='2021-09-03 22:14:48.179622', job_id='813076', GAL2='1.46', fit_tolerance='1e-08', EG2='0.12', EG='0.12', time_epoch_completed='1630732488.18', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='1.46', dlogl='-3.59e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.37' WHERE bin_id='1525' AND source_name='4FGL J1127.8+3618' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep  3 22:14:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 813076: <4FGL_J1127.8+3618_daily_bin1525> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.8+3618_daily_bin1525 171.964 36.314 634608001 634867201 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 :                                   388.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   424 sec.
    Turnaround time :                            484 sec.

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

