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 141 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 17484
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0204.8+1513_weekly_bin717
RA = 31.2182, Dec = 15.2326
tmin = 672624001, tmax = 673228801
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='367555', job_status='RUN', time_executed='2022-05-03 01:05:44.465506', time_epoch_executed='1651565144.47' WHERE source_name='4FGL J0204.8+1513' and cadence='weekly' and bin_id='717'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/367555

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/367555/ft1_4FGL_J0204.8+1513_weekly_bin717.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/367555/ft1_4FGL_J0204.8+1513_weekly_bin717.fits outfile=/scratch/kocevski/367555/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin717.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=672624001.0 tmax=673228801.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 6.36
user 6.06
sys 0.26

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

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

Number of photons that the gtmktime cut: 151

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits" evtable="EVENTS" scfile=/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits sctable="SC_DATA" outfile=/scratch/kocevski/367555/ltcube_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.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/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits
.....................!
real 35.99
user 35.54
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits sctable="SC_DATA" expcube=/scratch/kocevski/367555/ltcube_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits outfile=/scratch/kocevski/367555/expmap_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.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/367555/ltcube_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits
.....................!
real 191.64
user 186.44
sys 3.98

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/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits scfile=/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits outfile=/scratch/kocevski/367555/cmap_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.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.58
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits scfile=/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits outfile=/scratch/kocevski/367555/cmap_HighResolution_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.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.58
user 0.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits evtable="EVENTS" scfile=/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/367555/Model_4FGL_J0204.8+1513_weekly_bin717.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/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits......................!
real 31.12
user 29.89
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits', '/scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits', expMap='/scratch/kocevski/367555/expmap_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits', expCube='/scratch/kocevski/367555/ltcube_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/367555/Model_4FGL_J0204.8+1513_weekly_bin717.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  1.000e-04  1.000e+04 ( 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/367555/ft1_filtered_4FGL_J0204.8+1513_weekly_bin717.fits
Spacecraft file(s): /scratch/kocevski/367555/ft2_4FGL_J0204.8+1513_weekly_bin717.fits
Exposure map: /scratch/kocevski/367555/expmap_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits
Exposure cube: /scratch/kocevski/367555/ltcube_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/367555/Model_4FGL_J0204.8+1513_weekly_bin717.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) = 1884.16772454

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.975       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .33849E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.348       1.0000         .10000E-03   10000.    
     5 'Prefactor '    410.63       1.0000         .10000E-03   10000.    
     6 'Prefactor '    29.061       1.0000         .10000E-03   10000.    
     7 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.913       1.0000         .10000E-03   10000.    
    10 'norm      '    .11003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    159.07       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .19382E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12097E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .50743E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10405E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .24633E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .14686E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .25015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .69551E-01   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .39956E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .36620       1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.1042       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1881.766     FROM MIGRAD    STATUS=CONVERGED    623 CALLS     4390 TOTAL
                     EDM=   .30E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.966        58.653       -.54230E-06   -.19477E-04
   2  Prefactor     .10000E-03    15.009        .16081E-06** at limit **
   3  norm          .10000E-03    300.06        .29358E-04** at limit **
   4  Prefactor     15.341        21.272        .17915E-06   -.42151E-04
   5  Prefactor     410.44        554.89        .25417E-05   -.78154E-05
   6  Prefactor     29.065        16.498        .16910E-06   -.92306E-04
   7  norm          .10000E-03    11.914        .55134E-06** at limit **
   8  Prefactor     .10000E-03    36.222        .20981E-05** at limit **
   9  Prefactor     13.917        15.467       -.34286E-05   -.60028E-04
  10  norm          .10000E-03    260.96       -.74544E-06** at limit **
  11  Prefactor     159.04        192.41        .35449E-05   -.18673E-04
  12  Prefactor     .10000E-03    515.15        .10097E-05** at limit **
  13  Prefactor     .10000E-03    33.181       -.12692E-07** at limit **
  14  Prefactor     .10000E-03    454.67        .87553E-06** at limit **
  15  Prefactor     .10000E-03    172.44        .34757E-06** at limit **
  16  Prefactor     .10000E-03    170.48        .45425E-06** at limit **
  17  Prefactor     .10000E-03    383.57        .38894E-05** at limit **
  18  Prefactor     .10000E-03    42.392        .12238E-07** at limit **
  19  Prefactor     .10000E-03    259.96       -.70779E-06** at limit **
  20  norm          .10000E-03    18.703        .10040E-06** at limit **
  21  Prefactor     .10000E-03    891.10        .35652E-05** at limit **
  22  norm          .10000E-03    157.09        .41603E-06** at limit **
  23  Prefactor    10000.0        7030.2       -.30285E-05** at limit **
  24  Prefactor     .10002E-03    8725.1        .24252E-04** at limit **
  25  Prefactor     .10000E-03    6458.7        .46526E-05** at limit **
  26  Normalizat    .36630        .38717        .91005E-05   -.78954E-05
  27  Prefactor     1.1040        .25971       -.24435E-05    .13926E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.9662
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 15.3411
  Prefactor  = 410.444
  Prefactor  = 29.0651
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9175
  norm       = 0.0001
  Prefactor  = 159.039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100016
  Prefactor  = 0.000100001
  Normalizat = 0.366301
  Prefactor  = 1.10404
 **********
 **   18 **HESSE 
 **********

 FCN=   1881.766     FROM HESSE     STATUS=OK           478 CALLS     4868 TOTAL
                     EDM=   .63E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.966        58.766        .10021E-03   -1.4909    
   2  Prefactor     .10000E-03    15.025        .16412E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    292.30        .55959E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     15.341        21.172        .10223E-03   -1.4924    
   5  Prefactor     410.44        554.79        .10079E-03   -1.1628    
   6  Prefactor     29.065        16.455        .74320E-04   -1.4629    
   7  norm          .10000E-03    11.953        .14642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    36.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     13.917        15.581        .53691E-03   -1.4962    
  10  norm          .10000E-03    260.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     159.04        191.85        .15985E-03   -1.3179    
  12  Prefactor     .10000E-03    515.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    33.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    454.77        .21150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    172.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    170.51        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    384.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    42.393        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    259.99        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    18.716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    891.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    157.10        .21465E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor    10000.0        7030.2        .20682E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10002E-03    8728.6        .18730E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6459.0        .19496E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .36630        .39415        .46554E-03   -1.1908    
  27  Prefactor     1.1040        .26845        .18037E-03   -.89337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.298e-11
