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 186 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1751
RA = 249.824, Dec = 41.4964
tmin = 693187201, tmax = 693446401
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='81663', job_status='RUN', time_executed='2022-12-23 00:58:42.471807', time_epoch_executed='1671785922.47' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/81663

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/81663/ft1_4FGL_J1639.2+4129_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/81663/ft1_4FGL_J1639.2+4129_daily_bin1751.fits outfile=/scratch/kocevski/81663/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1751.fits ra=249.824 dec=41.4964 rad=12.0 tmin=693187201.0 tmax=693446401.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.63
user 3.41
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits" evtable="EVENTS" scfile=/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits sctable="SC_DATA" outfile=/scratch/kocevski/81663/ltcube_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.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/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits
.....................!
real 11.98
user 11.65
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/81663/ltcube_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits outfile=/scratch/kocevski/81663/expmap_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.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/81663/ltcube_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits
.....................!
real 190.20
user 185.20
sys 4.65

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/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits scfile=/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits outfile=/scratch/kocevski/81663/cmap_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits scfile=/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits outfile=/scratch/kocevski/81663/cmap_HighResolution_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.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.54
user 0.39
sys 0.14

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits', '/scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits', expMap='/scratch/kocevski/81663/expmap_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits', expCube='/scratch/kocevski/81663/ltcube_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/81663/Model_4FGL_J1639.2+4129_daily_bin1751.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  0.000e+00  1.000e+06 ( 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 -5.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/81663/ft1_filtered_4FGL_J1639.2+4129_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/81663/ft2_4FGL_J1639.2+4129_daily_bin1751.fits
Exposure map: /scratch/kocevski/81663/expmap_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits
Exposure cube: /scratch/kocevski/81663/ltcube_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/81663/Model_4FGL_J1639.2+4129_daily_bin1751.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) = 6399.96526737

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12258E-05   1.0000          .0000       .10000E+07
     2 'Prefactor '    .50626E-07   1.0000          .0000       .10000E+07
     3 'Prefactor '    2.3037       1.0000          .0000       .10000E+07
     4 'Prefactor '    .14238E-04   1.0000          .0000       .10000E+07
     5 'Prefactor '    .65293E-04   1.0000          .0000       .10000E+07
     6 'Prefactor '    15.526       1.0000          .0000       .10000E+07
     7 'Prefactor '    .21712       1.0000          .0000       .10000E+07
     8 'norm      '    .24996E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .63286       1.0000          .0000       .10000E+07
    10 'norm      '    .96201E-07   1.0000          .0000       .10000E+07
    11 'Prefactor '    .24686E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    6.4656       1.0000          .0000       .10000E+07
    13 'norm      '    2.2636       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.1267       1.0000          .0000       .10000E+07
    15 'Prefactor '    3.2965       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.4545       1.0000          .0000       .10000E+07
    17 'Prefactor '    .33103E-04   1.0000          .0000       .10000E+07
    18 'Prefactor '    13.919       1.0000          .0000       .10000E+07
    19 'norm      '    1.8114       1.0000          .0000       .10000E+07
    20 'norm      '    .37386E-05   1.0000          .0000       .10000E+07
    21 'Prefactor '    .62113E-04   1.0000          .0000       .10000E+07
    22 'norm      '    .19154E-01   1.0000          .0000       .10000E+07
    23 'norm      '    3.3358       1.0000          .0000       .10000E+07
    24 'norm      '    4.2540       1.0000          .0000       .10000E+07
    25 'norm      '    9.7389       1.0000          .0000       .10000E+07
    26 'Prefactor '    .95723E-06   1.0000          .0000       .10000E+07
    27 'Normalizat'    .77718       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.0229       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6760E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6399.865     FROM MIGRAD    STATUS=CONVERGED    254 CALLS     2109 TOTAL
                     EDM=   .11E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .16653E-09    11.546       -.22317E-06** at limit **
   2  Prefactor     .27756E-09    23.374        .64306E-06** at limit **
   3  Prefactor     2.3180        2.8993       -.15466E-06   -.48527E-03
   4  Prefactor      .0000        2.0286       -.80941E-08** at limit **
   5  Prefactor     .55511E-10    6.8659        .12996E-07** at limit **
   6  Prefactor     15.495        8.2112       -.12303E-06    .53356E-03
   7  Prefactor     .21521        4.2811        .69149E-06** at limit **
   8  norm          .27756E-09    24.821       -.87803E-06** at limit **
   9  norm          .63263        .17853       -.12879E-08    .40981E-02
  10  norm           .0000        6.5288        .21487E-06** at limit **
  11  Prefactor     .55511E-10    7.9599       -.23507E-06** at limit **
  12  Prefactor     6.4591        4.3413       -.44464E-07    .61368E-04
  13  norm          .49960E-09    1659.4       -.14782E-05** at limit **
  14  Prefactor     1.1199        2.2812       -.27364E-06   -.30744E-02
  15  Prefactor     3.3271        2.3727        .63282E-07   -.76247E-02
  16  Prefactor     3.4549        2.6783       -.13867E-06    .16087E-02
  17  Prefactor      .0000        1.1253       -.36145E-07** at limit **
  18  Prefactor     13.985        11.656        .28918E-06   -.14715E-02
  19  norm          1.8084        1.4575       -.16815E-07   -.22616E-02
  20  norm           .0000        .33204        .41408E-07** at limit **
  21  Prefactor      .0000        1.4606       -.14939E-06** at limit **
  22  norm          .15187E-01    2.1660       -.29967E-06** at limit **
  23  norm          3.3239        7.4908        .15410E-06   -.80821E-03
  24  norm          4.2534        1.7232        .53195E-07   -.12556E-02
  25  norm          9.7339        5.6069        .78694E-07   -.15009E-02
  26  Prefactor     .24980E-08    121.17        .31059E-05** at limit **
  27  Normalizat    .77682        .22996        .68220E-05   -.10672E-05
  28  Prefactor     1.0238        .19365       -.57225E-05   -.72306E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.66533e-10
  Prefactor  = 2.77556e-10
  Prefactor  = 2.318
  Prefactor  = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 15.4954
  Prefactor  = 0.215211
  norm       = 2.77556e-10
  norm       = 0.632632
  norm       = 0
  Prefactor  = 5.55112e-11
  Prefactor  = 6.45913
  norm       = 4.996e-10
  Prefactor  = 1.1199
  Prefactor  = 3.32709
  Prefactor  = 3.45492
  Prefactor  = 0
  Prefactor  = 13.9846
  norm       = 1.80837
  norm       = 0
  Prefactor  = 0
  norm       = 0.0151867
  norm       = 3.32387
  norm       = 4.2534
  norm       = 9.73391
  Prefactor  = 2.498e-09
  Normalizat = 0.776821
  Prefactor  = 1.02377
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.865     FROM HESSE     STATUS=OK           589 CALLS     2698 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .16653E-09    11.642        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .27756E-09    23.652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     2.3180        2.9097        .67581E-03   -1.5678    
   4  Prefactor      .0000        2.0381        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .55511E-10    6.8962        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.495        8.2367        .25392E-03   -1.5629    
   7  Prefactor     .21521        1.9242        .35516E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .27756E-09    24.976        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .63263        .18197        .36755E-03   -1.5692    
  10  norm           .0000        6.5881        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .55511E-10    8.0307        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4591        4.3372        .39446E-03   -1.5657    
  13  norm          .49960E-09    37.851        .13439E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.1199        2.5139        .11024E-02   -1.5687    
  15  Prefactor     3.3271        2.5195        .55738E-03   -1.5671    
  16  Prefactor     3.4549        2.6989        .54389E-03   -1.5671    
  17  Prefactor      .0000        1.1364        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     13.985        11.876        .26821E-03   -1.5633    
  19  norm          1.8084        1.4624        .77595E-03   -1.5681    
  20  norm           .0000        .33513        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        1.4633        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .15187E-01    .31792        .17093E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          3.3239        7.5305        .55393E-03   -1.5672    
  24  norm          4.2534        1.7300        .48828E-03   -1.5667    
  25  norm          9.7339        5.6194        .32086E-03   -1.5646    
  26  Prefactor     .24980E-08    122.79        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    .77682        .19355        .65377E-01   -1.0093    
  28  Prefactor     1.0238        .16169        .41860E-01   -.91941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08471e-07
