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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1765
RA = 249.824, Dec = 41.4964
tmin = 696816001, tmax = 697075201
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='640007', job_status='RUN', time_executed='2023-02-03 01:17:05.817883', time_epoch_executed='1675415825.82' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1765'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640007

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640007/ft1_4FGL_J1639.2+4129_daily_bin1765.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640007/ft1_4FGL_J1639.2+4129_daily_bin1765.fits outfile=/scratch/kocevski/640007/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1765.fits ra=249.824 dec=41.4964 rad=12.0 tmin=696816001.0 tmax=697075201.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.73
user 3.46
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.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/640007/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1765.fits evtable="EVENTS" outfile="/scratch/kocevski/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.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.51
user 0.35
sys 0.16

Number of photons that the gtmktime cut: 705

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits" evtable="EVENTS" scfile=/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits sctable="SC_DATA" outfile=/scratch/kocevski/640007/ltcube_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.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/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits
.....................!
real 15.34
user 14.77
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits evtable="EVENTS" scfile=/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits sctable="SC_DATA" expcube=/scratch/kocevski/640007/ltcube_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits outfile=/scratch/kocevski/640007/expmap_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.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/640007/ltcube_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits
.....................!
real 195.64
user 186.78
sys 5.61

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/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits scfile=/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits outfile=/scratch/kocevski/640007/cmap_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.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.56
user 0.40
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits scfile=/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits outfile=/scratch/kocevski/640007/cmap_HighResolution_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.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.56
user 0.38
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits', '/scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits', expMap='/scratch/kocevski/640007/expmap_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits', expCube='/scratch/kocevski/640007/ltcube_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640007/Model_4FGL_J1639.2+4129_daily_bin1765.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/640007/ft1_filtered_4FGL_J1639.2+4129_daily_bin1765.fits
Spacecraft file(s): /scratch/kocevski/640007/ft2_4FGL_J1639.2+4129_daily_bin1765.fits
Exposure map: /scratch/kocevski/640007/expmap_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits
Exposure cube: /scratch/kocevski/640007/ltcube_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640007/Model_4FGL_J1639.2+4129_daily_bin1765.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) = 7503.68446074

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12947E-03   1.0000          .0000       .10000E+07
     2 'Prefactor '    32.086       1.0000          .0000       .10000E+07
     3 'Prefactor '    1.3603       1.0000          .0000       .10000E+07
     4 'Prefactor '    2.7449       1.0000          .0000       .10000E+07
     5 'Prefactor '    .12507E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .42213       1.0000          .0000       .10000E+07
     7 'Prefactor '    3.5450       1.0000          .0000       .10000E+07
     8 'norm      '    .19363E-02   1.0000          .0000       .10000E+07
     9 'norm      '    .18884       1.0000          .0000       .10000E+07
    10 'norm      '    27.042       1.0000          .0000       .10000E+07
    11 'Prefactor '    11.978       1.0000          .0000       .10000E+07
    12 'Prefactor '    4.7363       1.0000          .0000       .10000E+07
    13 'norm      '    .38438E-04   1.0000          .0000       .10000E+07
    14 'Prefactor '    .23430       1.0000          .0000       .10000E+07
    15 'Prefactor '    1.2237       1.0000          .0000       .10000E+07
    16 'Prefactor '    3.4079       1.0000          .0000       .10000E+07
    17 'Prefactor '    2.4100       1.0000          .0000       .10000E+07
    18 'Prefactor '    6.7057       1.0000          .0000       .10000E+07
    19 'norm      '    3.6418       1.0000          .0000       .10000E+07
    20 'norm      '    .20650E-07   1.0000          .0000       .10000E+07
    21 'Prefactor '    4.4823       1.0000          .0000       .10000E+07
    22 'norm      '    .16669       1.0000          .0000       .10000E+07
    23 'norm      '    10.212       1.0000          .0000       .10000E+07
    24 'norm      '    4.8155       1.0000          .0000       .10000E+07
    25 'norm      '    5.6973       1.0000          .0000       .10000E+07
    26 'Prefactor '    .29781       1.0000          .0000       .10000E+07
    27 'Normalizat'    1.0146       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82538       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=   7503.682     FROM MIGRAD    STATUS=CONVERGED    164 CALLS     2544 TOTAL
                     EDM=   .27E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    10.986       -.10198E-06** at limit **
   2  Prefactor     32.187        2.0203       -.14403E-07   -.95323E-01
   3  Prefactor     1.3590        1.8211       -.13418E-08   -.25772E-03
   4  Prefactor     2.7560        3.5245       -.20585E-06   -.40312E-02
   5  Prefactor     .49516E-07    75.303        .40889E-05** at limit **
   6  Prefactor     .38644        15.741       -.25484E-06    .15065E-02
   7  Prefactor     3.5383        3.5729        .82156E-07    .94719E-04
   8  norm          .11713E-07    12.253       -.88141E-06** at limit **
   9  norm          .18890        .12104        .68888E-07** at limit **
  10  norm          27.045        1.0207        .17314E-08   -.50773E-02
  11  Prefactor     11.989        1.1937        .27781E-07   -.23542E-02
  12  Prefactor     4.7861        3.9965       -.14087E-06   -.17307E-02
  13  norm          .22204E-09    20.015        .38779E-06** at limit **
  14  Prefactor     .22261        2.9230       -.37502E-06** at limit **
  15  Prefactor     1.2330        1.4998        .27556E-07   -.28254E-03
  16  Prefactor     3.4093        2.3155        .13786E-06    .22357E-03
  17  Prefactor     2.3934        3.0198       -.85675E-07   -.37204E-04
  18  Prefactor     6.5773        9.6899       -.29257E-06   -.57904E-02
  19  norm          3.6419        1.5730       -.42808E-07   -.10285E-02
  20  norm           .0000        .18937        .39527E-07** at limit **
  21  Prefactor     4.4386        5.9471        .16107E-06   -.18091E-03
  22  norm          .16826        .55300       -.12066E-06** at limit **
  23  norm          10.026        9.4288        .34832E-06    .44257E-02
  24  norm          4.8181        1.8606        .41309E-07    .30295E-03
  25  norm          5.7396        5.5153       -.14551E-06   -.13558E-02
  26  Prefactor     .14500E-05    4.2732       -.35409E-06** at limit **
  27  Normalizat    1.0153        .22086        .70546E-06    .88882E-04
  28  Prefactor     .82535        .17649       -.30217E-06    .50224E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Prefactor  = 32.1868
  Prefactor  = 1.35897
  Prefactor  = 2.75597
  Prefactor  = 4.95159e-08
  Prefactor  = 0.386437
  Prefactor  = 3.53826
  norm       = 1.17129e-08
  norm       = 0.188905
  norm       = 27.045
  Prefactor  = 11.9894
  Prefactor  = 4.78608
  norm       = 2.22045e-10
  Prefactor  = 0.222609
  Prefactor  = 1.23296
  Prefactor  = 3.40926
  Prefactor  = 2.3934
  Prefactor  = 6.57731
  norm       = 3.64189
  norm       = 0
  Prefactor  = 4.43857
  norm       = 0.168257
  norm       = 10.0264
  norm       = 4.81808
  norm       = 5.73963
  Prefactor  = 1.44995e-06
  Normalizat = 1.01532
  Prefactor  = 0.825346
 **********
 **   18 **HESSE 
 **********

 FCN=   7503.682     FROM HESSE     STATUS=OK           595 CALLS     3139 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    11.039        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.187        58.397        .17656E-03   -1.5594    
   3  Prefactor     1.3590        1.8653        .93609E-03   -1.5685    
   4  Prefactor     2.7560        3.6067        .61423E-03   -1.5675    
   5  Prefactor     .49516E-07    76.692        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .38644        4.4926        .57815E-02   -1.5696    
   7  Prefactor     3.5383        3.8324        .53660E-03   -1.5670    
   8  norm          .11713E-07    12.966        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .18890        .14663        .49054E-03   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          27.045        17.017        .19234E-03   -1.5604    
  11  Prefactor     11.989        18.441        .28920E-03   -1.5639    
  12  Prefactor     4.7861        4.0798        .46211E-03   -1.5664    
  13  norm          .22204E-09    20.184        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .22261        3.0880        .23682E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2330        1.8721        .10182E-02   -1.5686    
  16  Prefactor     3.4093        2.3324        .54776E-03   -1.5671    
  17  Prefactor     2.3934        3.1250        .65918E-03   -1.5677    
  18  Prefactor     6.5773        9.7541        .38726E-03   -1.5657    
  19  norm          3.6419        1.5782        .52912E-03   -1.5670    
  20  norm           .0000        .18897        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     4.4386        6.1961        .47534E-03   -1.5666    
  22  norm          .16826        .57608        .12401E-02   -1.5700    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          10.026        9.4950        .31331E-03   -1.5645    
  24  norm          4.8181        1.8717        .45821E-03   -1.5664    
  25  norm          5.7396        5.5632        .42059E-03   -1.5660    
  26  Prefactor     .14500E-05    72.502        .10243E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.0153        .35367        .44311E-01   -2.2164    
  28  Prefactor     .82535        .27097        .44047E-01   -2.1536    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12102e-06
