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


Performing analysis on: 4FGL_J1653.8+3945_daily_bin1715
RA = 253.474, Dec = 39.7595
tmin = 683856001, tmax = 684115201
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='175498', job_status='RUN', time_executed='2022-09-16 19:56:53.096016', time_epoch_executed='1663383413.1' WHERE source_name='4FGL J1653.8+3945' and cadence='daily' and bin_id='1715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175498

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175498/ft1_4FGL_J1653.8+3945_daily_bin1715.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175498/ft1_4FGL_J1653.8+3945_daily_bin1715.fits outfile=/scratch/kocevski/175498/ft1_filteredMKT_4FGL_J1653.8+3945_daily_bin1715.fits ra=253.474 dec=39.7595 rad=12.0 tmin=683856001.0 tmax=684115201.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.50
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits" evtable="EVENTS" scfile=/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits sctable="SC_DATA" outfile=/scratch/kocevski/175498/ltcube_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.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/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits
.....................!
real 15.76
user 15.22
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits evtable="EVENTS" scfile=/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits sctable="SC_DATA" expcube=/scratch/kocevski/175498/ltcube_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits outfile=/scratch/kocevski/175498/expmap_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.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/175498/ltcube_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits
.....................!
real 194.75
user 187.77
sys 5.95

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/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits scfile=/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits outfile=/scratch/kocevski/175498/cmap_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.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.55
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits scfile=/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits outfile=/scratch/kocevski/175498/cmap_HighResolution_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.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.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits', '/scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits', expMap='/scratch/kocevski/175498/expmap_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits', expCube='/scratch/kocevski/175498/ltcube_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/175498/Model_4FGL_J1653.8+3945_daily_bin1715.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/175498/ft1_filtered_4FGL_J1653.8+3945_daily_bin1715.fits
Spacecraft file(s): /scratch/kocevski/175498/ft2_4FGL_J1653.8+3945_daily_bin1715.fits
Exposure map: /scratch/kocevski/175498/expmap_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits
Exposure cube: /scratch/kocevski/175498/ltcube_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/175498/Model_4FGL_J1653.8+3945_daily_bin1715.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) = 6556.16554151

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2250       1.0000          .0000       .10000E+07
     2 'Prefactor '    .25120E-02   1.0000          .0000       .10000E+07
     3 'Prefactor '    10.756       1.0000          .0000       .10000E+07
     4 'Prefactor '    .27732E-04   1.0000          .0000       .10000E+07
     5 'norm      '    .72197E-01   1.0000          .0000       .10000E+07
     6 'norm      '    .15426E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    4.9187       1.0000          .0000       .10000E+07
     8 'Prefactor '    3.7955       1.0000          .0000       .10000E+07
     9 'norm      '    .18514E-02   1.0000          .0000       .10000E+07
    10 'Prefactor '    .87954E-04   1.0000          .0000       .10000E+07
    11 'Prefactor '    1.6957       1.0000          .0000       .10000E+07
    12 'Prefactor '    .24802E-06   1.0000          .0000       .10000E+07
    13 'Prefactor '    .27930E-03   1.0000          .0000       .10000E+07
    14 'norm      '    3.5210       1.0000          .0000       .10000E+07
    15 'norm      '    .27479E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    .17352E-01   1.0000          .0000       .10000E+07
    17 'norm      '    1.0080       1.0000          .0000       .10000E+07
    18 'norm      '    .54699E-02   1.0000          .0000       .10000E+07
    19 'norm      '    .32077       1.0000          .0000       .10000E+07
    20 'norm      '    .34332E-04   1.0000          .0000       .10000E+07
    21 'Prefactor '    .16021       1.0000          .0000       .10000E+07
    22 'Prefactor '    .64818E-03   1.0000          .0000       .10000E+07
    23 'Prefactor '    40.262       1.0000          .0000       .10000E+07
    24 'Prefactor '    8.5390       1.0000          .0000       .10000E+07
    25 'Normalizat'    1.0532       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.0148       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=   6556.149     FROM MIGRAD    STATUS=CONVERGED    203 CALLS     3380 TOTAL
                     EDM=   .20E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2264        3.3619       -.68089E-07    .44898E-04
   2  Prefactor      .0000        5.7746        .21241E-06** at limit **
   3  Prefactor     11.023        25.720       -.10017E-05   -.43112E-03
   4  Prefactor      .0000        2.0277        .11753E-06** at limit **
   5  norm          .72259E-01    .96061E-01   -.18764E-07** at limit **
   6  norm           .0000        8.5974        .45052E-06** at limit **
   7  Prefactor     4.8975        2.9640       -.14890E-06    .37582E-02
   8  Prefactor     3.7915        4.1180       -.30880E-07    .81465E-04
   9  norm          .11102E-09    15.993       -.18698E-06** at limit **
  10  Prefactor     .55511E-10    1.9697        .12963E-06** at limit **
  11  Prefactor     1.6952        1.0985       -.10295E-06    .12753E-02
  12  Prefactor      .0000        1.0513       -.24980E-06** at limit **
  13  Prefactor      .0000        2.6695        .14335E-06** at limit **
  14  norm          3.5214        1.7168       -.81084E-09   -.28513E-02
  15  norm           .0000        1.5113       -.11824E-07** at limit **
  16  Prefactor      .0000        38.961       -.13059E-05** at limit **
  17  norm          1.0087        .86321       -.87786E-07   -.96104E-03
  18  norm          .55511E-10    12.582       -.25709E-06** at limit **
  19  norm          .32349        1.4815       -.45131E-06    .20111E-03
  20  norm           .0000        1.5908       -.33815E-06** at limit **
  21  Prefactor      .0000        49.088        .35997E-06** at limit **
  22  Prefactor     .11102E-09    151.10        .18002E-05** at limit **
  23  Prefactor     40.351        1.3011       -.41136E-08    .66542E-02
  24  Prefactor     8.5392        8.3632        .30764E-06    .27432E-03
  25  Normalizat    1.0528        .23590        .27294E-05   -.13595E-04
  26  Prefactor     1.0150        .17920        .54428E-05    .33588E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22641
  Prefactor  = 0
  Prefactor  = 11.0233
  Prefactor  = 0
  norm       = 0.0722586
  norm       = 0
  Prefactor  = 4.89749
  Prefactor  = 3.79146
  norm       = 1.11022e-10
  Prefactor  = 5.55112e-11
  Prefactor  = 1.69521
  Prefactor  = 0
  Prefactor  = 0
  norm       = 3.52136
  norm       = 0
  Prefactor  = 0
  norm       = 1.0087
  norm       = 5.55112e-11
  norm       = 0.323488
  norm       = 0
  Prefactor  = 0
  Prefactor  = 1.11022e-10
  Prefactor  = 40.3509
  Prefactor  = 8.53916
  Normalizat = 1.0528
  Prefactor  = 1.01496
 **********
 **   18 **HESSE 
 **********

 FCN=   6556.149     FROM HESSE     STATUS=OK           532 CALLS     3912 TOTAL
                     EDM=   .58E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2264        3.3733        .56384E-03   -1.5672    
   2  Prefactor      .0000        5.8355        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     11.023        25.697        .30524E-03   -1.5642    
   4  Prefactor      .0000        2.0168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .72259E-01    .13490        .62100E-03   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        8.6074        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.8975        21.607        .45327E-03   -1.5664    
   8  Prefactor     3.7915        4.1579        .51789E-03   -1.5669    
   9  norm          .11102E-09    16.134        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .55511E-10    .82932        .31630E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.6952        1.3232        .80778E-04   -1.5682    
  12  Prefactor      .0000        1.0542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor      .0000        2.6542        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          3.5214        1.7199        .53850E-03   -1.5670    
  15  norm           .0000        .40931        .26999E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor      .0000        3.1213        .10333E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.0087        .88464        .44046E-03   -1.5688    
  18  norm          .55511E-10    12.530        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .32349        1.1400        .29185E-02   -1.5697    
  20  norm           .0000        1.5902        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor      .0000        48.954        .12532E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .11102E-09    151.10        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     40.351        59.711        .15761E-03   -1.5581    
  24  Prefactor     8.5392        8.3674        .34280E-03   -1.5650    
  25  Normalizat    1.0528        .19971        .59834E-01   -.91282    
  26  Prefactor     1.0150        .14841        .42706E-01   -.92233    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.75554e-09
