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


Performing analysis on: 4FGL_J1639.2+4129_daily_bin1663
RA = 249.824, Dec = 41.4964
tmin = 670377601, tmax = 670636801
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='369325', job_status='RUN', time_executed='2022-04-03 08:30:48.520563', time_epoch_executed='1648999848.52' WHERE source_name='4FGL J1639.2+4129' and cadence='daily' and bin_id='1663'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/369325

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/369325/ft1_4FGL_J1639.2+4129_daily_bin1663.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/369325/ft1_4FGL_J1639.2+4129_daily_bin1663.fits outfile=/scratch/kocevski/369325/ft1_filteredMKT_4FGL_J1639.2+4129_daily_bin1663.fits ra=249.824 dec=41.4964 rad=12.0 tmin=670377601.0 tmax=670636801.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.80
user 3.60
sys 0.19

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

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

Number of photons that the gtmktime cut: 658

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/369325/ft1_filtered_4FGL_J1639.2+4129_daily_bin1663.fits" evtable="EVENTS" scfile=/scratch/kocevski/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits sctable="SC_DATA" outfile=/scratch/kocevski/369325/ltcube_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.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/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits
.....................!
real 12.15
user 11.77
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/369325/ft1_filtered_4FGL_J1639.2+4129_daily_bin1663.fits evtable="EVENTS" scfile=/scratch/kocevski/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits sctable="SC_DATA" expcube=/scratch/kocevski/369325/ltcube_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.fits outfile=/scratch/kocevski/369325/expmap_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.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/369325/ltcube_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.fits
.....................!
real 190.23
user 185.25
sys 4.64

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/369325/ft1_filtered_4FGL_J1639.2+4129_daily_bin1663.fits scfile=/scratch/kocevski/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits outfile=/scratch/kocevski/369325/cmap_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.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.61
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/369325/ft1_filtered_4FGL_J1639.2+4129_daily_bin1663.fits scfile=/scratch/kocevski/369325/ft2_4FGL_J1639.2+4129_daily_bin1663.fits outfile=/scratch/kocevski/369325/cmap_HighResolution_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10397E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.3731       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.4044       1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .72734       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   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      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.8380       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.0173       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .93805       1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.8299       1.0000         .10000E-03   10000.    
    19 'norm      '    3.9157       1.0000         .10000E-03   10000.    
    20 'norm      '    .67817E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .46566       1.0000         .10000E-03   10000.    
    22 'norm      '    .12189       1.0000         .10000E-03   10000.    
    23 'norm      '    3.0361       1.0000         .10000E-03   10000.    
    24 'norm      '    7.5022       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    20.297       1.0000         .10000E-03   10000.    
    28 'Normalizat'    1.3254       1.0000         .10000E-01   10.000    
    29 'Prefactor '    .67660       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=   6817.059     FROM MIGRAD    STATUS=CONVERGED    112 CALLS     2584 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.8079       -.52322E-05** at limit **
   2  Prefactor     .10000E-03    164.11       -.12485E-04** at limit **
   3  Prefactor     .10000E-03    1.5010        .13671E-06** at limit **
   4  Prefactor     .10000E-03    1.8414       -.19698E-06** at limit **
   5  Prefactor     .10001E-03    6.1537        .37075E-05** at limit **
   6  Prefactor     1.3719        4.0356       -.18850E-05   -.23199E-02
   7  Prefactor     1.4044        2.5992        .14823E-06    .74918E-04
   8  norm          .10013E-03    12.096       -.11814E-04** at limit **
   9  norm          .72736        .19145        .19947E-07    .34086E-03
  10  norm          .10000E-03    4.5016       -.63886E-06** at limit **
  11  Prefactor     .10002E-03    7.3127       -.21131E-05** at limit **
  12  Prefactor     .10000E-03    1.6927       -.11999E-05** at limit **
  13  norm          .10011E-03    9.3826        .88629E-05** at limit **
  14  Prefactor     .10000E-03    1.7108        .86037E-06** at limit **
  15  Prefactor     8.8388        1.7870        .33925E-07   -.17020E-03
  16  Prefactor     4.0169        2.6688       -.33718E-05   -.61334E-02
  17  Prefactor     .93760        1.5405        .10879E-06   -.16475E-04
  18  Prefactor     6.8299        1.0073       -.11057E-06   -.40188E-03
  19  norm          3.9158        1.7460        .29612E-08   -.39833E-04
  20  norm          .67949E-01    .43820        .27317E-05    .24822E-02
  21  Prefactor     .46715        .76515        .22827E-06    .13500E-03
  22  norm          .12193        .43357       -.14104E-07    .75406E-04
  23  norm          3.0372        1.0171        .66517E-07    .12795E-03
  24  norm          7.5022        2.2256       -.79923E-07   -.26723E-03
  25  Prefactor     .10002E-03    19.266        .38648E-05** at limit **
  26  norm          .10000E-03    1.4446        .22308E-07** at limit **
  27  Prefactor     20.304        1.5586        .45600E-06   -.17950E-02
  28  Normalizat    1.3255        .22741        .14097E-05    .12261E-03
  29  Prefactor     .67652        .18496       -.30651E-06    .92853E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 1.37191
  Prefactor  = 1.40437
  norm       = 0.000100127
  norm       = 0.72736
  norm       = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  norm       = 0.00010011
  Prefactor  = 0.0001
  Prefactor  = 8.83879
  Prefactor  = 4.01689
  Prefactor  = 0.9376
  Prefactor  = 6.82991
  norm       = 3.9158
  norm       = 0.0679488
  Prefactor  = 0.467147
  norm       = 0.121925
  norm       = 3.03722
  norm       = 7.50219
  Prefactor  = 0.000100024
  norm       = 0.0001
  Prefactor  = 20.3043
  Normalizat = 1.32553
  Prefactor  = 0.67652
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.059     FROM HESSE     STATUS=OK           633 CALLS     3217 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    8.1515        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    163.41        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.4787        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1.8391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    7.8016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.3719        4.4697        .92977E-02   -1.5474    
   7  Prefactor     1.4044        2.6858        .91479E-02   -1.5471    
   8  norm          .10013E-03    14.935        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .72736        .19241        .38883E-02   -1.5537    
  10  norm          .10000E-03    4.5016        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    9.1927        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6825        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10011E-03    12.076        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.0663        .24620E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     8.8388        1.9699        .33707E-02   -1.5113    
  16  Prefactor     4.0169        3.5130        .50300E-02   -1.5307    
  17  Prefactor     .93760        1.9504        .30277E-01   -1.5514    
  18  Prefactor     6.8299        7.6230        .38381E-02   -1.5185    
  19  norm          3.9158        1.7476        .50970E-02   -1.5312    
  20  norm          .67949E-01    .65828        .20164E-01   -1.5656    
  21  Prefactor     .46715        3.8368        .83628E-01   -1.5571    
  22  norm          .12193        .38233        .23048E-01   -1.5638    
  23  norm          3.0372        8.3146        .58218E-02   -1.5359    
  24  norm          7.5022        2.2556        .36605E-02   -1.5160    
  25  Prefactor     .10002E-03    19.764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .10000E-03    1.4434        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     20.304        48.813        .22226E-02   -1.4806    
  28  Normalizat    1.3255        .19225        .55859E-01   -.82808    
  29  Prefactor     .67652        .15491        .62582E-01   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.42585e-08