Minuit parameter uncertainties:
  1  4.05874e-05
  2  58.3977
  3  1.86527
  4  3.60673
  5  0.00389663
  6  2.63524
  7  3.83241
  8  0.000779791
  9  0.146627
  10  17.0172
  11  18.4409
  12  4.07979
  13  0.000137216
  14  1.65822
  15  1.87212
  16  2.33236
  17  3.12497
  18  9.75409
  19  1.57817
  20  1.59257e-07
  21  6.19607
  22  0.57608
  23  9.49505
  24  1.87171
  25  5.56321
  26  0.0205063
  27  0.354492
  28  0.271413
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  2.220e-10  1.372e-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:  8.253e-01  2.714e-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:  1.015e+00  3.545e-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: 4.21e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.85e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640007/likelihoodResults_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.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) = 7503.70568314
delta logL = -0.0237736791514

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7502.82418249
delta logL = 0.857726973075

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5191       1.0000          .0000       .10000E+07
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .92720       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87387       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.

 FCN=   7502.824     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      226 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.5184        51.336        .86667E-03    .84173E-02
   2  alpha         5.0000        3.1886        .46380    ** at limit **
   3  Normalizat    .92762        .17334        .45248E-01   -.47403E-05
   4  Prefactor     .87367        .11905        .44671E-01   -.81002E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.51841
  alpha      = 5
  Normalizat = 0.927617
  Prefactor  = 0.87367
 **********
 **   18 **HESSE 
 **********

 FCN=   7502.824     FROM HESSE     STATUS=OK            35 CALLS      261 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5184        1.4510        .84078E-05   -1.5683    
   2  alpha         5.0000        .99467        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .92762        .21089        .26314E-03   -.95496    
   4  Prefactor     .87367        .17612        .23310E-03   -.97067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39945e-12
