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 3 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 = 17038
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0204.8+1513_weekly_bin588
RA = 31.2182, Dec = 15.2326
tmin = 594604801, tmax = 595209601
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='356618', job_status='RUN', time_executed='2021-07-04 08:02:32.736226', time_epoch_executed='1625410952.74' WHERE source_name='4FGL J0204.8+1513' and cadence='weekly' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/356618

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

Retrieving the FT1 file...

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

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

Retrieving 106 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/356618/ft1_4FGL_J0204.8+1513_weekly_bin588.fits


Retrieving the FT1 file...

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

Retrieving 106 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/356618/ft2_4FGL_J0204.8+1513_weekly_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/356618/ft1_4FGL_J0204.8+1513_weekly_bin588.fits outfile=/scratch/kocevski/356618/ft1_filteredMKT_4FGL_J0204.8+1513_weekly_bin588.fits ra=31.2182 dec=15.2326 rad=12.0 tmin=594604801.0 tmax=595209601.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.44
user 5.90
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/356618/ft1_filtered_4FGL_J0204.8+1513_weekly_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/356618/ft2_4FGL_J0204.8+1513_weekly_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/356618/ltcube_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.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/356618/ft2_4FGL_J0204.8+1513_weekly_bin588.fits
.....................!
real 28.63
user 28.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/356618/ft1_filtered_4FGL_J0204.8+1513_weekly_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/356618/ft2_4FGL_J0204.8+1513_weekly_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/356618/ltcube_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.fits outfile=/scratch/kocevski/356618/expmap_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.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/356618/ltcube_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.fits
.....................!
real 192.57
user 185.95
sys 5.31

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/356618/ft1_filtered_4FGL_J0204.8+1513_weekly_bin588.fits scfile=/scratch/kocevski/356618/ft2_4FGL_J0204.8+1513_weekly_bin588.fits outfile=/scratch/kocevski/356618/cmap_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.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.61
user 0.39
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    54.358       1.0000         .10000E-03   10000.    
     3 'norm      '    .10380E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.180       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12803E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10622E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10181E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    15.480       1.0000         .10000E-03   10000.    
    10 'norm      '    .75597E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10969E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21373E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    91.365       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7601       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10095E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .11096E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .16185E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .34662E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10444E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .92652E-02   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .34024E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    .84002       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   616.4984     FROM MIGRAD    STATUS=CONVERGED   1156 CALLS     4284 TOTAL
                     EDM=   .17E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    69.883        .18142E-02** at limit **
   2  Prefactor     54.411        76.622        .54404E-04   -.19852E-05
   3  norm          .10000E-03    90.274        .18142E-02** at limit **
   4  Prefactor     27.176        29.973        .76843E-04   -.15368E-04
   5  Prefactor     .10000E-03    1119.9        .18142E-02** at limit **
   6  Prefactor     .10000E-03    22.599        .11510E-02** at limit **
   7  norm          .10000E-03    45.905        .16335E-02** at limit **
   8  Prefactor     .10000E-03    230.12        .18142E-02** at limit **
   9  Prefactor     15.480        12.011        .68370E-04   -.17626E-04
  10  norm          .10000E-03    7531.4        .18573E-02** at limit **
  11  Prefactor     .10000E-03    133.80        .18142E-02** at limit **
  12  Prefactor     .10000E-03    1104.4        .18142E-02** at limit **
  13  Prefactor     .10000E-03    25.911        .12353E-02** at limit **
  14  Prefactor     91.447        281.18        .21020E-03   -.50704E-05
  15  Prefactor     .10000E-03    9754.6        .15792E-02** at limit **
  16  Prefactor     .10000E-03    53.877        .17821E-02** at limit **
  17  Prefactor     .10000E-03    33.285        .14002E-02** at limit **
  18  Prefactor     .10000E-03    19.617        .10747E-02** at limit **
  19  Prefactor     .10000E-03    89.360        .18142E-02** at limit **
  20  norm          .10000E-03    7.6835        .67248E-03** at limit **
  21  Prefactor     .10000E-03    282.40        .18142E-02** at limit **
  22  norm          .10000E-03    46.564        .16566E-02** at limit **
  23  Prefactor     .10000E-03    887.33        .21328E-02** at limit **
  24  Prefactor     .10000E-03    339.16        .18142E-02** at limit **
  25  Prefactor     .10000E-03    2046.4        .18216E-02** at limit **
  26  Normalizat    .34971E-01    6.2785        .90724E-02   -.46450E-05
  27  Prefactor     .83908        .40993        .14304E-03   -.55867E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 54.4109
  norm       = 0.0001
  Prefactor  = 27.1764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.4797
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 91.447
  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  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.0349707
  Prefactor  = 0.839084
 **********
 **   18 **HESSE 
 **********

 FCN=   616.4984     FROM HESSE     STATUS=OK           462 CALLS     4746 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    69.884        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     54.411        76.361        .21762E-05   -1.4231    
   3  norm          .10000E-03    90.284        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.176        29.973        .30737E-05   -1.4665    
   5  Prefactor     .10000E-03    1119.9        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    22.601        .23019E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    45.919        .32671E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    230.12        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     15.480        12.009        .27348E-05   -1.4921    
  10  norm          .10000E-03    7531.4        .37146E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    133.81        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1104.4        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    25.911        .24706E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     91.447        281.20        .84081E-05   -1.3792    
  15  Prefactor     .10000E-03    9754.6        .31585E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    53.877        .35642E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.285        .28004E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.617        .21495E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    89.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    7.6835        .13450E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    282.40        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    46.564        .33131E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    887.33        .42656E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    339.16        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    2046.4        .36431E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .34971E-01    2.2704        .36289E-03   -1.4708    
  27  Prefactor     .83908        .35112        .28607E-04   -.98303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43957e-11