Minuit parameter uncertainties:
  1  3.37327
  2  1.01019e-05
  3  25.6976
  4  1.52379e-06
  5  0.134898
  6  2.37541e-05
  7  20.5741
  8  4.15792
  9  7.94934e-05
  10  9.6185e-06
  11  1.32319
  12  1.85724e-06
  13  4.3252e-06
  14  1.71993
  15  1.01797e-06
  16  1.43662e-06
  17  0.884645
  18  4.66266e-05
  19  1.13996
  20  3.05044e-06
  21  4.74454e-06
  22  0.00023919
  23  59.7114
  24  8.36743
  25  0.199854
  26  0.148469
Done.

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

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.521e+00  1.720e+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:  1.015e+00  1.485e-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.053e+00  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.37
Ra Dec: 253.474 39.760
Photon Index (Fixed Index): 1.72 +/- 0.00
Photon Flux (Fixed Index): 4.72e-08 +/- 2.30e-08
Energy Flux (Fixed Index): 6.80e-05 +/- 3.32e-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) = 6555.64371283
delta logL = 0.505689879448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6555.63985615
delta logL = 0.509546562027

Fit tolerance = 1e-08

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

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

 FCN=   6555.640     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      260 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.0547        18.917        .58018E-03    .15092E-02
   2  alpha         2.1763        3.5739        .23872        .75269E-04
   3  Normalizat    1.0090        .11485        .46280E-01    .23661E-04
   4  Prefactor     1.0331        .61602E-01    .41025E-01    .27487E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 3.0547
  alpha      = 2.17633
  Normalizat = 1.00903
  Prefactor  = 1.0331
 **********
 **   18 **HESSE 
 **********

 FCN=   6555.640     FROM HESSE     STATUS=OK            33 CALLS      293 TOTAL
                     EDM=   .83E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.0547        1.7175        .57616E-05   -1.5673    
   2  alpha         2.1763        .46307        .84562E-02   -.12983    
   3  Normalizat    1.0090        .22309        .26907E-03   -.92729    
   4  Prefactor     1.0331        .17623        .21425E-03   -.91634    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.25033e-12
