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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1667
RA = 249.824, Dec = 41.4964
tmin = 671414401, tmax = 671673601
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='478297', job_status='RUN', time_executed='2022-04-15 03:32:03.038415', time_epoch_executed='1650018723.04' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1667'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/478297

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/478297/ft1_4FGL_J1639.2+4129_daily_bin1667.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/478297/ft1_4FGL_J1639.2+4129_daily_bin1667.fits outfile=/scratch/kocevski/478297/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1667.fits ra=249.824 dec=41.4964 rad=12.0 tmin=671414401.0 tmax=671673601.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.52
user 3.29
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.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/478297/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1667.fits evtable="EVENTS" outfile="/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.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: 741

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits" evtable="EVENTS" scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits sctable="SC_DATA" outfile=/scratch/kocevski/478297/ltcube_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.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/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits
.....................!
real 12.50
user 12.13
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits sctable="SC_DATA" expcube=/scratch/kocevski/478297/ltcube_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits outfile=/scratch/kocevski/478297/expmap_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.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/478297/ltcube_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits
.....................!
real 191.83
user 185.65
sys 5.31

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

Setting source of interest to:
4FGL J1639.2+4129 @ 249.824 41.4964

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits outfile=/scratch/kocevski/478297/cmap_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.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=249.824 yref=41.4964 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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits outfile=/scratch/kocevski/478297/cmap_HighResolution_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.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=249.824 yref=41.4964 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits evtable="EVENTS" scfile=/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/478297/Model_4FGL_J1639.2+4129_daily_bin1667.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/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits.....................!
real 61.15
user 59.79
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits', '/scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits', expMap='/scratch/kocevski/478297/expmap_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits', expCube='/scratch/kocevski/478297/ltcube_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/478297/Model_4FGL_J1639.2+4129_daily_bin1667.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1639.2+4129'

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  9.401e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/478297/ft1_filtered_4FGL_J1639.2+4129_daily_bin1667.fits
Spacecraft file(s): /scratch/kocevski/478297/ft2_4FGL_J1639.2+4129_daily_bin1667.fits
Exposure map: /scratch/kocevski/478297/expmap_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits
Exposure cube: /scratch/kocevski/478297/ltcube_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/478297/Model_4FGL_J1639.2+4129_daily_bin1667.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) = 7878.97626828

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10733E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    38.336       1.0000         .10000E-03   10000.    
     9 'norm      '    .19760       1.0000         .10000E-03   10000.    
    10 'norm      '    2.0938       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33745E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .15867E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .14810E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7981       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8495       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.1139       1.0000         .10000E-03   10000.    
    20 'norm      '    1.0109       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .21809E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .31040       1.0000         .10000E-03   10000.    
    23 'norm      '    5.7213       1.0000         .10000E-03   10000.    
    24 'norm      '    6.0296       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    4.1887       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    28 'Normalizat'    .96707       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .98522       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7878.863     FROM MIGRAD    STATUS=CONVERGED    761 CALLS     3242 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    8.9287        .66814E-06** at limit **
   2  Prefactor     .10000E-03    31.574       -.19643E-05** at limit **
   3  Prefactor     2.2411        3.0570        .20301E-08   -.88398E-05
   4  Prefactor     .10000E-03    3.1408        .24666E-05** at limit **
   5  Prefactor     .10000E-03    7.3331        .29407E-06** at limit **
   6  Prefactor     2.2694        2.0516        .11014E-05   -.90940E-03
   7  Prefactor     .10000E-03    1.6154       -.51430E-06** at limit **
   8  norm          38.339        19.215       -.17105E-06    .41606E-05
   9  norm          .19752        .10874       -.25766E-07    .26792E-02
  10  norm          2.0928        10.265        .29683E-06    .22400E-04
  11  Prefactor     .10000E-03    43.838       -.23711E-04** at limit **
  12  Prefactor     .10002E-03    2.4235       -.26209E-05** at limit **
  13  norm          .10000E-03    13.268       -.13138E-05** at limit **
  14  Prefactor     .10000E-03    .83138        .13750E-05** at limit **
  15  Prefactor     8.7963        1.8575        .21987E-06    .52416E-02
  16  Prefactor     1.8488        2.7471       -.43743E-07   -.17354E-03
  17  Prefactor     .10000E-03    .54996        .12588E-07** at limit **
  18  Prefactor     .10000E-03    4.0112        .74397E-07** at limit **
  19  norm          3.1139        1.5130        .25239E-08    .50463E-03
  20  norm          1.0114        .81789       -.61155E-07   -.72119E-03
  21  Prefactor     .10000E-03    5.9197       -.48804E-05** at limit **
  22  norm          .31049        .57092       -.59937E-07   -.66853E-03
  23  norm          5.7217        6.2500        .18596E-06   -.15036E-03
  24  norm          6.0305        2.0420       -.54978E-07   -.75348E-03
  25  Prefactor     .10000E-03    26.864       -.11990E-05** at limit **
  26  norm          4.1895        4.3174        .28305E-07    .97296E-04
  27  Prefactor     .10000E-03    20.579        .96764E-06** at limit **
  28  Normalizat    .96701        .18577       -.28779E-06    .13008E-04
  29  Prefactor     .98527        .15049       -.68359E-06   -.23007E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.24114
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 2.26941
  Prefactor  = 0.0001
  norm       = 38.3387
  norm       = 0.19752
  norm       = 2.09283
  Prefactor  = 0.000100001
  Prefactor  = 0.000100017
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 8.79629
  Prefactor  = 1.84879
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.1139
  norm       = 1.01136
  Prefactor  = 0.000100003
  norm       = 0.310494
  norm       = 5.7217
  norm       = 6.03046
  Prefactor  = 0.0001
  norm       = 4.18947
  Prefactor  = 0.0001
  Normalizat = 0.967006
  Prefactor  = 0.985269
 **********
 **   18 **HESSE 
 **********

 FCN=   7878.863     FROM HESSE     STATUS=OK           563 CALLS     3805 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.9455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    31.539        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.2411        3.0419        .17267E-03   -1.5409    
   4  Prefactor     .10000E-03    9.7034        .29109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.3445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2694        5.5429        .13627E-02   -1.5407    
   7  Prefactor     .10000E-03    5.7100        .21045E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.339        19.326        .64733E-04   -1.4469    
   9  norm          .19752        .10657        .20146E-04   -1.5619    
  10  norm          2.0928        10.213        .28527E-03   -1.5419    
  11  Prefactor     .10000E-03    53.047        .49987E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10002E-03    19.431        .22939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    13.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    7.0085        .11321E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.7963        1.6170        .44484E-04   -1.5115    
  16  Prefactor     1.8488        2.6880        .16607E-03   -1.5436    
  17  Prefactor     .10000E-03    .55119        .64262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.0329        .17361E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.1139        1.5124        .73411E-04   -1.5355    
  20  norm          1.0114        .76956        .66146E-03   -1.5507    
  21  Prefactor     .10000E-03    17.157        .34515E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .31049        .48726        .85396E-03   -1.5597    
  23  norm          5.7217        6.3067        .83963E-03   -1.5230    
  24  norm          6.0305        2.0179        .69562E-04   -1.5217    
  25  Prefactor     .10000E-03    26.877        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.1895        4.3096        .17985E-03   -1.5299    
  27  Prefactor     .10000E-03    20.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Normalizat    .96701        .21105        .27806E-03   -.94144    
  29  Prefactor     .98527        .17673        .23769E-03   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.95394e-09