Minuit parameter uncertainties:
  1  8.53393e-08
  2  76.4993
  3  1.36075e-06
  4  29.99
  5  1.37142e-05
  6  1.50776e-06
  7  2.63101e-05
  8  2.31289e-06
  9  12.0111
  10  0.000102758
  11  8.41873e-06
  12  9.9556e-06
  13  2.21468e-06
  14  285.461
  15  0.00319627
  16  4.06017e-06
  17  3.29493e-06
  18  3.06334e-06
  19  1.78219e-07
  20  2.15528e-08
  21  2.35095e-06
  22  3.03438e-06
  23  3.44821e-06
  24  6.27576e-06
  25  1.85584e-05
  26  0.497122
  27  0.352065
Done.

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

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.000e-04  1.508e-06  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:  8.391e-01  3.521e-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.497e-02  4.971e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 31.218 15.233
Photon Flux Upper Limit: 9.65e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.41e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/356618/likelihoodResults_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.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): 102
logL (Free Index) = 616.498638053
delta logL = -0.00021050933276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 616.498429635
delta logL = -2.09114000427e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10430E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.7473       1.0000          .0000       10.000    
     3 'Normalizat'    .34970E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83909       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   616.4984     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      294 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11269E-03    32.149        .86790E-02** at limit **
   2  Index         2.5536        7.8335        .50000        .22363E-04
   3  Normalizat    .34972E-01    .14806E-01    .90727E-02   -.22915E-04
   4  Prefactor     .83908        .10306E-01    .14304E-03   -.25343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000112694
  Index      = 2.55356
  Normalizat = 0.0349723
  Prefactor  = 0.839081
 **********
 **   18 **HESSE 
 **********

 FCN=   616.4984     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      325 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11269E-03    308.80        .97748E-03   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5536        7.5159        .50000       -.51127    
   3  Normalizat    .34972E-01    .46823E-01    .36291E-03   -1.4708    
   4  Prefactor     .83908        .32606E-01    .28607E-04   -.98303    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.81737e-08
Minuit parameter uncertainties:
  1  0.125872
  2  726.202
  3  0.0468925
  4  0.032607
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/356618': 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): 102
logL (Free Index) = 616.498428789
delta logL = -1.24498922105e-06

Extracting fit parameters...

4FGL J0204.8+1513
   Spectrum: PowerLaw
231    Prefactor:  1.127e-04  1.259e-01  1.000e-04  1.000e+04 ( 1.000e-12)
232        Index:  2.554e+00  7.262e+02  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:  8.391e-01  3.261e-02  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.497e-02  4.689e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 31.218 15.233

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/356618/cmap_HighResolution_594604801_595209601_4FGL_J0204.8+1513_weekly_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.41e-02', job_status='DONE', photon_flux_upper_limit='9.65e-07', time_completed='2021-07-04 08:09:28.826748', job_id='356618', GAL2='0.84', fit_tolerance='1e-08', EG2='0.03', EG='0.03', time_epoch_completed='1625411368.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='-1.24e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='588' AND source_name='4FGL J0204.8+1513' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 08:09:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 356618: <4FGL_J0204.8+1513_weekly_bin588> in cluster <slac> Done

Job <4FGL_J0204.8+1513_weekly_bin588> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sun Jul  4 08:01:56 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 08:01:57 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:57 2021
Terminated at Sun Jul  4 08:09:30 2021
Results reported at Sun Jul  4 08:09:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0204.8+1513_weekly_bin588 31.2182 15.2326 594604801 595209601 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 :                                   402.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.12 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   452 sec.
    Turnaround time :                            454 sec.

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