Minuit parameter uncertainties:
  1  58.9807
  2  3.51996e-05
  3  0.000319497
  4  21.1819
  5  562.289
  6  16.4573
  7  7.5114e-05
  8  2.43227e-05
  9  15.5859
  10  0.000144966
  11  192.613
  12  0.000125265
  13  4.16134e-06
  14  0.000718231
  15  3.05548e-05
  16  5.545e-05
  17  0.000543065
  18  8.10568e-06
  19  0.000157191
  20  3.97286e-06
  21  0.001171
  22  3.82678e-05
  23  0.00108729
  24  0.026304
  25  0.00279486
  26  0.397186
  27  0.268779
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.907e+01  1.646e+01  1.000e-04  1.000e+04 ( 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.104e+00  2.688e-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:  3.663e-01  3.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.25
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.35e-07 +/- 2.46e-07
Energy Flux (Fixed Index): 1.61e-04 +/- 9.12e-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) = 1881.63127943
delta logL = 0.135209289991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1881.63005717
delta logL = 0.136431550208

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.441       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6053       1.0000          .0000       10.000    
     3 'Normalizat'    .32217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1225       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=   1881.630     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      260 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.412        285.89        .20683E-02    .24120E-04
   2  Index         2.6041        6.2977        .83775E-01    .41083E-04
   3  Normalizat    .32177        .36170        .11159        .20530E-04
   4  Prefactor     1.1230        .19516        .36788E-01    .22774E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.4121
  Index      = 2.60409
  Normalizat = 0.321773
  Prefactor  = 1.12303
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.412        18.938        .82733E-04   -1.4740    
   2  Index         2.6041        .60143        .35190E-02   -.49972    
   3  Normalizat    .32177        .40325        .49458E-03   -1.2156    
   4  Prefactor     1.1230        .26452        .17891E-03   -.88734    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0421e-12
Minuit parameter uncertainties:
  1  18.9424
  2  0.603328
  3  0.406962
  4  0.264825
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/367555': 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) = 1881.63004225
delta logL = 0.136446476357

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.341e+01  1.894e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.604e+00  6.033e-01  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.123e+00  2.648e-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:  3.218e-01  4.070e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 31.218 15.233
Photon Index (Free Index): 2.60 +/- 0.60
Photon Flux (Free Index): 5.56e-07 +/- 3.74e-07
Energy Flux (Free Index): 1.45e-04 +/- 8.19e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/367555/cmap_HighResolution_672624001_673228801_4FGL_J0204.8+1513_weekly_bin717.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.35e-07', energy_flux2='1.45e-04', photon_flux_error='2.46e-07', dlogl='1.36e-01', energy_flux='1.61e-04', photon_flux2='5.56e-07', job_status='DONE', time_completed='2022-05-03 01:13:46.646760', photon_index_error2='0.60', photon_index2='2.60', ts='5.25', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', energy_flux_error2='8.19e-05', EG='0.37', time_epoch_completed='1651565626.65', return_code='0', job_id='367555', GAL2='1.12', EG2='0.32', return_code2='0', energy_flux_error='9.12e-05', photon_flux_error2='3.74e-07', ts2='5.52', photon_index='2.31' WHERE bin_id='717' AND source_name='4FGL J0204.8+1513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue May  3 01:13:46 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 367555: <4FGL_J0204.8+1513_weekly_bin717> in cluster <slac> Done

Job <4FGL_J0204.8+1513_weekly_bin717> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May  3 01:00:25 2022
Job was executed on host(s) <bullet0260>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May  3 01:03:14 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May  3 01:03:14 2022
Terminated at Tue May  3 01:13:47 2022
Results reported at Tue May  3 01:13:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_weekly_bin717 31.2182 15.2326 672624001 673228801 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 :                                   483.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             264.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   632 sec.
    Turnaround time :                            802 sec.

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

