aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 31 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 = 7488
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.4+5648_daily_bin1668
RA = 171.865, Dec = 56.8032
tmin = 671673601, tmax = 671932801
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='554888', job_status='RUN', time_executed='2022-04-18 01:26:53.036054', time_epoch_executed='1650270413.04' WHERE source_name='4FGL J1127.4+5648' and cadence='daily' and bin_id='1668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/554888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/554888/ft1_4FGL_J1127.4+5648_daily_bin1668.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/554888/ft1_4FGL_J1127.4+5648_daily_bin1668.fits outfile=/scratch/kocevski/554888/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1668.fits ra=171.865 dec=56.8032 rad=12.0 tmin=671673601.0 tmax=671932801.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.60
user 3.35
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.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/554888/ft1_filteredMKT_4FGL_J1127.4+5648_daily_bin1668.fits evtable="EVENTS" outfile="/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.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.49
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 594

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits" evtable="EVENTS" scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits sctable="SC_DATA" outfile=/scratch/kocevski/554888/ltcube_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.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/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits
.....................!
real 14.33
user 13.91
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits sctable="SC_DATA" expcube=/scratch/kocevski/554888/ltcube_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits outfile=/scratch/kocevski/554888/expmap_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.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/554888/ltcube_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits
.....................!
real 193.26
user 187.58
sys 5.01

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 233 point sources and 0 extended sources

