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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 104 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 = 17171
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0230.8+4032_weekly_bin508
RA = 37.7086, Dec = 40.5416
tmin = 546220801, tmax = 546825601
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='560639', job_status='RUN', time_executed='2021-07-04 19:21:50.305810', time_epoch_executed='1625451710.31' WHERE source_name='4FGL J0230.8+4032' and cadence='weekly' and bin_id='508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/560639

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/560639/ft1_4FGL_J0230.8+4032_weekly_bin508.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/560639/ft1_4FGL_J0230.8+4032_weekly_bin508.fits outfile=/scratch/kocevski/560639/ft1_filteredMKT_4FGL_J0230.8+4032_weekly_bin508.fits ra=37.7086 dec=40.5416 rad=12.0 tmin=546220801.0 tmax=546825601.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 8.57
user 7.81
sys 0.33

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.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/560639/ft1_filteredMKT_4FGL_J0230.8+4032_weekly_bin508.fits evtable="EVENTS" outfile="/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.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.55
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits" evtable="EVENTS" scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits sctable="SC_DATA" outfile=/scratch/kocevski/560639/ltcube_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.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/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits
.....................!
real 26.52
user 25.59
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits sctable="SC_DATA" expcube=/scratch/kocevski/560639/ltcube_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits outfile=/scratch/kocevski/560639/expmap_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.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/560639/ltcube_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits
.....................!
real 193.95
user 185.52
sys 5.06

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
Extended source W 3 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/W3.fits is the correct path to the extended template.
Added 185 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0230.8+4032 @ 37.7086 40.5416

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits outfile=/scratch/kocevski/560639/cmap_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.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=37.7086 yref=40.5416 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.33
user 0.42
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits outfile=/scratch/kocevski/560639/cmap_HighResolution_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.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=37.7086 yref=40.5416 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.90
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits evtable="EVENTS" scfile=/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/560639/Model_4FGL_J0230.8+4032_weekly_bin508.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
adding source W 3
Working on...
/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits.....................!
real 70.32
user 61.99
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits', '/scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits', expMap='/scratch/kocevski/560639/expmap_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits', expCube='/scratch/kocevski/560639/ltcube_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/560639/Model_4FGL_J0230.8+4032_weekly_bin508.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0230.8+4032'

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  3.060e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/560639/ft1_filtered_4FGL_J0230.8+4032_weekly_bin508.fits
Spacecraft file(s): /scratch/kocevski/560639/ft2_4FGL_J0230.8+4032_weekly_bin508.fits
Exposure map: /scratch/kocevski/560639/expmap_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits
Exposure cube: /scratch/kocevski/560639/ltcube_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/560639/Model_4FGL_J0230.8+4032_weekly_bin508.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) = 4152.15135301

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.3145       1.0000         .10000E-03   10000.    
     2 'Prefactor '    18.028       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.1587       1.0000         .10000E-03   10000.    
     6 'norm      '    8.6055       1.0000         .10000E-03   10000.    
     7 'Prefactor '    32.448       1.0000         .10000E-03   10000.    
     8 'norm      '    14.032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.1617       1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.256       1.0000         .10000E-03   10000.    
    15 'norm      '    43.806       1.0000         .10000E-03   10000.    
    16 'norm      '    8.7692       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    6.4507       1.0000         .10000E-03   10000.    
    19 'norm      '    9.6906       1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.8084       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .42412E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    13.731       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.7586       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .64883       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4152.112     FROM MIGRAD    STATUS=CONVERGED    579 CALLS     2919 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3147        4.1178        .49373E-06   -.19765E-05
   2  Prefactor     18.029        21.644       -.10263E-05    .23948E-05
   3  Prefactor     .10000E-03    3.7065        .48311E-06** at limit **
   4  Prefactor     .10000E-03    22.771        .51026E-06** at limit **
   5  Prefactor     9.0852        312.07       -.19737E-03   -.29039E-06
   6  norm          8.6055        11.645        .28903E-05   -.47260E-04
   7  Prefactor     32.452        25.362       -.45998E-05   -.66996E-05
   8  norm          14.032        8.4778       -.68972E-05    .38724E-04
   9  Prefactor     .10000E-03    10.840        .27925E-06** at limit **
  10  norm          .10000E-03    .75702       -.54095E-06** at limit **
  11  norm          .10000E-03    .36227        .42080E-06** at limit **
  12  Prefactor     .10001E-03    8.6747       -.16165E-05** at limit **
  13  norm          6.1633        13.862       -.11139E-04   -.22438E-03
  14  Prefactor     21.453        101.04        .32189E-03    .47217E-04
  15  norm          43.806        8.3854        .83306E-07   -.38375E-04
  16  norm          8.7687        23.348        .33948E-05   -.23187E-04
  17  Prefactor     .10000E-03    40.302       -.82683E-06** at limit **
  18  Prefactor     6.4507        5.3166        .45564E-06   -.11129E-03
  19  norm          9.6881        13.118       -.50563E-06   -.11754E-03
  20  norm          .10000E-03    12.927       -.36090E-06** at limit **
  21  Prefactor     9.7324        35.969        .42225E-04   -.14568E-04
  22  Prefactor     .10008E-03    472.97       -.98888E-05** at limit **
  23  norm          13.734        2.6921       -.12758E-05    .26123E-03
  24  Normalizat    1.7584        .41022       -.53508E-05   -.73212E-04
  25  Prefactor     .64890        .13744       -.40019E-05   -.10179E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 5.31468
  Prefactor  = 18.0295
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 9.08523
  norm       = 8.60546
  Prefactor  = 32.4518
  norm       = 14.0321
  Prefactor  = 0.0001
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 6.16331
  Prefactor  = 21.4529
  norm       = 43.8059
  norm       = 8.76875
  Prefactor  = 0.0001
  Prefactor  = 6.45075
  norm       = 9.68812
  norm       = 0.0001
  Prefactor  = 9.73241
  Prefactor  = 0.000100079
  norm       = 13.7336
  Normalizat = 1.75839
  Prefactor  = 0.648898
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.112     FROM HESSE     STATUS=OK           431 CALLS     3350 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3147        4.1227        .11151E-03   -1.5247    
   2  Prefactor     18.029        21.659        .94330E-04   -1.4858    
   3  Prefactor     .10000E-03    3.7240        .12113E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    22.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.0852        317.29        .13243E-03   -1.5105    
   6  norm          8.6055        11.633        .13665E-03   -1.5121    
   7  Prefactor     32.452        25.437        .70344E-04   -1.4568    
   8  norm          14.032        8.4235        .10693E-03   -1.4959    
   9  Prefactor     .10000E-03    10.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .77159        .10841E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .58843        .74970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    8.7049        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.1633        13.826        .16173E-03   -1.5211    
  14  Prefactor     21.453        100.79        .86877E-04   -1.4781    
  15  norm          43.806        8.3896        .60573E-04   -1.4383    
  16  norm          8.7687        23.352        .13536E-03   -1.5116    
  17  Prefactor     .10000E-03    40.313        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     6.4507        5.3181        .12935E-03   -1.5200    
  19  norm          9.6881        13.168        .12873E-03   -1.5085    
  20  norm          .10000E-03    12.932        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.7324        36.052        .12795E-03   -1.5084    
  22  Prefactor     .10008E-03    473.02        .21237E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          13.734        2.7025        .38926E-04   -1.4967    
  24  Normalizat    1.7584        .46010        .41529E-03   -.70755    
  25  Prefactor     .64890        .15372        .22200E-03   -1.0556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.05572e-09
