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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin589
RA = 66.8294, Dec = 5.08
tmin = 595209601, tmax = 595814401
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='563504', job_status='RUN', time_executed='2021-07-07 07:18:53.210430', time_epoch_executed='1625667533.21' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/563504

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/563504/ft1_4FGL_J0427.3+0504_weekly_bin589.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/563504/ft1_4FGL_J0427.3+0504_weekly_bin589.fits outfile=/scratch/kocevski/563504/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin589.fits ra=66.8294 dec=5.08 rad=12.0 tmin=595209601.0 tmax=595814401.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 5.80
user 5.48
sys 0.26

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.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/563504/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin589.fits evtable="EVENTS" outfile="/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.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.58
user 0.36
sys 0.18

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/563504/ltcube_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.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/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits
.....................!
real 30.23
user 29.70
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/563504/ltcube_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits outfile=/scratch/kocevski/563504/expmap_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.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/563504/ltcube_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits
.....................!
real 191.75
user 185.35
sys 5.81

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

Setting source of interest to:
4FGL J0427.3+0504 @ 66.8294 5.08

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits outfile=/scratch/kocevski/563504/cmap_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.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=66.8294 yref=5.08 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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits outfile=/scratch/kocevski/563504/cmap_HighResolution_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.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=66.8294 yref=5.08 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.59
user 0.42
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/563504/Model_4FGL_J0427.3+0504_weekly_bin589.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/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits......................!
real 58.56
user 57.00
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits', '/scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits', expMap='/scratch/kocevski/563504/expmap_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits', expCube='/scratch/kocevski/563504/ltcube_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/563504/Model_4FGL_J0427.3+0504_weekly_bin589.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0427.3+0504'

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  8.580e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/563504/ft1_filtered_4FGL_J0427.3+0504_weekly_bin589.fits
Spacecraft file(s): /scratch/kocevski/563504/ft2_4FGL_J0427.3+0504_weekly_bin589.fits
Exposure map: /scratch/kocevski/563504/expmap_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits
Exposure cube: /scratch/kocevski/563504/ltcube_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/563504/Model_4FGL_J0427.3+0504_weekly_bin589.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) = 2858.28592862

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .48482E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    154.55       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10368E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2275       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10310E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.084       1.0000         .10000E-03   10000.    
    14 'Prefactor '    35.844       1.0000         .10000E-03   10000.    
    15 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .12345E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    48.528       1.0000         .10000E-03   10000.    
    19 'norm      '    7.4552       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .14719E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    1.1102       1.0000         .10000E-03   10000.    
    24 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    15.700       1.0000         .10000E-03   10000.    
    26 'Normalizat'    .47156       1.0000         .10000E-01   10.000    
    27 'Prefactor '    .92907       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2858.281     FROM MIGRAD    STATUS=CONVERGED    642 CALLS     3843 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10016E-03    1264.8       -.97230E-05** at limit **
   2  Prefactor     154.54        152.42       -.77454E-06   -.23236E-04
   3  norm          .10000E-03    15.936        .65097E-07** at limit **
   4  Prefactor     .10000E-03    30.391        .82922E-07** at limit **
   5  norm          .10000E-03    2.1935        .38399E-08** at limit **
   6  Prefactor     .10000E-03    75.655       -.22126E-06** at limit **
   7  norm          .10000E-03    17.792       -.78160E-08** at limit **
   8  norm          .10000E-03    52.940        .21313E-06** at limit **
   9  norm          1.2278        1.4152        .23765E-07    .83114E-04
  10  Prefactor     .10000E-03    1.0572        .27269E-08** at limit **
  11  Prefactor     .10000E-03    52.927        .21670E-06** at limit **
  12  Prefactor     .10000E-03    40.204       -.33027E-06** at limit **
  13  Prefactor     16.077        21.059        .13775E-06    .55208E-04
  14  Prefactor     35.859        59.899        .36218E-06    .40684E-04
  15  norm          .10000E-03    4.8704        .71974E-07** at limit **
  16  Prefactor     .10000E-03    74.154       -.44095E-07** at limit **
  17  norm          .10004E-03    2.6559       -.45955E-06** at limit **
  18  Prefactor     48.534        25.993       -.35715E-06    .30047E-04
  19  norm          7.4571        6.6943        .19719E-05    .62497E-04
  20  Prefactor     .10000E-03    18.556        .12538E-06** at limit **
  21  norm          .10000E-03    1.6317        .10820E-06** at limit **
  22  Prefactor     .10000E-03    48.391        .13187E-07** at limit **
  23  norm          1.1100        .85233        .42832E-07    .60132E-05
  24  norm          .10000E-03    2.2329        .56390E-08** at limit **
  25  Prefactor     15.701        9.2368       -.79819E-07   -.18337E-04
  26  Normalizat    .47190        .44821        .92205E-07    .22832E-04
  27  Prefactor     .92884        .15475       -.81317E-06    .96957E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010016
  Prefactor  = 154.539
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.22784
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.0773
  Prefactor  = 35.8586
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100037
  Prefactor  = 48.5344
  norm       = 7.45714
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.11004
  norm       = 0.0001
  Prefactor  = 15.7013
  Normalizat = 0.471902
  Prefactor  = 0.928839
 **********
 **   18 **HESSE 
 **********

 FCN=   2858.281     FROM HESSE     STATUS=OK           480 CALLS     4323 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10016E-03    1270.6        .21173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     154.54        153.06        .16213E-03   -1.3215    
   3  norm          .10000E-03    15.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    30.401        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    2.1953        .77325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    75.664        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    17.873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    53.023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2278        1.3904        .65368E-04   -1.5486    
  10  Prefactor     .10000E-03    1.0596        .53669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    52.986        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    40.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.077        20.921        .99869E-04   -1.4906    
  14  Prefactor     35.859        60.181        .66938E-04   -1.4510    
  15  norm          .10000E-03    4.9049        .11512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    74.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10004E-03    17.300        .15202E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     48.534        25.913        .57563E-04   -1.4314    
  19  norm          7.4571        6.7115        .60758E-03   -1.5162    
  20  Prefactor     .10000E-03    18.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    2.7245        .13062E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    48.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          1.1100        .83851        .40594E-04   -1.5497    
  24  norm          .10000E-03    2.2405        .77943E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     15.701        9.2358        .10108E-03   -1.4915    
  26  Normalizat    .47190        .43763        .55982E-03   -1.1374    
  27  Prefactor     .92884        .16320        .15896E-03   -.95141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29887e-09