Setting source of interest to:
4FGL J1127.4+5648 @ 171.865 56.8032

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits outfile=/scratch/kocevski/554888/cmap_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.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.865 yref=56.8032 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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits outfile=/scratch/kocevski/554888/cmap_HighResolution_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.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.865 yref=56.8032 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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits evtable="EVENTS" scfile=/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/554888/Model_4FGL_J1127.4+5648_daily_bin1668.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/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits.....................!
real 61.99
user 60.10
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits', '/scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits', expMap='/scratch/kocevski/554888/expmap_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits', expCube='/scratch/kocevski/554888/ltcube_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/554888/Model_4FGL_J1127.4+5648_daily_bin1668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1127.4+5648'

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.906e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/554888/ft1_filtered_4FGL_J1127.4+5648_daily_bin1668.fits
Spacecraft file(s): /scratch/kocevski/554888/ft2_4FGL_J1127.4+5648_daily_bin1668.fits
Exposure map: /scratch/kocevski/554888/expmap_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits
Exposure cube: /scratch/kocevski/554888/ltcube_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/554888/Model_4FGL_J1127.4+5648_daily_bin1668.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) = 6397.54255438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    44.210       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .19802E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.0545       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .40476E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .12428E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10347E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.1856       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10284E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    88.617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.0266       1.0000         .10000E-03   10000.    
    17 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    4.0470       1.0000         .10000E-03   10000.    
    19 'norm      '    .11517E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.3373       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.912       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6357       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.0294       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10208E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    7.2383       1.0000         .10000E-03   10000.    
    27 'Prefactor '    8.2088       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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=   6397.517     FROM MIGRAD    STATUS=CONVERGED   1397 CALLS     4569 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    29.456        .18142E-02** at limit **
   2  norm          44.207        27.637        .60296E-04   -.11486E-03
   3  Prefactor     .34819E-01    15.687        .78586E-01    .82310E-04
   4  norm          .10000E-03    .65352        .62922E-03** at limit **
   5  norm          1.0545        1.0385        .73836E-03   -.19528E-03
   6  Prefactor     .10001E-03    472.31        .21258E-02** at limit **
   7  Prefactor     .10006E-03    389.96        .18142E-02** at limit **
   8  Prefactor     .10000E-03    139.82        .18142E-02** at limit **
   9  norm          5.1857        2.6538        .89971E-04   -.67375E-03
  10  Prefactor     .10000E-03    30.872        .18142E-02** at limit **
  11  Prefactor     .10000E-03    28.931        .18142E-02** at limit **
  12  Prefactor     .10000E-03    23.537        .18142E-02** at limit **
  13  norm          88.604        60.533        .42682E-04   -.27222E-04
  14  Prefactor     .10000E-03    2.2473        .11663E-02** at limit **
  15  Prefactor     .10000E-03    27.932        .18142E-02** at limit **
  16  Prefactor     3.0300        44.037        .23326E-03    .22956E-04
  17  norm          .10000E-03    5.2443        .17878E-02** at limit **
  18  Prefactor     4.0475        3.6897        .13937E-03    .36626E-03
  19  norm          .10000E-03    14.725        .30217E-02** at limit **
  20  Prefactor     .10000E-03    14.155        .18142E-02** at limit **
  21  Prefactor     1.3389        26.440        .37927E-03   -.96490E-04
  22  Prefactor     25.894        36.483        .78696E-04    .59952E-04
  23  norm          4.6356        2.4276        .86150E-04    .28636E-04
  24  Prefactor     5.0282        21.777        .17931E-03    .36774E-05
  25  Prefactor     .10000E-03    76.735        .18142E-02** at limit **
  26  norm          7.2383        7.3064        .14909E-03    .57953E-05
  27  Prefactor     8.2087        5.3708        .13993E-03   -.11722E-03
  28  norm          .10000E-03    1.3323        .17618E-03** at limit **
  29  Normalizat    1.1339        .20041        .23165E-03   -.17079E-03
  30  Prefactor     1.1407        .25594        .30024E-03   -.37053E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 44.2072
  Prefactor  = 0.0348186
  norm       = 0.0001
  norm       = 1.05446
  Prefactor  = 0.000100007
  Prefactor  = 0.000100064
  Prefactor  = 0.0001
  norm       = 5.18574
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 88.6036
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.03002
  norm       = 0.0001
  Prefactor  = 4.04754
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.33889
  Prefactor  = 25.8935
  norm       = 4.63555
  Prefactor  = 5.02819
  Prefactor  = 0.000100005
  norm       = 7.23826
  Prefactor  = 8.20871
  norm       = 0.0001
  Normalizat = 1.13393
  Prefactor  = 1.14067
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.517     FROM HESSE     STATUS=OK           568 CALLS     5137 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    29.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          44.207        27.637        .12059E-04   -1.4377    
   3  Prefactor     .34819E-01    14.574        .82417E-01   -1.5671    
   4  norm          .10000E-03    .65352        .12584E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.0545        1.0385        .29534E-04   -1.5503    
   6  Prefactor     .10001E-03    472.35        .42516E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    390.32        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    139.83        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.1857        2.6536        .35989E-05   -1.5252    
  10  Prefactor     .10000E-03    30.874        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    28.946        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    23.537        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          88.604        60.535        .85363E-05   -1.3823    
  14  Prefactor     .10000E-03    2.2476        .23326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.938        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     3.0300        44.042        .93304E-05   -1.5360    
  17  norm          .10000E-03    5.2446        .35756E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     4.0475        3.6893        .55748E-05   -1.5306    
  19  norm          .10000E-03    14.893        .60434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    14.157        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.3389        26.146        .15171E-04   -1.5477    
  22  Prefactor     25.894        36.326        .31479E-05   -1.4690    
  23  norm          4.6356        2.4275        .34460E-05   -1.5277    
  24  Prefactor     5.0282        21.775        .71722E-05   -1.5259    
  25  Prefactor     .10000E-03    76.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          7.2383        7.3062        .59636E-05   -1.5170    
  27  Prefactor     8.2087        5.3707        .27986E-04   -1.5135    
  28  norm          .10000E-03    1.3323        .35236E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Normalizat    1.1339        .20053        .46330E-04   -.88670    
  30  Prefactor     1.1407        .25614        .60047E-04   -.88177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.1959e-09
