aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  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 0 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 = 17308
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0204.8+1513_weekly_bin559
RA = 31.2182, Dec = 15.2326
tmin = 577065601, tmax = 577670401
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='356565', job_status='RUN', time_executed='2021-07-04 08:02:33.722973', time_epoch_executed='1625410953.72' WHERE source_name='4FGL J0204.8+1513' and cadence='weekly' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356565

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356565/ft1_4FGL_J0204.8+1513_weekly_bin559.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356565/ft1_4FGL_J0204.8+1513_weekly_bin559.fits outfile=/scratch/kocevski/356565/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin559.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=577065601.0 tmax=577670401.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.79
user 6.08
sys 0.27

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.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/356565/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.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 1.16
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/356565/ltcube_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.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/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits
.....................!
real 29.09
user 27.73
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/356565/ltcube_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits outfile=/scratch/kocevski/356565/expmap_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.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/356565/ltcube_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits
.....................!
real 196.56
user 186.80
sys 5.62

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/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits scfile=/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits outfile=/scratch/kocevski/356565/cmap_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.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.67
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits scfile=/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits outfile=/scratch/kocevski/356565/cmap_HighResolution_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.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.72
user 0.42
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits', '/scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits', expMap='/scratch/kocevski/356565/expmap_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits', expCube='/scratch/kocevski/356565/ltcube_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/356565/Model_4FGL_J0204.8+1513_weekly_bin559.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/356565/ft1_filtered_4FGL_J0204.8+1513_weekly_bin559.fits
Spacecraft file(s): /scratch/kocevski/356565/ft2_4FGL_J0204.8+1513_weekly_bin559.fits
Exposure map: /scratch/kocevski/356565/expmap_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits
Exposure cube: /scratch/kocevski/356565/ltcube_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/356565/Model_4FGL_J0204.8+1513_weekly_bin559.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) = 1265.53020798

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     2 'Prefactor '    74.935       1.0000         .10000E-03   10000.    
     3 'norm      '    .11681E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .20359E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    30.164       1.0000         .10000E-03   10000.    
     7 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10528E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.793       1.0000         .10000E-03   10000.    
    10 'norm      '    50.037       1.0000         .10000E-03   10000.    
    11 'Prefactor '    65.081       1.0000         .10000E-03   10000.    
    12 'Prefactor '    217.69       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .75203E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .12053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .18786E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10621E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    18.311       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10140E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .12179E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10074E-02   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.420       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92966       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=   1264.475     FROM MIGRAD    STATUS=CONVERGED    649 CALLS     3833 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor    10000.0        7110.0        .13006E-05** at limit **
   2  Prefactor     73.990        7381.7       -.31504E-04    .83457E-05
   3  norm          .10000E-03    214.36        .16591E-05** at limit **
   4  Prefactor     .10000E-03    18.191        .10496E-07** at limit **
   5  Prefactor     .10000E-03    618.44       -.10437E-05** at limit **
   6  Prefactor     30.186        30.564        .28989E-06    .13545E-04
   7  norm          .10000E-03    6.2421        .14681E-08** at limit **
   8  Prefactor     .10000E-03    24.959       -.33342E-05** at limit **
   9  Prefactor     15.789        11.499       -.92192E-07    .16671E-03
  10  norm          49.877        195.71       -.18548E-05    .19123E-05
  11  Prefactor     65.180        111.91        .75601E-06    .78010E-04
  12  Prefactor     217.72        167.49       -.71168E-06    .11508E-03
  13  Prefactor     .10444E-03    26.407        .19665E-05** at limit **
  14  Prefactor     .10000E-03    58.327        .23713E-06** at limit **
  15  Prefactor     .10000E-03    668.38       -.18840E-04** at limit **
  16  Prefactor     .10000E-03    13.748       -.81196E-07** at limit **
  17  Prefactor     .10000E-03    34.366        .21616E-05** at limit **
  18  Prefactor     18.311        23.668        .37147E-06    .82197E-04
  19  Prefactor     .10000E-03    20.231       -.19139E-06** at limit **
  20  norm          .10000E-03    .65807       -.75432E-07** at limit **
  21  Prefactor     .10000E-03    133.12       -.16966E-05** at limit **
  22  norm          .10032E-03    47.193        .10502E-05** at limit **
  23  Prefactor     .10000E-03    15.615       -.12320E-06** at limit **
  24  Prefactor     16.390        71.371       -.33269E-05    .35831E-04
  25  Prefactor     .10000E-03    20.137        .25950E-07** at limit **
  26  Normalizat    .10000E-01    .29908       -.13311E-04** at limit **
  27  Prefactor     .92957        .15998        .23500E-05    .31665E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10000
  Prefactor  = 73.9902
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 30.1861
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.7886
  norm       = 49.8768
  Prefactor  = 65.1798
  Prefactor  = 217.718
  Prefactor  = 0.000104444
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.3111
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.00010032
  Prefactor  = 0.0001
  Prefactor  = 16.3902
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.929565
 **********
 **   18 **HESSE 
 **********

 FCN=   1264.475     FROM HESSE     STATUS=OK           480 CALLS     4313 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor    10000.0        7109.9        .21323E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     73.990        7310.0        .23192E-03   -1.3985    
   3  norm          .10000E-03    215.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    18.191        .14818E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    619.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     30.186        30.466        .72952E-04   -1.4609    
   7  norm          .10000E-03    6.2425        .86784E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    24.398        .17090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.789        11.525        .83137E-04   -1.4913    
  10  norm          49.877        196.29        .28346E-03   -1.4294    
  11  Prefactor     65.180        112.22        .49747E-04   -1.4092    
  12  Prefactor     217.72        167.74        .13705E-03   -1.2746    
  13  Prefactor     .10444E-03    442.71        .33739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    58.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    648.66        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    13.779        .12869E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     18.311        22.969        .93597E-04   -1.4852    
  19  Prefactor     .10000E-03    20.428        .15611E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.2656        .55303E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    133.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10032E-03    205.82        .41652E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.641        .13723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.390        67.478        .98841E-04   -1.4898    
  25  Prefactor     .10000E-03    20.174        .15589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .38965        .10990E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .92957        .16650        .14892E-03   -.95116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12673e-08
