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


Performing analysis on: 4FGL_J1642.9+3948_daily_bin1712
RA = 250.734, Dec = 39.8164
tmin = 683078401, tmax = 683337601
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='171516', job_status='RUN', time_executed='2022-09-16 19:41:56.696257', time_epoch_executed='1663382516.7' WHERE source_name='4FGL J1642.9+3948' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171516

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171516/ft1_4FGL_J1642.9+3948_daily_bin1712.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171516/ft1_4FGL_J1642.9+3948_daily_bin1712.fits outfile=/scratch/kocevski/171516/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1712.fits ra=250.734 dec=39.8164 rad=12.0 tmin=683078401.0 tmax=683337601.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 4.78
user 4.52
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.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/171516/ft1_filteredMKT_4FGL_J1642.9+3948_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.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.52
user 0.35
sys 0.14

Number of photons that the gtmktime cut: 763

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/171516/ltcube_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.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/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits
.....................!
real 15.02
user 14.55
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/171516/ltcube_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits outfile=/scratch/kocevski/171516/expmap_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.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/171516/ltcube_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits
.....................!
real 192.61
user 187.51
sys 4.37

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

Setting source of interest to:
4FGL J1642.9+3948 @ 250.734 39.8164

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits outfile=/scratch/kocevski/171516/cmap_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.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=250.734 yref=39.8164 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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits outfile=/scratch/kocevski/171516/cmap_HighResolution_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.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=250.734 yref=39.8164 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.58
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171516/Model_4FGL_J1642.9+3948_daily_bin1712.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/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits.....................!
real 62.41
user 61.11
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits', '/scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits', expMap='/scratch/kocevski/171516/expmap_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits', expCube='/scratch/kocevski/171516/ltcube_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/171516/Model_4FGL_J1642.9+3948_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1642.9+3948'

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.494e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/171516/ft1_filtered_4FGL_J1642.9+3948_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/171516/ft2_4FGL_J1642.9+3948_daily_bin1712.fits
Exposure map: /scratch/kocevski/171516/expmap_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits
Exposure cube: /scratch/kocevski/171516/ltcube_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/171516/Model_4FGL_J1642.9+3948_daily_bin1712.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) = 8011.59459294

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .49029E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    38.882       1.0000          .0000       .10000E+07
     3 'Prefactor '    .49177E-06   1.0000          .0000       .10000E+07
     4 'Prefactor '    .16892E-02   1.0000          .0000       .10000E+07
     5 'Prefactor '    .51303E-01   1.0000          .0000       .10000E+07
     6 'Prefactor '    2.1843       1.0000          .0000       .10000E+07
     7 'norm      '    .27854E-01   1.0000          .0000       .10000E+07
     8 'norm      '    9.6183       1.0000          .0000       .10000E+07
     9 'Prefactor '    .63451E-03   1.0000          .0000       .10000E+07
    10 'Prefactor '    5.1096       1.0000          .0000       .10000E+07
    11 'norm      '    41.083       1.0000          .0000       .10000E+07
    12 'Prefactor '    .22294E-03   1.0000          .0000       .10000E+07
    13 'Prefactor '    9.0373       1.0000          .0000       .10000E+07
    14 'Prefactor '    1.3513       1.0000          .0000       .10000E+07
    15 'Prefactor '    .54123E-07   1.0000          .0000       .10000E+07
    16 'norm      '    3.7696       1.0000          .0000       .10000E+07
    17 'norm      '    .35863       1.0000          .0000       .10000E+07
    18 'Prefactor '    .11484E-04   1.0000          .0000       .10000E+07
    19 'norm      '    .96922E-07   1.0000          .0000       .10000E+07
    20 'norm      '    4.0281       1.0000          .0000       .10000E+07
    21 'norm      '    4.8789       1.0000          .0000       .10000E+07
    22 'norm      '    13.820       1.0000          .0000       .10000E+07
    23 'Prefactor '    65.721       1.0000          .0000       .10000E+07
    24 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .84378       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8011.592     FROM MIGRAD    STATUS=CONVERGED    147 CALLS     2145 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .48850E-08    7.5360       -.26545E-06** at limit **
   2  Prefactor     38.850        1.2389       -.99075E-08    .13562    
   3  Prefactor      .0000        1.1176        .22027E-07** at limit **
   4  Prefactor     .94369E-09    5.1378       -.51113E-07** at limit **
   5  Prefactor     .12290E-06    4.0750       -.11925E-06** at limit **
   6  Prefactor     2.1845        2.5406        .10621E-06    .29942E-02
   7  norm          .27899E-01    .77212E-01    .73432E-08** at limit **
   8  norm          9.6197        1.0027       -.36803E-09    .42290E-02
   9  Prefactor     .30032E-07    14.729       -.90212E-06** at limit **
  10  Prefactor     5.0994        4.2565        .46540E-07    .43094E-02
  11  norm          41.090        1.5957        .16285E-07   -.22498    
  12  Prefactor     .27756E-09    2.7818        .43271E-08** at limit **
  13  Prefactor     9.0370        1.5399        .57965E-08    .37324E-02
  14  Prefactor     1.3567        3.2954        .19041E-06    .12522E-02
  15  Prefactor      .0000        .89363        .48640E-07** at limit **
  16  norm          3.7702        1.6503       -.11430E-07   -.26877E-02
  17  norm          .35895        .70117       -.10244E-06   -.43737E-02
  18  Prefactor     .55511E-10    1.8470       -.89094E-08** at limit **
  19  norm           .0000        .25015       -.33557E-07** at limit **
  20  norm          4.0708        4.1593        .36843E-07    .36741E-02
  21  norm          4.8786        1.6965        .80933E-07    .10326E-01
  22  norm          13.839        5.7864       -.38519E-07   -.73951E-01
  23  Prefactor     65.697        1.7301       -.13126E-07    .29379    
  24  Normalizat    1.0701        .20420       -.95297E-06    .69043E-04
  25  Prefactor     .84361        .16246        .38029E-06    .54974E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.88498e-09
  Prefactor  = 38.8498
  Prefactor  = 0
  Prefactor  = 9.4369e-10
  Prefactor  = 1.22902e-07
  Prefactor  = 2.18447
  norm       = 0.0278991
  norm       = 9.61965
  Prefactor  = 3.00315e-08
  Prefactor  = 5.0994
  norm       = 41.0901
  Prefactor  = 2.77556e-10
  Prefactor  = 9.03704
  Prefactor  = 1.35671
  Prefactor  = 0
  norm       = 3.77019
  norm       = 0.358947
  Prefactor  = 5.55112e-11
  norm       = 0
  norm       = 4.07084
  norm       = 4.87862
  norm       = 13.8393
  Prefactor  = 65.6966
  Normalizat = 1.0701
  Prefactor  = 0.843607
 **********
 **   18 **HESSE 
 **********

 FCN=   8011.592     FROM HESSE     STATUS=OK           483 CALLS     2628 TOTAL
                     EDM=   .82E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .48850E-08    7.5498        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     38.850        62.906        .16039E-03   -1.5583    
   3  Prefactor      .0000        1.1183        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94369E-09    5.1192        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .12290E-06    27.483        .15489E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.1845        2.5859        .69621E-03   -1.5678    
   7  norm          .27899E-01    .75745E-01    .90248E-03   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          9.6197        9.8870        .32288E-03   -1.5646    
   9  Prefactor     .30032E-07    14.716        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     5.0994        4.2966        .44455E-03   -1.5663    
  11  norm          41.090        41.466        .15603E-03   -1.5580    
  12  Prefactor     .27756E-09    1.2329        .25374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.0370        1.8727        .33316E-03   -1.5648    
  14  Prefactor     1.3567        3.4370        .94067E-03   -1.5685    
  15  Prefactor      .0000        .89447        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7702        1.6556        .51973E-03   -1.5669    
  17  norm          .35895        .74428        .94445E-03   -1.5696    
  18  Prefactor     .55511E-10    1.8464        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm           .0000        .24820        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.0708        4.1695        .50220E-03   -1.5668    
  21  norm          4.8786        1.6942        .45515E-03   -1.5664    
  22  norm          13.839        6.4584        .26918E-03   -1.5634    
  23  Prefactor     65.697        55.288        .12336E-03   -1.5546    
  24  Normalizat    1.0701        .17342        .59474E-01   -.90718    
  25  Prefactor     .84361        .13739        .44284E-01   -.98140    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.19223e-06