Minuit parameter uncertainties:
  1  0.0291723
  2  153.46
  3  2.53936e-05
  4  4.89653e-05
  5  7.48539e-07
  6  0.000102765
  7  2.85503e-06
  8  0.000181805
  9  1.3904
  10  1.04287e-06
  11  0.000174896
  12  0.000196072
  13  20.9301
  14  60.2836
  15  7.71715e-06
  16  4.51322e-05
  17  0.00160434
  18  25.9195
  19  6.71214
  20  5.15994e-05
  21  1.94341e-05
  22  2.97302e-08
  23  0.838522
  24  5.62608e-07
  25  9.23662
  26  0.440873
  27  0.163288
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.749e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.863e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.288e-01  1.633e-01  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  4.719e-01  4.409e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 66.829 5.080
Photon Flux Upper Limit: 4.98e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/563504/likelihoodResults_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.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) = 2858.28117206
delta logL = -8.98285129551e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2858.28108263
delta logL = -3.98040810978e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11092E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    3.6046       1.0000          .0000       10.000    
     3 'Normalizat'    .47191       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92884       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+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=   2858.281     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      278 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10466E-03    113.93        .18142E-01** at limit **
   2  Index         3.3829        6.6911        .50000        .25208E-05
   3  Normalizat    .47190        .15751E-01    .55982E-03   -.79149E-04
   4  Prefactor     .92884        .62185E-02    .15896E-03   -.51137E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000104659
  Index      = 3.38286
  Normalizat = 0.471897
  Prefactor  = 0.928841
 **********
 **   18 **HESSE 
 **********

 FCN=   2858.281     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      307 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10466E-03    681.08        .35538E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         3.3829        6.2238        .50000       -.32935    
   3  Normalizat    .47190        .39199E-01    .22393E-04   -1.1374    
   4  Prefactor     .92884        .15476E-01    .63583E-05   -.95140    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.36888e-09
Minuit parameter uncertainties:
  1  0.113978
  2  2351.4
  3  0.0392017
  4  0.0154766
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/563504': 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) = 2858.28108241
delta logL = -1.76356024895e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.047e-04  1.140e-01  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  3.383e+00  2.351e+03  0.000e+00  1.000e+01 (-1.000e+00)
202        Scale:  4.135e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
458    Prefactor:  9.288e-01  1.548e-02  0.000e+00  1.000e+01 ( 1.000e+00)
459        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
460        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
457   Normalization:  4.719e-01  3.920e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 66.829 5.080

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/563504/cmap_HighResolution_595209601_595814401_4FGL_J0427.3+0504_weekly_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-02', job_status='DONE', photon_flux_upper_limit='4.98e-07', time_completed='2021-07-07 07:27:57.302335', job_id='563504', GAL2='0.93', fit_tolerance='1e-08', EG2='0.47', EG='0.47', time_epoch_completed='1625668077.3', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='-1.76e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='589' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 07:27:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0153>
Subject: Job 563504: <4FGL_J0427.3+0504_weekly_bin589> in cluster <slac> Done

Job <4FGL_J0427.3+0504_weekly_bin589> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Wed Jul  7 07:15:25 2021
Job was executed on host(s) <bullet0153>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 07:15:57 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul  7 07:15:57 2021
Terminated at Wed Jul  7 07:27:58 2021
Results reported at Wed Jul  7 07:27:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_weekly_bin589 66.8294 5.08 595209601 595814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0427.3+0504 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   530.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             277.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   720 sec.
    Turnaround time :                            753 sec.

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

