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 26 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 = 74146
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1127.4+5648_monthly_bin168
RA = 171.865, Dec = 56.8032
tmin = 672451201, tmax = 675043201
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='630762', job_status='RUN', time_executed='2022-05-24 02:59:07.328587', time_epoch_executed='1653386347.33' WHERE source_name='4FGL J1127.4+5648' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/630762

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/630762/ft1_4FGL_J1127.4+5648_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/630762/ft1_4FGL_J1127.4+5648_monthly_bin168.fits outfile=/scratch/kocevski/630762/ft1_filteredMKT_4FGL_J1127.4+5648_monthly_bin168.fits ra=171.865 dec=56.8032 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.33
user 27.87
sys 0.73

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.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/630762/ft1_filteredMKT_4FGL_J1127.4+5648_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.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.89
user 0.68
sys 0.17

Number of photons that the gtmktime cut: 8746

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/630762/ltcube_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.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/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits
.....................!
real 146.81
user 145.87
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/630762/ltcube_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits outfile=/scratch/kocevski/630762/expmap_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.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/630762/ltcube_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits
.....................!
real 192.58
user 187.06
sys 4.99

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/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits scfile=/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits outfile=/scratch/kocevski/630762/cmap_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.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.82
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits scfile=/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits outfile=/scratch/kocevski/630762/cmap_HighResolution_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.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.83
user 0.65
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits', '/scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits', expMap='/scratch/kocevski/630762/expmap_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits', expCube='/scratch/kocevski/630762/ltcube_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/630762/Model_4FGL_J1127.4+5648_monthly_bin168.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/630762/ft1_filtered_4FGL_J1127.4+5648_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/630762/ft2_4FGL_J1127.4+5648_monthly_bin168.fits
Exposure map: /scratch/kocevski/630762/expmap_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits
Exposure cube: /scratch/kocevski/630762/ltcube_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/630762/Model_4FGL_J1127.4+5648_monthly_bin168.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) = 94930.2186945

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    27.131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    16.673       1.0000         .10000E-03   10000.    
     4 'norm      '    1.6104       1.0000         .10000E-03   10000.    
     5 'norm      '    3.6102       1.0000         .10000E-03   10000.    
     6 'Prefactor '    14.659       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    31.279       1.0000         .10000E-03   10000.    
     9 'norm      '    2.2449       1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.6777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .70508       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.886       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .13658E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .93554E-01   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.6311       1.0000         .10000E-03   10000.    
    21 'Prefactor '    4.1355       1.0000         .10000E-03   10000.    
    22 'Prefactor '    3.8163       1.0000         .10000E-03   10000.    
    23 'norm      '    1.7938       1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.5350       1.0000         .10000E-03   10000.    
    25 'Prefactor '    41.545       1.0000         .10000E-03   10000.    
    26 'norm      '    1.6814       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    3.0465       1.0000         .10000E-03   10000.    
    29 'Normalizat'    .93661       1.0000         .10000E-01   10.000    
    30 'Prefactor '    1.1740       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   94930.06     FROM MIGRAD    STATUS=CONVERGED    770 CALLS     3463 TOTAL
                     EDM=   .23E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.3186         .0000    ** at limit **
   2  norm          27.131        5.2372         .0000        .23934E-04
   3  Prefactor     16.673        4.9184         .0000        .36874E-03
   4  norm          1.6103        .55588         .0000        .51874E-02
   5  norm          3.6102        .45483         .0000        .38246E-04
   6  Prefactor     14.659        21.044         .0000        .81154E-03
   7  Prefactor     .10000E-03    5.9796         .0000    ** at limit **
   8  Prefactor     31.279        19.345         .0000        .93434E-04
   9  norm          2.2449        .48920         .0000        .14991E-02
  10  Prefactor     9.6780        8.4990         .0000        .80489E-04
  11  Prefactor     .10000E-03    2.2007         .0000    ** at limit **
  12  Prefactor     .10000E-03    3.7824         .0000    ** at limit **
  13  norm          .10000E-03    5.3624         .0000    ** at limit **
  14  Prefactor     .70538        .82352         .0000        .10841E-01
  15  Prefactor     16.885        5.7201         .0000        .38057E-02
  16  Prefactor     .10000E-03    .84534         .0000    ** at limit **
  17  norm          .10000E-03    .43852         .0000    ** at limit **
  18  Prefactor     .92788E-01    .20412         .0000        .12419E-01
  19  norm          .10000E-03    .15491         .0000    ** at limit **
  20  Prefactor     6.6318        4.6763         .0000        .15265E-01
  21  Prefactor     4.1351        1.6867         .0000        .61224E-01
  22  Prefactor     3.8168        4.2262         .0000        .22779E-01
  23  norm          1.7938        .44790         .0000        .53537E-02
  24  Prefactor     3.5351        3.2600         .0000        .21070E-02
  25  Prefactor     41.544        13.797         .0000        .23781E-02
  26  norm          1.6814        1.2577         .0000        .81205E-02
  27  Prefactor     .10000E-03    .21346         .0000    ** at limit **
  28  norm          3.0465        .53279         .0000        .89612E-03
  29  Normalizat    .93658        .42281E-01     .0000       -.27130E-03
  30  Prefactor     1.1740        .52876E-01     .0000       -.32781E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 27.131
  Prefactor  = 16.6734
  norm       = 1.61032
  norm       = 3.61023
  Prefactor  = 14.659
  Prefactor  = 0.0001
  Prefactor  = 31.2785
  norm       = 2.24495
  Prefactor  = 9.67799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.705377
  Prefactor  = 16.8851
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0927877
  norm       = 0.0001
  Prefactor  = 6.63182
  Prefactor  = 4.13511
  Prefactor  = 3.81683
  norm       = 1.79381
  Prefactor  = 3.53507
  Prefactor  = 41.5438
  norm       = 1.68143
  Prefactor  = 0.0001
  norm       = 3.04647
  Normalizat = 0.936579
  Prefactor  = 1.17403
 **********
 **   18 **HESSE 
 **********

 FCN=   94930.06     FROM HESSE     STATUS=OK           612 CALLS     4075 TOTAL
                     EDM=   .75E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.4730        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          27.131        5.2364        .76912E-04   -1.4666    
   3  Prefactor     16.673        4.9145        .98088E-04   -1.4891    
   4  norm          1.6103        .55090        .11009E-03   -1.5454    
   5  norm          3.6102        .45469        .71341E-04   -1.5328    
   6  Prefactor     14.659        21.041        .10461E-03   -1.4942    
   7  Prefactor     .10000E-03    6.0062        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     31.279        19.340        .71643E-04   -1.4589    
   9  norm          2.2449        .48797        .96275E-04   -1.5408    
  10  Prefactor     9.6780        8.5028        .12882E-03   -1.5086    
  11  Prefactor     .10000E-03    2.2511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7911        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    5.4733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .70538        .91536        .28021E-02   -1.5540    
  15  Prefactor     16.885        5.6484        .48734E-03   -1.4886    
  16  Prefactor     .10000E-03    .86859        .99852E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    .44149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .92788E-01    .50922        .18503E-02   -1.5647    
  19  norm          .10000E-03    1.5351        .22280E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.6318        4.5377        .77917E-03   -1.5193    
  21  Prefactor     4.1351        1.6291        .99108E-03   -1.5301    
  22  Prefactor     3.8168        4.1916        .10331E-02   -1.5317    
  23  norm          1.7938        .44569        .98664E-04   -1.5440    
  24  Prefactor     3.5351        3.2519        .21500E-03   -1.5332    
  25  Prefactor     41.544        13.766        .62192E-04   -1.4418    
  26  norm          1.6814        1.2486        .28911E-03   -1.5449    
  27  Prefactor     .10000E-03    .51136        .27277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.0465        .52567        .90125E-04   -1.5359    
  29  Normalizat    .93658        .49844E-01    .23301E-03   -.95186    
  30  Prefactor     1.1740        .63147E-01    .27522E-03   -.87134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51449e-07