Minuit parameter uncertainties:
  1  0.000385052
  2  62.9069
  3  8.82218e-07
  4  0.000138989
  5  0.0036758
  6  2.58586
  7  0.075745
  8  9.88701
  9  0.00133
  10  4.29664
  11  41.4667
  12  3.52844e-05
  13  1.87269
  14  3.437
  15  2.6404e-06
  16  1.65556
  17  0.744278
  18  1.97662e-05
  19  1.30672e-06
  20  4.16947
  21  1.6942
  22  6.45841
  23  55.2884
  24  0.17351
  25  0.137447
Done.

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

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  9.037e+00  1.873e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.402e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  8.436e-01  1.374e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.070e+00  1.735e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 124.52
Ra Dec: 250.734 39.816
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 3.48e-07 +/- 7.21e-08
Energy Flux (Fixed Index): 1.14e-04 +/- 2.36e-05

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) = 8009.70886794
delta logL = 1.88352565418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8009.70816044
delta logL = 1.88423315257

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.501       1.0000          .0000       .10000E+07
     2 'Index     '    2.0986       1.0000          .0000       10.000    
     3 'Normalizat'    1.1285       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80956       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6530E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8009.708     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      212 TOTAL
                     EDM=   .86E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.501        32.579        .27235E-03    .33102E-01
   2  Index         2.0986        1.4553        .50192E-01    .72461E-03
   3  Normalizat    1.1285        .19766        .58234E-01   -.26121E-03
   4  Prefactor     .80957        .13134        .43842E-01    .80513E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.5008
  Index      = 2.09861
  Normalizat = 1.12846
  Prefactor  = 0.809572
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.708     FROM HESSE     STATUS=OK            27 CALLS      239 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.501        3.1713        .53628E-05   -1.5634    
   2  Index         2.0986        .14821        .21825E-03   -.61907    
   3  Normalizat    1.1285        .19767        .25753E-03   -.88843    
   4  Prefactor     .80957        .16141        .24650E-03   -.99376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.44609e-10