Minuit parameter uncertainties:
  1  1.451
  2  1.42771e-06
  3  0.211082
  4  0.176234
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640007': 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) = 7502.82417917
delta logL = 0.857730290711

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.518e+00  1.451e+00  0.000e+00  1.000e+06 ( 1.000e-13)
325        alpha:  5.000e+00  1.428e-06  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:  8.737e-01  1.762e-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.276e-01  2.111e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.86
Ra Dec: 249.824 41.496
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 6.79e-08 +/- 6.47e-08
Energy Flux (Free Index): 9.75e-06 +/- 9.31e-06

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/640007/cmap_HighResolution_696816001_697075201_4FGL_J1639.2+4129_daily_bin1765.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.85e-05', comment='SUCCESS', energy_flux2='9.75e-06', dlogl='8.58e-01', photon_flux2='6.79e-08', job_status='DONE', time_completed='2023-02-03 01:31:23.817902', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='4.21e-08', energy_flux_error2='9.31e-06', EG='1.02', time_epoch_completed='1675416683.82', return_code='0', job_id='640007', GAL2='0.87', EG2='0.93', return_code2='0', photon_flux_error2='6.47e-08', ts2='1.86', photon_index='2.19' WHERE bin_id='1765' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Feb  3 01:31:23 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 640007: <4FGL_J1639.2+4129_daily_bin1765> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1765> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Feb  3 01:15:17 2023
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Feb  3 01:15:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Feb  3 01:15:46 2023
Terminated at Fri Feb  3 01:31:24 2023
Results reported at Fri Feb  3 01:31:24 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1765 249.824 41.4964 696816001 697075201 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 :                                   853.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             339.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            967 sec.

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