Minuit parameter uncertainties:
  1  3.81529e-05
  2  5.23649
  3  4.91465
  4  0.550902
  5  0.454686
  6  21.052
  7  9.89474e-05
  8  19.3438
  9  0.487969
  10  8.50388
  11  2.84509e-07
  12  1.02506e-05
  13  3.09033e-05
  14  0.915376
  15  5.6486
  16  2.98699e-05
  17  1.12368e-06
  18  0.43451
  19  1.84604e-06
  20  4.53798
  21  1.62911
  22  4.19193
  23  0.445691
  24  3.25208
  25  13.7669
  26  1.2486
  27  4.15139e-07
  28  0.525673
  29  0.0498467
  30  0.0631508
Done.

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

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  7.054e-01  9.154e-01  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.174e+00  6.315e-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:  9.366e-01  4.985e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/630762/likelihoodResults_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.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) = 94929.3978427
delta logL = 0.658018345479

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 94929.3973612
delta logL = 0.658499856072

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   94929.40     FROM MIGRAD    STATUS=CONVERGED    108 CALLS      296 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .75175        .86686        .28556E-02    .10296E-02
   2  Index         1.9111        .59516        .21903E-01   -.85596E-04
   3  Normalizat    .93983        .47634E-01    .23263E-03    .67244E-05
   4  Prefactor     1.1709        .62416E-01    .27552E-03    .66020E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.751749
  Index      = 1.91113
  Normalizat = 0.939835
  Prefactor  = 1.17087
 **********
 **   18 **HESSE 
 **********

 FCN=   94929.40     FROM HESSE     STATUS=OK            27 CALLS      323 TOTAL
                     EDM=   .14E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .75175        .86664        .11422E-03   -1.5535    
   2  Index         1.9111        .59741        .87613E-03   -.66591    
   3  Normalizat    .93983        .47674E-01    .46527E-04   -.95074    
   4  Prefactor     1.1709        .62480E-01    .11021E-04   -.87232    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.35523e-14