Minuit parameter uncertainties:
  1  8.14561e-05
  2  0.000159849
  3  2.90975
  4  3.82375e-06
  5  3.22463e-05
  6  8.23675
  7  1.28703
  8  0.000165643
  9  0.181973
  10  1.52596e-05
  11  3.86155e-05
  12  4.33725
  13  0.000273895
  14  2.51391
  15  2.51949
  16  2.69894
  17  4.13713e-06
  18  11.8764
  19  1.46239
  20  2.25319e-06
  21  3.23012e-06
  22  0.138969
  23  7.53049
  24  1.73001
  25  5.61944
  26  0.00110831
  27  0.193721
  28  0.161764
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  4.996e-10  2.739e-04  0.000e+00  1.000e+06 ( 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 -5.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:  1.024e+00  1.618e-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:  7.768e-01  1.937e-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: 5.51e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/81663/likelihoodResults_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.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) = 6399.86590854
delta logL = -0.000714770948434

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6399.86422198
delta logL = 0.000971785778347

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1386       1.0000          .0000       .10000E+07
     2 'alpha     '    2.5999       1.0000          .0000       5.0000    
     3 'Normalizat'    .77628       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0237       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6399.864     FROM MIGRAD    STATUS=FAILED       104 CALLS      289 TOTAL
                     EDM=   .19E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1519        13310.        .43602E-04    .36503E-05
   2  alpha         2.5982        3.2370        .50000        .22379E-04
   3  Normalizat    .77628        .47181E-01    .28931E-03    .68375E-04
   4  Prefactor     1.0237        .41944E-01    .22112E-03   -.54807E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6399.864     FROM SIMPLEX   STATUS=UNCHANGED    104 CALLS      393 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1519        13310.        .76271E-04    .36503E-05
   2  alpha         2.5982        3.2370        .69913E-02    .22379E-04
   3  Normalizat    .77628        .47181E-01    .10324E-03    .68375E-04
   4  Prefactor     1.0237        .41944E-01    .54450E-04   -.54807E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6399.864     FROM MIGRAD    STATUS=CONVERGED     32 CALLS      425 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1519        33685.        .17441E-05    .18239E-04
   2  alpha         2.5982        3.6509        .16049        .35019E-05
   3  Normalizat    .77628        .16960        .11572E-04    .68768E-04
   4  Prefactor     1.0237        .15824        .88449E-05   -.53984E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.15194
  alpha      = 2.59817
  Normalizat = 0.77628
  Prefactor  = 1.02372
 **********
 **   18 **HESSE 
 **********

 FCN=   6399.864     FROM HESSE     STATUS=OK            25 CALLS      450 TOTAL
                     EDM=   .78E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1519        156.36        .37400E-06   -1.5686    
   2  alpha         2.5982        3.3642        .64196E-02    .39279E-01
   3  Normalizat    .77628        .22095        .23145E-05   -1.0095    
   4  Prefactor     1.0237        .19256        .17690E-05   -.91943    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.82491e-11
Minuit parameter uncertainties:
  1  26.842
  2  6.17161
  3  0.221208
  4  0.192691
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/81663': 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) = 6399.86422181
delta logL = 0.000971959862909

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.152e+00  2.684e+01  0.000e+00  1.000e+06 ( 1.000e-13)
325        alpha:  2.598e+00  6.172e+00  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  2.518e-01  0.000e+00 -5.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:  1.024e+00  1.927e-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:  7.763e-01  2.212e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/81663/cmap_HighResolution_693187201_693446401_4FGL_J1639.2+4129_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.42e-05', job_status='DONE', photon_flux_upper_limit='5.51e-08', time_completed='2022-12-23 01:10:57.205328', job_id='81663', GAL2='1.02', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1671786657.21', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='9.72e-04', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1751' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 01:10:57 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 81663: <4FGL_J1639.2+4129_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:55:26 2022
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:55:28 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:55:28 2022
Terminated at Fri Dec 23 01:10:58 2022
Results reported at Fri Dec 23 01:10:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1751 249.824 41.4964 693187201 693446401 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 :                                   737.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             283.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   929 sec.
    Turnaround time :                            932 sec.

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

