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 6 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_J0203.7+3042_weekly_bin559
RA = 30.9327, Dec = 30.7139
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='350183', job_status='RUN', time_executed='2021-07-04 07:39:17.393715', time_epoch_executed='1625409557.39' WHERE source_name='4FGL J0203.7+3042' and cadence='weekly' and bin_id='559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/350183

Creating custom pfile directory:
/scratch/kocevski/350183/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/350183/ft1_4FGL_J0203.7+3042_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/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/350183/ft1_4FGL_J0203.7+3042_weekly_bin559.fits outfile=/scratch/kocevski/350183/ft1_filteredMKT_4FGL_J0203.7+3042_weekly_bin559.fits ra=30.9327 dec=30.7139 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.91
user 6.06
sys 0.31

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_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/350183/ft1_filteredMKT_4FGL_J0203.7+3042_weekly_bin559.fits evtable="EVENTS" outfile="/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_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.19
user 0.38
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits" evtable="EVENTS" scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits sctable="SC_DATA" outfile=/scratch/kocevski/350183/ltcube_577065601_577670401_4FGL_J0203.7+3042_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/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits
.....................!
real 29.36
user 28.29
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits sctable="SC_DATA" expcube=/scratch/kocevski/350183/ltcube_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits outfile=/scratch/kocevski/350183/expmap_577065601_577670401_4FGL_J0203.7+3042_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/350183/ltcube_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits
.....................!
real 194.02
user 186.21
sys 4.69

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

Setting source of interest to:
4FGL J0203.7+3042 @ 30.9327 30.7139

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits outfile=/scratch/kocevski/350183/cmap_577065601_577670401_4FGL_J0203.7+3042_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=30.9327 yref=30.7139 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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits outfile=/scratch/kocevski/350183/cmap_HighResolution_577065601_577670401_4FGL_J0203.7+3042_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=30.9327 yref=30.7139 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 1.13
user 0.43
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits evtable="EVENTS" scfile=/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/350183/Model_4FGL_J0203.7+3042_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/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits......................!
real 48.24
user 42.16
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits', '/scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits', expMap='/scratch/kocevski/350183/expmap_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits', expCube='/scratch/kocevski/350183/ltcube_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/350183/Model_4FGL_J0203.7+3042_weekly_bin559.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0203.7+3042'

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  3.872e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/350183/ft1_filtered_4FGL_J0203.7+3042_weekly_bin559.fits
Spacecraft file(s): /scratch/kocevski/350183/ft2_4FGL_J0203.7+3042_weekly_bin559.fits
Exposure map: /scratch/kocevski/350183/expmap_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits
Exposure cube: /scratch/kocevski/350183/ltcube_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/350183/Model_4FGL_J0203.7+3042_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) = 2295.13701259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10141E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3380.5       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .17430E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .56387E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    93.295       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    7.0990       1.0000         .10000E-03   10000.    
    20 'Prefactor '    17.272       1.0000         .10000E-03   10000.    
    21 'norm      '    1.0882       1.0000         .10000E-03   10000.    
    22 'norm      '    .10527E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .13319E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.0053       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .11458E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    31.907       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    31 'Prefactor '    1.2304       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2290.119     FROM MIGRAD    STATUS=CONVERGED    800 CALLS     4230 TOTAL
                     EDM=   .69E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.1835        .33048E-06** at limit **
   2  Prefactor     .10000E-03    673.82       -.64129E-04** at limit **
   3  Prefactor     .10000E-03    119.82       -.19060E-04** at limit **
   4  Prefactor     3378.1        2002.3       -.49529E-03   -.22073E-04
   5  Prefactor    10000.0        2237.4        .32586E-03** at limit **
   6  norm          .10000E-03    11.295       -.86208E-07** at limit **
   7  Prefactor    10000.0        7331.6        .58471E-03** at limit **
   8  Prefactor    10000.0        6911.3        .13478E-02** at limit **
   9  norm          .10000E-03    76.858        .16429E-04** at limit **
  10  Prefactor     .10000E-03    822.83       -.27504E-03** at limit **
  11  Prefactor     .10001E-03    435.74        .28892E-03** at limit **
  12  Prefactor     .10000E-03    8.3147        .94709E-07** at limit **
  13  Prefactor     .10000E-03    79.146        .96611E-05** at limit **
  14  Prefactor     .10000E-03    55.317       -.14191E-04** at limit **
  15  norm          .10000E-03    8.3241        .16154E-06** at limit **
  16  Prefactor     .10000E-03    546.52        .14158E-03** at limit **
  17  Prefactor     93.305        68.882        .12788E-04   -.14069E-03
  18  Prefactor     .10000E-03    15.223        .56820E-07** at limit **
  19  norm          7.1003        10.012        .61133E-05   -.44436E-03
  20  Prefactor     17.282        37.453        .50293E-05   -.81449E-04
  21  norm          1.0890        1.9030       -.85658E-06   -.78461E-03
  22  norm          .10027E-03    1887.9       -.11185E-02** at limit **
  23  Prefactor     .10000E-03    3.2696        .52853E-07** at limit **
  24  Prefactor     .10000E-03    115.30       -.28801E-04** at limit **
  25  norm          4.0041        5.4105       -.10219E-06   -.10331E-03
  26  Prefactor     .10000E-03    78.691        .95881E-05** at limit **
  27  norm          31.907        5.9704        .31953E-06   -.42822E-04
  28  Prefactor     .10000E-03    10.556        .14109E-06** at limit **
  29  Prefactor     .10000E-03    44.089        .37395E-05** at limit **
  30  Normalizat    .10000E-01    .11852        .65484E-05** at limit **
  31  Prefactor     1.2303        .14789        .21413E-05   -.26662E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3378.14
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100014
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 93.3046
  Prefactor  = 0.0001
  norm       = 7.10032
  Prefactor  = 17.2817
  norm       = 1.08902
  norm       = 0.000100271
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.00408
  Prefactor  = 0.0001
  norm       = 31.9066
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.23028
 **********
 **   18 **HESSE 
 **********

 FCN=   2290.119     FROM HESSE     STATUS=OK           604 CALLS     4834 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1839        .11623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    673.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    119.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3378.1        2003.2        .42279E-04   -.33035    
   5  Prefactor    10000.0        2237.0        .20708E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.295        .15711E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor    10000.0        7331.5        .20463E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        6911.2        .18523E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    76.887        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    822.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    438.28        .19032E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    8.3846        .13478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    79.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.320        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    8.3246        .13486E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    546.54        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     93.305        68.769        .41608E-04   -1.3773    
  18  Prefactor     .10000E-03    15.270        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          7.1003        9.7061        .13001E-03   -1.5175    
  20  Prefactor     17.282        37.223        .96372E-04   -1.4876    
  21  norm          1.0890        1.7919        .61206E-04   -1.5499    
  22  norm          .10027E-03    1896.2        .18151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2810        .84480E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    115.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.0041        5.4040        .12566E-03   -1.5308    
  26  Prefactor     .10000E-03    79.015        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          31.907        5.9829        .47358E-04   -1.4578    
  28  Prefactor     .10000E-03    10.614        .15184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    44.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    .10000E-01    .12380        .96317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     1.2303        .14338        .18484E-03   -.85405    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.33197e-09