Minuit parameter uncertainties:
  1  1.27245e-05
  2  0.000127034
  3  3.04213
  4  0.000416656
  5  1.20086e-05
  6  5.54415
  7  1.83061e-06
  8  19.3291
  9  0.106574
  10  9.24859
  11  0.0003929
  12  0.00116437
  13  1.3958e-05
  14  0.000246687
  15  1.61702
  16  2.68814
  17  4.50599e-07
  18  9.77809e-06
  19  1.51237
  20  0.769565
  21  0.000458983
  22  0.487263
  23  6.30745
  24  2.0179
  25  0.000219571
  26  4.30992
  27  5.36941e-05
  28  0.211236
  29  0.176834
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.000e-04  1.396e-05  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  2.192e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.853e-01  1.768e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  9.670e-01  2.112e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 249.824 41.496
Photon Flux Upper Limit: 3.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/478297/likelihoodResults_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.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) = 7878.86367083
delta logL = -0.000358466599209

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7878.86331234
delta logL = 1.99443093152e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1802       1.0000          .0000       5.0000    
     3 'Normalizat'    .96700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98527       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+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=   7878.863     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      240 TOTAL
                     EDM=   .90E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    535.19        .18142E-01** at limit **
   2  alpha         1.6657        3.8848        .16634        .24604E-08
   3  Normalizat    .96700        .26302E-01    .27806E-03    .14555E-04
   4  Prefactor     .98527        .22793E-01    .23769E-03    .27741E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66568
  Normalizat = 0.967003
  Prefactor  = 0.985271
 **********
 **   18 **HESSE 
 **********

 FCN=   7878.863     FROM HESSE     STATUS=OK            23 CALLS      263 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    15.298        .33714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6657        4.1258        .66536E-02   -.34026    
   3  Normalizat    .96700        .20124        .11122E-04   -.94144    
   4  Prefactor     .98527        .17443        .95078E-05   -.93222    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13848e-12
Minuit parameter uncertainties:
  1  1.18375e-05
  2  527.955
  3  0.201401
  4  0.174528
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/478297': 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) = 7878.86331189
delta logL = 4.67101926915e-07

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.000e-04  1.184e-05  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  1.666e+00  5.280e+02  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  2.518e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  8.457e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
673    Prefactor:  9.853e-01  1.745e-01  0.000e+00  1.000e+01 ( 1.000e+00)
674        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
675        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
672   Normalization:  9.670e-01  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 249.824 41.496

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/478297/cmap_HighResolution_671414401_671673601_4FGL_J1639.2+4129_daily_bin1667.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.58e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2022-04-15 03:49:08.193530', job_id='478297', GAL2='0.99', fit_tolerance='1e-08', EG2='0.97', EG='0.97', time_epoch_completed='1650019748.19', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1667' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Apr 15 03:49:08 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0033>
Subject: Job 478335: <4FGL_J1639.2+4129_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1667> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:45 2022
Job was executed on host(s) <bullet0033>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:30:53 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:30:53 2022
Terminated at Fri Apr 15 03:46:19 2022
Results reported at Fri Apr 15 03:46:19 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1667 249.824 41.4964 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1639.2+4129 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   845.40 sec.
    Max Memory :                                 618 MB
    Average Memory :                             285.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   925 sec.
    Turnaround time :                            13114 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0190>
Subject: Job 478297: <4FGL_J1639.2+4129_daily_bin1667> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1667> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Apr 15 00:07:44 2022
Job was executed on host(s) <bullet0190>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Apr 15 03:30:37 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Apr 15 03:30:37 2022
Terminated at Fri Apr 15 03:49:09 2022
Results reported at Fri Apr 15 03:49:09 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1667 249.824 41.4964 671414401 671673601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1639.2+4129 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1026.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1111 sec.
    Turnaround time :                            13285 sec.

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