Minuit parameter uncertainties:
  1  4.12291
  2  21.6689
  3  9.4148e-05
  4  7.53899e-05
  5  108.006
  6  11.6361
  7  25.4456
  8  8.42426
  9  3.93165e-05
  10  4.73682e-05
  11  3.21271e-05
  12  0.000465256
  13  13.8334
  14  93.2558
  15  8.38982
  16  23.3766
  17  9.05398e-06
  18  5.31846
  19  13.1715
  20  1.41246e-06
  21  36.1323
  22  0.0123131
  23  2.70255
  24  0.461235
  25  0.15382
Done.

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

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  6.163e+00  1.383e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.306e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  6.489e-01  1.538e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.758e+00  4.612e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.25
Ra Dec: 37.709 40.542
Photon Flux Upper Limit: 2.41e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.57e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/560639/likelihoodResults_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.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) = 4152.11123699
delta logL = 0.000264436003818

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4152.11122429
delta logL = 0.000277130684481

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2012       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2604       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7600       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64860       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6280E+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=   4152.111     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      258 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2191        14.181        .16121E-03   -.30035E-03
   2  alpha         2.2627        1.6760        .37788E-01   -.22869E-04
   3  Normalizat    1.7598        .42674        .41515E-03   -.57335E-03
   4  Prefactor     .64861        .14622        .22204E-03   -.10541E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 6.21912
  alpha      = 2.26269
  Normalizat = 1.75979
  Prefactor  = 0.648608
 **********
 **   18 **HESSE 
 **********

 FCN=   4152.111     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2191        13.971        .64483E-05   -1.5209    
   2  alpha         2.2627        1.6546        .15115E-02   -.95068E-01
   3  Normalizat    1.7598        .42681        .83030E-04   -.70718    
   4  Prefactor     .64861        .14623        .44409E-04   -1.0558    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.76349e-09
Minuit parameter uncertainties:
  1  13.9787
  2  1.81005
  3  0.427714
  4  0.146321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/560639': 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) = 4152.1112224
delta logL = 0.00027902155125

Extracting fit parameters...

4FGL J0230.8+4032
   Spectrum: LogParabola
305         norm:  6.219e+00  1.398e+01  1.000e-04  1.000e+04 ( 1.000e-12)
306        alpha:  2.263e+00  1.810e+00  0.000e+00  5.000e+00 ( 1.000e+00)
307         beta:  1.406e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
308           Eb:  7.188e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
621    Prefactor:  6.486e-01  1.463e-01  0.000e+00  1.000e+01 ( 1.000e+00)
622        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
623        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
620   Normalization:  1.760e+00  4.277e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.25
Ra Dec: 37.709 40.542

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/560639/cmap_HighResolution_546220801_546825601_4FGL_J0230.8+4032_weekly_bin508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.57e-05', job_status='DONE', photon_flux_upper_limit='2.41e-07', time_completed='2021-07-04 19:34:47.972349', job_id='560639', GAL2='0.65', fit_tolerance='1e-08', EG2='1.76', EG='1.76', time_epoch_completed='1625452487.97', return_code2='0', ts='0.25', comment='SUCCESS', return_code='0', GAL='0.65', dlogl='2.79e-04', ts2='0.25', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='508' AND source_name='4FGL J0230.8+4032' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul  4 19:34:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 560639: <4FGL_J0230.8+4032_weekly_bin508> in cluster <slac> Done

Job <4FGL_J0230.8+4032_weekly_bin508> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Jul  4 19:18:28 2021
Job was executed on host(s) <bullet0108>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul  4 19:18:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul  4 19:18:29 2021
Terminated at Sun Jul  4 19:34:49 2021
Results reported at Sun Jul  4 19:34:49 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0230.8+4032_weekly_bin508 37.7086 40.5416 546220801 546825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0230.8+4032 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   669.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             273.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