Minuit parameter uncertainties:
  1  6.98057e-05
  2  0.000142904
  3  3.45811e-05
  4  2068.55
  5  0.00292152
  6  2.4466e-05
  7  0.00160253
  8  0.00144458
  9  0.00060419
  10  0.00194939
  11  0.00498718
  12  4.46493e-05
  13  0.000194446
  14  2.63247e-05
  15  1.56576e-05
  16  9.30153e-05
  17  68.8282
  18  4.50756e-05
  19  9.70829
  20  37.2728
  21  1.79196
  22  0.0468728
  23  8.63054e-06
  24  0.000325009
  25  5.40463
  26  0.000192613
  27  5.98298
  28  1.68578e-05
  29  1.42154e-05
  30  7.15443e-06
  31  0.143422
Done.

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

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  1.000e-04  1.566e-05  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.230e+00  1.434e-01  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.000e-02  7.154e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 30.933 30.714
Photon Flux Upper Limit: 3.52e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.62e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/350183/likelihoodResults_577065601_577670401_4FGL_J0203.7+3042_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): 102
logL (Free Index) = 2290.11911988
delta logL = -0.000559455668736

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2290.11856042
delta logL = 2.86217982648e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1311       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2303       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   2290.119     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      232 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    167.91        .13537E-01** at limit **
   2  alpha         1.7134        3.6620        .50000       -.24772E-07
   3  Normalizat    .10000E-01    .47736E-02    .96319E-02** at limit **
   4  Prefactor     1.2303        .25459E-01    .18484E-03    .29523E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.71342
  Normalizat = 0.01
  Prefactor  = 1.23028
 **********
 **   18 **HESSE 
 **********

 FCN=   2290.119     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      261 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1183.0        .14111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7134        3.7609        .50000       -.32007    
   3  Normalizat    .10000E-01    .45911E-01    .19264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2303        .78991E-01    .73934E-05   -.85405    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.6151e-09
Minuit parameter uncertainties:
  1  0.00018454
  2  3929.9
  3  1.41355e-07
  4  0.0789987
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/350183': 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) = 2290.1185599
delta logL = 5.20450157637e-07

Extracting fit parameters...

4FGL J0203.7+3042
   Spectrum: LogParabola
255         norm:  1.000e-04  1.845e-04  1.000e-04  1.000e+04 ( 1.000e-12)
256        alpha:  1.713e+00  3.930e+03  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  9.853e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  8.799e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
571    Prefactor:  1.230e+00  7.900e-02  0.000e+00  1.000e+01 ( 1.000e+00)
572        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
573        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
570   Normalization:  1.000e-02  1.414e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 30.933 30.714

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/350183/cmap_HighResolution_577065601_577670401_4FGL_J0203.7+3042_weekly_bin559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.62e-04', job_status='DONE', photon_flux_upper_limit='3.52e-07', time_completed='2021-07-04 07:49:55.046062', job_id='350183', GAL2='1.23', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625410195.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.23', dlogl='5.20e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='559' AND source_name='4FGL J0203.7+3042' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 07:49:55 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0215>
Subject: Job 350183: <4FGL_J0203.7+3042_weekly_bin559> in cluster <slac> Done

Job <4FGL_J0203.7+3042_weekly_bin559> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 07:37:44 2021
Job was executed on host(s) <bullet0215>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 07:37:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 07:37:46 2021
Terminated at Sun Jul  4 07:49:56 2021
Results reported at Sun Jul  4 07:49:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0203.7+3042_weekly_bin559 30.9327 30.7139 577065601 577670401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0203.7+3042 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   581.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             299.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            732 sec.

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

