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 118 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_J0204.8+1513_daily_bin1712
RA = 31.2182, Dec = 15.2326
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='2701', job_status='RUN', time_executed='2022-09-16 10:25:09.865060', time_epoch_executed='1663349109.87' WHERE source_name='4FGL J0204.8+1513' and cadence='daily' and bin_id='1712'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/2701

Creating custom pfile directory:
/scratch/kocevski/2701/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/2701/ft1_4FGL_J0204.8+1513_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/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/2701/ft1_4FGL_J0204.8+1513_daily_bin1712.fits outfile=/scratch/kocevski/2701/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1712.fits ra=31.2182 dec=15.2326 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 3.95
user 3.66
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_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/2701/ft1_filteredMKT_4FGL_J0204.8+1513_daily_bin1712.fits evtable="EVENTS" outfile="/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_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.44
user 0.26
sys 0.16

Number of photons that the gtmktime cut: 758

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits" evtable="EVENTS" scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits sctable="SC_DATA" outfile=/scratch/kocevski/2701/ltcube_683078401_683337601_4FGL_J0204.8+1513_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/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits
.....................!
real 10.00
user 9.62
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits sctable="SC_DATA" expcube=/scratch/kocevski/2701/ltcube_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits outfile=/scratch/kocevski/2701/expmap_683078401_683337601_4FGL_J0204.8+1513_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/2701/ltcube_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits
.....................!
real 157.75
user 152.45
sys 4.55

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