Minuit parameter uncertainties:
  1  0.000168815
  2  27.6446
  3  1.42301
  4  3.88344e-06
  5  1.03854
  6  0.00354438
  7  0.0100579
  8  0.000370452
  9  2.65369
  10  0.000304182
  11  0.000173667
  12  3.64934e-05
  13  60.5775
  14  2.27848e-05
  15  0.000267978
  16  23.124
  17  7.96611e-06
  18  3.68951
  19  0.000186191
  20  0.00011739
  21  11.8389
  22  36.3571
  23  2.42755
  24  20.9403
  25  0.00122229
  26  7.30709
  27  5.37102
  28  1.1204e-05
  29  0.20066
  30  0.256422
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  2.278e-05  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.718e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.141e+00  2.564e-01  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.134e+00  2.007e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 171.865 56.803
Photon Flux Upper Limit: 5.04e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/554888/likelihoodResults_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.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) = 6397.51953648
delta logL = -0.00209906358759

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6397.5174374
delta logL = 1.73358785105e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7013       1.0000          .0000       10.000    
     3 'Normalizat'    1.1339       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1407       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7420E+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=   6397.517     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      252 TOTAL
                     EDM=   .20E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.781        .11795E-01** at limit **
   2  Index         2.2061        7.9327        .50000        .25270E-06
   3  Normalizat    1.1339        .10484E-01    .23165E-03    .18014E-03
   4  Prefactor     1.1407        .13670E-01    .30024E-03    .14817E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.2061
  Normalizat = 1.13392
  Prefactor  = 1.14068
 **********
 **   18 **HESSE 
 **********

 FCN=   6397.517     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    150.06        .12847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2061        5.6549        .50000       -.59291    
   3  Normalizat    1.1339        .33143E-01    .46330E-04   -.88670    
   4  Prefactor     1.1407        .43214E-01    .12009E-04   -.88177    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.79966e-09
Minuit parameter uncertainties:
  1  3.55635e-06
  2  683.974
  3  0.0331435
  4  0.0432155
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/554888': 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) = 6397.51743348
delta logL = 3.93518257624e-06

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  1.000e-04  3.556e-06  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  2.206e+00  6.840e+02  0.000e+00  1.000e+01 (-1.000e+00)
388        Scale:  5.235e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
739    Prefactor:  1.141e+00  4.322e-02  0.000e+00  1.000e+01 ( 1.000e+00)
740        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
741        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
738   Normalization:  1.134e+00  3.314e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 171.865 56.803

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/554888/cmap_HighResolution_671673601_671932801_4FGL_J1127.4+5648_daily_bin1668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-03', job_status='DONE', photon_flux_upper_limit='5.04e-08', time_completed='2022-04-18 01:45:54.483176', job_id='554888', GAL2='1.14', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1650271554.48', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.14', dlogl='3.94e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.72' WHERE bin_id='1668' AND source_name='4FGL J1127.4+5648' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Apr 18 01:45:54 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0146>
Subject: Job 554695: <4FGL_J1127.4+5648_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1668> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Apr 18 00:06:53 2022
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 01:14:06 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 01:14:06 2022
Terminated at Mon Apr 18 01:35:10 2022
Results reported at Mon Apr 18 01:35:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1668 171.865 56.8032 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.4+5648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1141.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             274.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1264 sec.
    Turnaround time :                            5297 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0183>
Subject: Job 554888: <4FGL_J1127.4+5648_daily_bin1668> in cluster <slac> Done

Job <4FGL_J1127.4+5648_daily_bin1668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Apr 18 00:07:04 2022
Job was executed on host(s) <bullet0183>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Apr 18 01:26:13 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Apr 18 01:26:13 2022
Terminated at Mon Apr 18 01:45:54 2022
Results reported at Mon Apr 18 01:45:54 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_daily_bin1668 171.865 56.8032 671673601 671932801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1127.4+5648 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1137.52 sec.
    Max Memory :                                 1052 MB
    Average Memory :                             342.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3344 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1181 sec.
    Turnaround time :                            5930 sec.

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