Minuit parameter uncertainties:
  1  3.17127
  2  0.148243
  3  0.197797
  4  0.1615
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171516': 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) = 8009.70816044
delta logL = 1.88423315509

Extracting fit parameters...

4FGL J1642.9+3948
   Spectrum: PowerLaw
304    Prefactor:  1.350e+01  3.171e+00  0.000e+00  1.000e+06 ( 1.000e-12)
305        Index:  2.099e+00  1.482e-01  0.000e+00  1.000e+01 (-1.000e+00)
306        Scale:  1.373e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
650    Prefactor:  8.096e-01  1.615e-01  0.000e+00  1.000e+01 ( 1.000e+00)
651        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
652        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
649   Normalization:  1.128e+00  1.978e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 129.00
Ra Dec: 250.734 39.816
Photon Index (Free Index): 2.10 +/- 0.15
Photon Flux (Free Index): 3.00e-07 +/- 5.81e-08
Energy Flux (Free Index): 1.65e-04 +/- 4.69e-05

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/171516/cmap_HighResolution_683078401_683337601_4FGL_J1642.9+3948_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.48e-07', energy_flux2='1.65e-04', photon_flux_error='7.21e-08', dlogl='1.88e+00', energy_flux='1.14e-04', photon_flux2='3.00e-07', job_status='DONE', time_completed='2022-09-16 19:54:11.806429', photon_index_error2='0.15', photon_index2='2.10', ts='124.52', fit_tolerance='1e-08', GAL='0.84', photon_index_error='0.00', energy_flux_error2='4.69e-05', EG='1.07', time_epoch_completed='1663383251.81', return_code='0', job_id='171516', GAL2='0.81', EG2='1.13', return_code2='0', energy_flux_error='2.36e-05', photon_flux_error2='5.81e-08', ts2='129.00', photon_index='2.40' WHERE bin_id='1712' AND source_name='4FGL J1642.9+3948' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 19:54:11 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 171516: <4FGL_J1642.9+3948_daily_bin1712> in cluster <slac> Done

Job <4FGL_J1642.9+3948_daily_bin1712> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 19:40:20 2022
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:41:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 19:41:18 2022
Terminated at Fri Sep 16 19:54:12 2022
Results reported at Fri Sep 16 19:54:12 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1642.9+3948_daily_bin1712 250.734 39.8164 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1642.9+3948 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   735.56 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             321.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   774 sec.
    Turnaround time :                            832 sec.

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