Setting source of interest to:
4FGL J0204.8+1513 @ 31.2182 15.2326

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits outfile=/scratch/kocevski/2701/cmap_683078401_683337601_4FGL_J0204.8+1513_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=31.2182 yref=15.2326 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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits outfile=/scratch/kocevski/2701/cmap_HighResolution_683078401_683337601_4FGL_J0204.8+1513_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=31.2182 yref=15.2326 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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits evtable="EVENTS" scfile=/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/2701/Model_4FGL_J0204.8+1513_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/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits.....................!
real 77.24
user 75.77
sys 1.11

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits', '/scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits', expMap='/scratch/kocevski/2701/expmap_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits', expCube='/scratch/kocevski/2701/ltcube_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/2701/Model_4FGL_J0204.8+1513_daily_bin1712.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0204.8+1513'

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.139e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/2701/ft1_filtered_4FGL_J0204.8+1513_daily_bin1712.fits
Spacecraft file(s): /scratch/kocevski/2701/ft2_4FGL_J0204.8+1513_daily_bin1712.fits
Exposure map: /scratch/kocevski/2701/expmap_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits
Exposure cube: /scratch/kocevski/2701/ltcube_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/2701/Model_4FGL_J0204.8+1513_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) = 8341.93140323

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .44992E-02   1.0000          .0000       .10000E+07
     2 'Prefactor '    .46985E-02   1.0000          .0000       .10000E+07
     3 'norm      '    .42633E-07   1.0000          .0000       .10000E+07
     4 'Prefactor '    4.2841       1.0000          .0000       .10000E+07
     5 'Prefactor '    2.1454       1.0000          .0000       .10000E+07
     6 'norm      '    9.5955       1.0000          .0000       .10000E+07
     7 'Prefactor '    .19801E-06   1.0000          .0000       .10000E+07
     8 'Prefactor '    1.6854       1.0000          .0000       .10000E+07
     9 'norm      '    .13633E-01   1.0000          .0000       .10000E+07
    10 'Prefactor '    37.958       1.0000          .0000       .10000E+07
    11 'Prefactor '    .36205E-03   1.0000          .0000       .10000E+07
    12 'Prefactor '    .99631E-02   1.0000          .0000       .10000E+07
    13 'Prefactor '    6.1240       1.0000          .0000       .10000E+07
    14 'Prefactor '    .51481       1.0000          .0000       .10000E+07
    15 'Prefactor '    35.220       1.0000          .0000       .10000E+07
    16 'Prefactor '    .35207E-05   1.0000          .0000       .10000E+07
    17 'norm      '    1.3865       1.0000          .0000       .10000E+07
    18 'Prefactor '    3.0627       1.0000          .0000       .10000E+07
    19 'norm      '     .0000       1.0000          .0000       .10000E+07
    20 'Prefactor '    .66168E-03   1.0000          .0000       .10000E+07
    21 'Prefactor '    .19282E-02   1.0000          .0000       .10000E+07
    22 'Prefactor '    .61875E-03   1.0000          .0000       .10000E+07
    23 'Normalizat'    .78568       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.1487       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5330E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8341.881     FROM MIGRAD    STATUS=CONVERGED    138 CALLS     1573 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .30664E-06    11.077        .95450E-08** at limit **
   2  Prefactor     .11560E-05    8.4721       -.25821E-07** at limit **
   3  norm          .32585E-07    8.5168        .97130E-07** at limit **
   4  Prefactor     4.2765        5.8914       -.94508E-08    .21182E-03
   5  Prefactor     2.1433        2.4407       -.13143E-06    .11845E-02
   6  norm          9.6911        5.4895        .35163E-07   -.64755E-04
   7  Prefactor      .0000        1.1990       -.49096E-07** at limit **
   8  Prefactor     1.6956        2.1773        .13231E-06   -.69343E-03
   9  norm          .10850E-05    9.9506        .17800E-06** at limit **
  10  Prefactor     36.430        24.450       -.12735E-06    .23181E-01
  11  Prefactor     .12701E-06    13.859        .29486E-06** at limit **
  12  Prefactor     .93558E-06    25.137       -.27925E-06** at limit **
  13  Prefactor     6.1287        1.8463       -.16638E-07    .28357E-02
  14  Prefactor     .56727        1.6351        .99488E-08    .17232E-02
  15  Prefactor     36.107        17.104        .82098E-07   -.89641E-02
  16  Prefactor      .0000        3.9056       -.50194E-07** at limit **
  17  norm          1.3868        .52032        .22667E-07   -.18192E-02
  18  Prefactor     2.9087        3.3772       -.49750E-07    .57642E-02
  19  norm           .0000        3.9884       -.10802E-06** at limit **
  20  Prefactor     .89928E-08    3.8058        .59782E-07** at limit **
  21  Prefactor     .18707E-07    8.5204        .26427E-06** at limit **
  22  Prefactor     .15266E-07    3.9945        .30494E-07** at limit **
  23  Normalizat    .78651        .21286       -.44751E-05    .46042E-04
  24  Prefactor     1.1482        .12022        .46271E-06    .78931E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.06644e-07
  Prefactor  = 1.15596e-06
  norm       = 3.2585e-08
  Prefactor  = 4.27646
  Prefactor  = 2.14335
  norm       = 9.69113
  Prefactor  = 0
  Prefactor  = 1.69564
  norm       = 1.08497e-06
  Prefactor  = 36.43
  Prefactor  = 1.2701e-07
  Prefactor  = 9.35585e-07
  Prefactor  = 6.12868
  Prefactor  = 0.567265
  Prefactor  = 36.1073
  Prefactor  = 0
  norm       = 1.3868
  Prefactor  = 2.90871
  norm       = 0
  Prefactor  = 8.99281e-09
  Prefactor  = 1.87073e-08
  Prefactor  = 1.52656e-08
  Normalizat = 0.786505
  Prefactor  = 1.1482
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.881     FROM HESSE     STATUS=OK           445 CALLS     2018 TOTAL
                     EDM=   .20E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .30664E-06    21.084        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11560E-05    26.181        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .32585E-07    9.1224        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.2765        5.9092        .48651E-03   -1.5667    
   5  Prefactor     2.1433        2.4568        .70330E-03   -1.5679    
   6  norm          9.6911        5.5033        .32327E-03   -1.5646    
   7  Prefactor      .0000        1.1986        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.6956        2.2251        .81084E-03   -1.5682    
   9  norm          .10850E-05    17.726        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.430        29.231        .16233E-03   -1.5587    
  11  Prefactor     .12701E-06    14.812        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .93558E-06    31.140        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1287        53.108        .40546E-03   -1.5658    
  14  Prefactor     .56727        6.2450        .77233E-02   -1.5693    
  15  Prefactor     36.107        26.951        .16852E-03   -1.5588    
  16  Prefactor      .0000        3.9045        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.3868        .52343        .87945E-03   -1.5684    
  18  Prefactor     2.9087        125.13        .57941E-03   -1.5674    
  19  norm           .0000        3.9860        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .89928E-08    7.5579        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .18707E-07    8.8304        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .15266E-07    7.5168        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Normalizat    .78651        .19377        .83204E-01   -1.0057    
  24  Prefactor     1.1482        .10867        .35974E-01   -.87941    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.04518e-07