Minuit parameter uncertainties:
  1  0.00330611
  2  1441.29
  3  0.000656087
  4  1.0999e-06
  5  0.00133574
  6  30.4815
  7  1.79302e-06
  8  3.16279e-05
  9  11.5266
  10  198.923
  11  112.591
  12  168.115
  13  0.0893765
  14  3.77764e-06
  15  0.000542464
  16  2.73766e-05
  17  3.52917e-05
  18  22.9797
  19  2.52571e-05
  20  6.55316e-06
  21  0.000256222
  22  0.0162845
  23  1.9505e-06
  24  66.6423
  25  2.00739e-05
  26  3.45834e-06
  27  0.166592
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  3.019e+01  3.048e+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:  9.296e-01  1.666e-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:  1.000e-02  3.458e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.64
Ra Dec: 31.218 15.233
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.52e-07 +/- 4.56e-07
Energy Flux (Fixed Index): 1.67e-04 +/- 1.69e-04

TS (Fixed Index): 3.64
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 1.85e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.42e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356565/likelihoodResults_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.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) = 1264.46140481
delta logL = 0.0138454198313

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1264.45505084
delta logL = 0.0201993830808

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    26.224       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6017       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92687       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=   1264.455     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      213 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     26.220        35.511       -.77939E-05    .30725E-03
   2  Index         2.6022        1.4671        .31054E-04    .82758E-04
   3  Normalizat    .10000E-01    .29829       -.19033E-05** at limit **
   4  Prefactor     .92693        .13955       -.87098E-07    .38162E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 26.22
  Index      = 2.60217
  Normalizat = 0.01
  Prefactor  = 0.92693
 **********
 **   18 **HESSE 
 **********

 FCN=   1264.455     FROM HESSE     STATUS=OK            27 CALLS      240 TOTAL
                     EDM=   .40E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     26.220        34.713        .78228E-04   -1.4683    
   2  Index         2.6022        1.4198        .79859E-03   -.50016    
   3  Normalizat    .10000E-01    .36758        .10789E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .92693        .12553        .14897E-03   -.95206    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.96744e-10
Minuit parameter uncertainties:
  1  34.74
  2  1.44582
  3  3.7604e-06
  4  0.125566
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356565': 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) = 1264.45505035
delta logL = 0.0201998720081

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  2.622e+01  3.474e+01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.602e+00  1.446e+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:  9.269e-01  1.256e-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:  1.000e-02  3.760e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.68
Ra Dec: 31.218 15.233
Photon Index (Free Index): 2.60 +/- 1.45
Photon Flux (Free Index): 6.21e-07 +/- 1.08e-06
Energy Flux (Free Index): 1.63e-04 +/- 1.54e-04

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/356565/cmap_HighResolution_577065601_577670401_4FGL_J0204.8+1513_weekly_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.42e-01', comment='SUCCESS', photon_flux='4.52e-07', energy_flux2='1.63e-04', photon_flux_error='4.56e-07', dlogl='2.02e-02', energy_flux='1.67e-04', photon_flux2='6.21e-07', job_status='DONE', time_completed='2021-07-04 08:10:26.046745', photon_index_error2='1.45', photon_index2='2.60', ts='3.64', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='1.85e-06', energy_flux_error2='1.54e-04', EG='0.01', time_epoch_completed='1625411426.05', return_code='0', job_id='356565', GAL2='0.93', EG2='0.01', return_code2='0', energy_flux_error='1.69e-04', photon_flux_error2='1.08e-06', ts2='3.68', photon_index='2.31' WHERE bin_id='559' AND source_name='4FGL J0204.8+1513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 08:10:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 356565: <4FGL_J0204.8+1513_weekly_bin559> in cluster <slac> Done

Job <4FGL_J0204.8+1513_weekly_bin559> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 08:01:51 2021
Job was executed on host(s) <bullet0030>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 08:01:53 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 08:01:53 2021
Terminated at Sun Jul  4 08:10:28 2021
Results reported at Sun Jul  4 08:10:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_weekly_bin559 31.2182 15.2326 577065601 577670401 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 :                                   449.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             290.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   515 sec.
    Turnaround time :                            517 sec.

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