Minuit parameter uncertainties:
  1  1.71752
  2  0.465806
  3  0.223293
  4  0.176329
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175498': 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) = 6555.63985586
delta logL = 0.509546845049

Extracting fit parameters...

4FGL J1653.8+3945
   Spectrum: LogParabola
322         norm:  3.055e+00  1.718e+00  0.000e+00  1.000e+06 ( 1.000e-12)
323        alpha:  2.176e+00  4.658e-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:  1.033e+00  1.763e-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.009e+00  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 18.41
Ra Dec: 253.474 39.760
Photon Index (Free Index): 2.18 +/- 0.47
Photon Flux (Free Index): 8.51e-08 +/- 5.43e-08
Energy Flux (Free Index): 4.04e-05 +/- 2.28e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/175498/cmap_HighResolution_683856001_684115201_4FGL_J1653.8+3945_daily_bin1715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.72e-08', energy_flux2='4.04e-05', photon_flux_error='2.30e-08', dlogl='5.10e-01', energy_flux='6.80e-05', photon_flux2='8.51e-08', job_status='DONE', time_completed='2022-09-16 20:10:03.941703', photon_index_error2='0.47', photon_index2='2.18', ts='17.37', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.28e-05', EG='1.05', time_epoch_completed='1663384203.94', return_code='0', job_id='175498', GAL2='1.03', EG2='1.01', return_code2='0', energy_flux_error='3.32e-05', photon_flux_error2='5.43e-08', ts2='18.41', photon_index='1.72' WHERE bin_id='1715' AND source_name='4FGL J1653.8+3945' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 20:10:03 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0044>
Subject: Job 175498: <4FGL_J1653.8+3945_daily_bin1715> in cluster <slac> Done

Job <4FGL_J1653.8+3945_daily_bin1715> 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) <bullet0044>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 19:55:52 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:52 2022
Terminated at Fri Sep 16 20:10:05 2022
Results reported at Fri Sep 16 20:10:05 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1653.8+3945_daily_bin1715 253.474 39.7595 683856001 684115201 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 :                                   791.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            891 sec.

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

