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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1708
RA = 253.474, Dec = 39.7595
tmin = 682041601, tmax = 682300801
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='175487', job_status='RUN', time_executed='2022-09-16 19:58:13.980269', time_epoch_executed='1663383493.98' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1708'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175487/ft1_4FGL_J1653.8+3945_daily_bin1708.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175487/ft1_4FGL_J1653.8+3945_daily_bin1708.fits outfile=/scratch/kocevski/175487/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1708.fits ra=253.474 dec=39.7595 rad=12.0 tmin=682041601.0 tmax=682300801.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.05
user 3.78
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.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/175487/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1708.fits evtable="EVENTS" outfile="/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.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.33
sys 0.17

Number of photons that the gtmktime cut: 683

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits" evtable="EVENTS" scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits sctable="SC_DATA" outfile=/scratch/kocevski/175487/ltcube_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.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/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits
.....................!
real 14.16
user 13.64
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits sctable="SC_DATA" expcube=/scratch/kocevski/175487/ltcube_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits outfile=/scratch/kocevski/175487/expmap_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.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/175487/ltcube_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits
.....................!
real 194.74
user 188.78
sys 5.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 204 point sources and 0 extended sources

Setting source of interest to:
4FGL J1653.8+3945 @ 253.474 39.7595

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits outfile=/scratch/kocevski/175487/cmap_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.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=253.474 yref=39.7595 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.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits outfile=/scratch/kocevski/175487/cmap_HighResolution_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.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=253.474 yref=39.7595 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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits evtable="EVENTS" scfile=/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175487/Model_4FGL_J1653.8+3945_daily_bin1708.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/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits.....................!
real 60.59
user 58.98
sys 1.36

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits', '/scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits', expMap='/scratch/kocevski/175487/expmap_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits', expCube='/scratch/kocevski/175487/ltcube_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175487/Model_4FGL_J1653.8+3945_daily_bin1708.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1653.8+3945'

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  4.183e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/175487/ft1_filtered_4FGL_J1653.8+3945_daily_bin1708.fits
Spacecraft file(s): /scratch/kocevski/175487/ft2_4FGL_J1653.8+3945_daily_bin1708.fits
Exposure map: /scratch/kocevski/175487/expmap_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits
Exposure cube: /scratch/kocevski/175487/ltcube_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175487/Model_4FGL_J1653.8+3945_daily_bin1708.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 7453.98897864

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5305       1.0000          .0000       .10000E+07
     2 'Prefactor '    .64948E-08   1.0000          .0000       .10000E+07
     3 'Prefactor '    .64281E-04   1.0000          .0000       .10000E+07
     4 'Prefactor '    .74796       1.0000          .0000       .10000E+07
     5 'norm      '    .37052       1.0000          .0000       .10000E+07
     6 'norm      '    13.197       1.0000          .0000       .10000E+07
     7 'Prefactor '    .46963E-03   1.0000          .0000       .10000E+07
     8 'Prefactor '    .94230E-06   1.0000          .0000       .10000E+07
     9 'norm      '    .19420E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    .52683E-05   1.0000          .0000       .10000E+07
    11 'Prefactor '    13.214       1.0000          .0000       .10000E+07
    12 'Prefactor '    5.0339       1.0000          .0000       .10000E+07
    13 'Prefactor '    .16687E-06   1.0000          .0000       .10000E+07
    14 'norm      '    1.9304       1.0000          .0000       .10000E+07
    15 'norm      '    .10736E-06   1.0000          .0000       .10000E+07
    16 'Prefactor '    13.422       1.0000          .0000       .10000E+07
    17 'norm      '    .93814E-08   1.0000          .0000       .10000E+07
    18 'norm      '    .34553E-05   1.0000          .0000       .10000E+07
    19 'norm      '    .85415       1.0000          .0000       .10000E+07
    20 'norm      '    .31092E-06   1.0000          .0000       .10000E+07
    21 'Prefactor '    121.54       1.0000          .0000       .10000E+07
    22 'Prefactor '    4.6184       1.0000          .0000       .10000E+07
    23 'Prefactor '    3.1885       1.0000          .0000       .10000E+07
    24 'Prefactor '    .34736E-05   1.0000          .0000       .10000E+07
    25 'Normalizat'    1.2096       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .77795       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7450.073     FROM MIGRAD    STATUS=CONVERGED    196 CALLS     1411 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5049        4.2194       -.10474E-06   -.13738E-02
   2  Prefactor     .16653E-09    1.6450       -.11308E-06** at limit **
   3  Prefactor     .44409E-09    5.2688       -.31102E-06** at limit **
   4  Prefactor     .74058        2.7655        .11291E-07    .19580E-02
   5  norm          .37007        .18044       -.18426E-07   -.13311E-01
   6  norm          12.962        12.328        .13663E-06   -.23096E-03
   7  Prefactor     .27756E-09    11.173       -.78511E-06** at limit **
   8  Prefactor     .24425E-06    2.1157       -.15818E-06** at limit **
   9  norm          .55511E-10    26.813       -.17838E-05** at limit **
  10  Prefactor      .0000        1.0650        .12085E-06** at limit **
  11  Prefactor     13.210        2.2264        .38132E-07   -.23844E-02
  12  Prefactor     5.0228        3.3773       -.38879E-07   -.25604E-02
  13  Prefactor     .12212E-08    2.4358        .51822E-07** at limit **
  14  norm          1.9290        1.5739       -.88177E-07   -.41242E-02
  15  norm           .0000        .33492        .12952E-08** at limit **
  16  Prefactor     13.350        6.8034        .15142E-06    .10604    
  17  norm           .0000        .25674       -.28275E-07** at limit **
  18  norm          .76605E-07    2.9295        .10057E-06** at limit **
  19  norm          .86375        2.0478       -.57492E-07   -.41746E-02
  20  norm          .11102E-09    2.1558        .98288E-07** at limit **
  21  Prefactor     121.51        16.348       -.51267E-06   -.29380    
  22  Prefactor     .21266E-04    487.66       -.52592E-05** at limit **
  23  Prefactor     .19253E-03    1119.4        .21890E-04** at limit **
  24  Prefactor     .55511E-08    3.2255       -.69681E-07** at limit **
  25  Normalizat    1.2117        .25484       -.71383E-05   -.13611E-05
  26  Prefactor     .77833        .17954        .19122E-05    .35647E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.50489
  Prefactor  = 1.66533e-10
  Prefactor  = 4.44089e-10
  Prefactor  = 0.740579
  norm       = 0.370071
  norm       = 12.9623
  Prefactor  = 2.77556e-10
  Prefactor  = 2.44249e-07
  norm       = 5.55112e-11
  Prefactor  = 0
  Prefactor  = 13.2096
  Prefactor  = 5.02277
  Prefactor  = 1.22125e-09
  norm       = 1.929
  norm       = 0
  Prefactor  = 13.3503
  norm       = 0
  norm       = 7.66054e-08
  norm       = 0.863751
  norm       = 1.11022e-10
  Prefactor  = 121.515
  Prefactor  = 2.12657e-05
  Prefactor  = 0.000192535
  Prefactor  = 5.55112e-09
  Normalizat = 1.21168
  Prefactor  = 0.778332
 **********
 **   18 **HESSE 
 **********

 FCN=   7450.073     FROM HESSE     STATUS=OK           504 CALLS     1915 TOTAL
                     EDM=   .49E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5049        4.2425        .47274E-03   -1.5666    
   2  Prefactor     .16653E-09    1.6466        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .44409E-09    5.2806        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74058        2.7826        .56897E-03   -1.5691    
   5  norm          .37007        .18459        .52933E-03   -1.5696    
   6  norm          12.962        12.330        .27548E-03   -1.5636    
   7  Prefactor     .27756E-09    11.191        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .24425E-06    3.5561        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .55511E-10    26.896        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor      .0000        1.0652        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     13.210        2.2365        .27530E-03   -1.5635    
  12  Prefactor     5.0228        3.3780        .44794E-03   -1.5663    
  13  Prefactor     .12212E-08    2.4237        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.9290        1.5757        .74726E-03   -1.5680    
  15  norm           .0000        .33354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     13.350        8.9847        .27315E-03   -1.5635    
  17  norm           .0000        .25525        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .76605E-07    3.3807        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .86375        2.0763        .48983E-03   -1.5689    
  20  norm          .11102E-09    2.1576        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     121.51        72.990        .90714E-04   -1.5487    
  22  Prefactor     .21266E-04    495.83        .46811E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .19253E-03    1133.0        .56723E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .55511E-08    3.2601        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2117        .21041        .63093E-01   -.86243    
  26  Prefactor     .77833        .14827        .43430E-01   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.93081e-06