Minuit parameter uncertainties:
  1  0.00508543
  2  0.0110026
  3  0.00109065
  4  5.90923
  5  2.45681
  6  5.50332
  7  3.69814e-07
  8  2.2251
  9  0.00877096
  10  29.2315
  11  0.00274315
  12  0.0107951
  13  36.0826
  14  3.76434
  15  26.9507
  16  9.78359e-06
  17  0.52343
  18  38.1566
  19  6.44694e-06
  20  0.000521773
  21  0.000813064
  22  0.000677238
  23  0.193939
  24  0.108688
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.143e+00  2.457e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  2.315e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.148e+00  1.087e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.865e-01  1.939e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.17
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.21e-08 +/- 3.68e-08
Energy Flux (Fixed Index): 1.19e-05 +/- 1.36e-05

TS (Fixed Index): 1.17
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 1.15e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.86e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/2701/likelihoodResults_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8341.10391278
delta logL = 0.776834277245

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8341.09639495
delta logL = 0.784352104361

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8341.096     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.1290        12.566        .11000E-02    .12626E-01
   2  Index         3.2254        2.8103        .11977        .18296E-03
   3  Normalizat    .73119        .54761E-01    .85980E-01    .35715E-04
   4  Prefactor     1.1642        .30806E-01    .35539E-01   -.60613E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.12902
  Index      = 3.2254
  Normalizat = 0.731187
  Prefactor  = 1.16419
 **********
 **   18 **HESSE 
 **********

 FCN=   8341.096     FROM HESSE     STATUS=OK            33 CALLS      272 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.1290        2.0644        .65814E-05   -1.5687    
   2  Index         3.2254        1.0006        .59840E-02   -.36283    
   3  Normalizat    .73119        .21662        .38081E-03   -1.0267    
   4  Prefactor     1.1642        .12065        .17511E-03   -.87440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.51256e-08
Minuit parameter uncertainties:
  1  2.06436
  2  1.00839
  3  0.216877
  4  0.120683
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/2701': 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) = 8341.096394
delta logL = 0.784353060215

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.129e+00  2.064e+00  0.000e+00  1.000e+06 ( 1.000e-12)
232        Index:  3.225e+00  1.008e+00  0.000e+00  1.000e+01 (-1.000e+00)
233        Scale:  9.796e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
530    Prefactor:  1.164e+00  1.207e-01  0.000e+00  1.000e+01 ( 1.000e+00)
531        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
532        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
529   Normalization:  7.312e-01  2.169e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.85
Ra Dec: 31.218 15.233
Photon Index (Free Index): 3.23 +/- 1.01
Photon Flux (Free Index): 7.99e-08 +/- 5.88e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.08e-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/2701/cmap_HighResolution_683078401_683337601_4FGL_J0204.8+1513_daily_bin1712.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.86e-03', comment='SUCCESS', photon_flux='3.21e-08', energy_flux2='1.45e-05', photon_flux_error='3.68e-08', dlogl='7.84e-01', energy_flux='1.19e-05', photon_flux2='7.99e-08', job_status='DONE', time_completed='2022-09-16 10:34:33.880743', photon_index_error2='1.01', photon_index2='3.23', ts='1.17', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', photon_flux_upper_limit='1.15e-07', energy_flux_error2='1.08e-05', EG='0.79', time_epoch_completed='1663349673.88', return_code='0', job_id='2701', GAL2='1.16', EG2='0.73', return_code2='0', energy_flux_error='1.36e-05', photon_flux_error2='5.88e-08', ts2='2.85', photon_index='2.31' WHERE bin_id='1712' AND source_name='4FGL J0204.8+1513' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 10:34:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 2701: <4FGL_J0204.8+1513_daily_bin1712> in cluster <slac> Done

Job <4FGL_J0204.8+1513_daily_bin1712> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Sep 16 10:21:08 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 10:23:00 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 10:23:00 2022
Terminated at Fri Sep 16 10:34:34 2022
Results reported at Fri Sep 16 10:34:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_daily_bin1712 31.2182 15.2326 683078401 683337601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0204.8+1513 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   564.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             283.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            806 sec.

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