Minuit parameter uncertainties:
  1  0.866655
  2  0.599736
  3  0.0476766
  4  0.0624836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/630762': 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) = 94929.3973612
delta logL = 0.658499873054

Extracting fit parameters...

4FGL J1127.4+5648
   Spectrum: PowerLaw
386    Prefactor:  7.517e-01  8.667e-01  1.000e-04  1.000e+04 ( 1.000e-12)
387        Index:  1.911e+00  5.997e-01  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.171e+00  6.248e-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:  9.398e-01  4.768e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.16
Ra Dec: 171.865 56.803
Photon Index (Free Index): 1.91 +/- 0.60
Photon Flux (Free Index): 1.95e-09 +/- 2.68e-09
Energy Flux (Free Index): 1.70e-06 +/- 1.94e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/630762/cmap_HighResolution_672451201_675043201_4FGL_J1127.4+5648_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.16e-03', comment='SUCCESS', energy_flux2='1.70e-06', dlogl='6.58e-01', photon_flux2='1.95e-09', job_status='DONE', time_completed='2022-05-24 06:08:55.297348', photon_index_error2='0.60', photon_index2='1.91', ts='0.85', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.47e-08', energy_flux_error2='1.94e-06', EG='0.94', time_epoch_completed='1653397735.3', return_code='0', job_id='630762', GAL2='1.17', EG2='0.94', return_code2='0', photon_flux_error2='2.68e-09', ts2='2.16', photon_index='2.72' WHERE bin_id='168' AND source_name='4FGL J1127.4+5648' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 06:08:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 630762: <4FGL_J1127.4+5648_monthly_bin168> in cluster <slac> Done

Job <4FGL_J1127.4+5648_monthly_bin168> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue May 24 02:55:32 2022
Job was executed on host(s) <bullet0210>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:58:32 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:58:32 2022
Terminated at Tue May 24 06:08:56 2022
Results reported at Tue May 24 06:08:56 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1127.4+5648_monthly_bin168 171.865 56.8032 672451201 675043201 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 :                                   11059.00 sec.
    Max Memory :                                 1263 MB
    Average Memory :                             464.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11424 sec.
    Turnaround time :                            11604 sec.

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