Minuit parameter uncertainties:
  1  4.24253
  2  3.527e-05
  3  9.95634e-05
  4  2.78258
  5  0.184593
  6  12.3302
  7  0.000106167
  8  0.00186402
  9  9.13643e-05
  10  3.75177e-06
  11  2.23648
  12  3.378
  13  0.000108255
  14  1.57572
  15  3.34341e-07
  16  8.98472
  17  1.31576e-06
  18  0.00101768
  19  2.07629
  20  3.25221e-05
  21  72.9907
  22  0.205386
  23  0.93431
  24  0.000269384
  25  0.210557
  26  0.148347
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.929e+00  1.576e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  1.721e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.783e-01  1.483e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.212e+00  2.106e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.64
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 2.59e-08 +/- 2.11e-08
Energy Flux (Fixed Index): 3.73e-05 +/- 3.04e-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) = 7449.87496078
delta logL = 0.198010016581

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7449.87277872
delta logL = 0.200192075849

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9652       1.0000          .0000       .10000E+07
     2 'alpha     '    2.1095       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1947       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6620E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7449.873     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      254 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9652        1.5771        .42801E-04   -.21481E-02
   2  alpha         2.1095        .61376        .15222E-01    .19769E-03
   3  Normalizat    1.1947        .23729        .28049E-03   -.13578E-04
   4  Prefactor     .78401        .17664        .25298E-03    .76846E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.96524
  alpha      = 2.1095
  Normalizat = 1.19467
  Prefactor  = 0.784008
 **********
 **   18 **HESSE 
 **********

 FCN=   7449.873     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .80E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9652        1.5396        .17120E-05   -1.5680    
   2  alpha         2.1095        .59928        .30444E-02   -.15684    
   3  Normalizat    1.1947        .23739        .11220E-04   -.86768    
   4  Prefactor     .78401        .17677        .10119E-04   -1.0032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03469e-12