Minuit parameter uncertainties:
  1  8.68198e-05
  2  0.0015262
  3  3.46109e-06
  4  4.02831e-06
  5  0.000402926
  6  4.47075
  7  2.68602
  8  0.00275596
  9  0.19241
  10  5.79305e-06
  11  0.000927162
  12  2.60755e-05
  13  0.00230366
  14  2.93368e-05
  15  1.96991
  16  3.51317
  17  1.95049
  18  7.62404
  19  1.74759
  20  0.42268
  21  2.67751
  22  0.382338
  23  8.31777
  24  2.25561
  25  0.00138883
  26  9.11127e-08
  27  48.9092
  28  0.192349
  29  0.155012
Done.

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

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.001e-04  2.304e-03  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:  6.765e-01  1.550e-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.326e+00  1.923e-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.56e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/369325/likelihoodResults_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.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) = 6817.05905605
delta logL = -0.000389773396819

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6817.05866626
delta logL = 1.75014065462e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1828       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67652       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=   6817.059     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      246 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    486.33        .18142E-01** at limit **
   2  alpha         1.7539        3.3734        .16631       -.45116E-08
   3  Normalizat    1.3255        .29570E-01    .24700E-03    .66095E-04
   4  Prefactor     .67652        .24616E-01    .27685E-03    .59871E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.75393
  Normalizat = 1.32553
  Prefactor  = 0.67652
 **********
 **   18 **HESSE 
 **********

 FCN=   6817.059     FROM HESSE     STATUS=OK            23 CALLS      269 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    13.194        .29208E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7539        2.6562        .66525E-02   -.30305    
   3  Normalizat    1.3255        .22055        .98800E-05   -.82808    
   4  Prefactor     .67652        .18357        .11074E-04   -1.0445    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4359e-10
Minuit parameter uncertainties:
  1  0.00030676
  2  530.456
  3  0.220705
  4  0.183735
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/369325': 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) = 6817.05866594
delta logL = 3.34081960318e-07

Extracting fit parameters...

4FGL J1639.2+4129
   Spectrum: LogParabola
324         norm:  1.000e-04  3.068e-04  1.000e-04  1.000e+04 ( 1.000e-13)
325        alpha:  1.754e+00  5.305e+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:  6.765e-01  1.837e-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.326e+00  2.207e-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/369325/cmap_HighResolution_670377601_670636801_4FGL_J1639.2+4129_daily_bin1663.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.57e-05', job_status='DONE', photon_flux_upper_limit='3.56e-08', time_completed='2022-04-03 08:45:25.062545', job_id='369325', GAL2='0.68', fit_tolerance='1e-08', EG2='1.33', EG='1.33', time_epoch_completed='1649000725.06', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1663' AND source_name='4FGL J1639.2+4129' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Apr  3 08:45:25 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 369325: <4FGL_J1639.2+4129_daily_bin1663> in cluster <slac> Done

Job <4FGL_J1639.2+4129_daily_bin1663> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Apr  3 08:30:14 2022
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Apr  3 08:30:16 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Apr  3 08:30:16 2022
Terminated at Sun Apr  3 08:45:25 2022
Results reported at Sun Apr  3 08:45:25 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1639.2+4129_daily_bin1663 249.824 41.4964 670377601 670636801 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 :                                   878.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             341.39 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