Minuit parameter uncertainties:
  1  1.53964
  2  0.605328
  3  0.237604
  4  0.1769
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175487': 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) = 7449.87277871
delta logL = 0.20019207675

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  1.965e+00  1.540e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.109e+00  6.053e-01  0.000e+00  5.000e+00 ( 1.000e+00)
324         beta:  1.993e-02  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
325           Eb:  1.486e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
659    Prefactor:  7.840e-01  1.769e-01  0.000e+00  1.000e+01 ( 1.000e+00)
660        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
661        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
658   Normalization:  1.195e+00  2.376e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.06
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.11 +/- 0.61
Photon Flux (Free Index): 4.86e-08 +/- 5.25e-08
Energy Flux (Free Index): 2.62e-05 +/- 2.22e-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/175487/cmap_HighResolution_682041601_682300801_4FGL_J1653.8+3945_daily_bin1708.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.59e-08', energy_flux2='2.62e-05', photon_flux_error='2.11e-08', dlogl='2.00e-01', energy_flux='3.73e-05', photon_flux2='4.86e-08', job_status='DONE', time_completed='2022-09-16 20:08:42.343609', photon_index_error2='0.61', photon_index2='2.11', ts='5.64', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', energy_flux_error2='2.22e-05', EG='1.21', time_epoch_completed='1663384122.34', return_code='0', job_id='175487', GAL2='0.78', EG2='1.19', return_code2='0', energy_flux_error='3.04e-05', photon_flux_error2='5.25e-08', ts2='6.06', photon_index='1.72' WHERE bin_id='1708' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:08:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0267>
Subject: Job 175487: <4FGL_J1653.8+3945_daily_bin1708> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1708> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 16 19:55:14 2022
Job was executed on host(s) <bullet0267>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:55:40 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:55:40 2022
Terminated at Fri Sep 16 20:08:43 2022
Results reported at Fri Sep 16 20:08:43 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1708 253.474 39.7595 682041601 682300801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1653.8+3945 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   629.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             280.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   782 sec.
    Turnaround time :                            809 sec.

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

