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


Performing analysis on: 4FGL_J0427.3+0504_weekly_bin512
RA = 66.8294, Dec = 5.08
tmin = 548640001, tmax = 549244801
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='562357', job_status='RUN', time_executed='2021-07-07 07:14:13.081403', time_epoch_executed='1625667253.08' WHERE source_name='4FGL J0427.3+0504' and cadence='weekly' and bin_id='512'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/562357

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/562357/ft1_4FGL_J0427.3+0504_weekly_bin512.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/562357/ft1_4FGL_J0427.3+0504_weekly_bin512.fits outfile=/scratch/kocevski/562357/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin512.fits ra=66.8294 dec=5.08 rad=12.0 tmin=548640001.0 tmax=549244801.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.49
user 6.15
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.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/562357/ft1_filteredMKT_4FGL_J0427.3+0504_weekly_bin512.fits evtable="EVENTS" outfile="/scratch/kocevski/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.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.61
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits" evtable="EVENTS" scfile=/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits sctable="SC_DATA" outfile=/scratch/kocevski/562357/ltcube_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.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/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits
.....................!
real 35.22
user 34.64
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits evtable="EVENTS" scfile=/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits sctable="SC_DATA" expcube=/scratch/kocevski/562357/ltcube_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits outfile=/scratch/kocevski/562357/expmap_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.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/562357/ltcube_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits
.....................!
real 193.21
user 187.29
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 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/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits scfile=/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits outfile=/scratch/kocevski/562357/cmap_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.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.61
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits scfile=/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits outfile=/scratch/kocevski/562357/cmap_HighResolution_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.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.60
user 0.43
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits', '/scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits', expMap='/scratch/kocevski/562357/expmap_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits', expCube='/scratch/kocevski/562357/ltcube_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/562357/Model_4FGL_J0427.3+0504_weekly_bin512.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/562357/ft1_filtered_4FGL_J0427.3+0504_weekly_bin512.fits
Spacecraft file(s): /scratch/kocevski/562357/ft2_4FGL_J0427.3+0504_weekly_bin512.fits
Exposure map: /scratch/kocevski/562357/expmap_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits
Exposure cube: /scratch/kocevski/562357/ltcube_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/562357/Model_4FGL_J0427.3+0504_weekly_bin512.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) = 4317.6694196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    91.223       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    30.801       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10514E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .11678E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.5913       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .11669E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    26.041       1.0000         .10000E-03   10000.    
    14 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    15 'norm      '    .12527E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .32628E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    1.6655       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .75184       1.0000         .10000E-03   10000.    
    21 'norm      '    13.862       1.0000         .10000E-03   10000.    
    22 'Prefactor '    23.331       1.0000         .10000E-03   10000.    
    23 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    24 'norm      '    5.8794       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    26 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    27 'Prefactor '    1.2824       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4316.954     FROM MIGRAD    STATUS=CONVERGED    149 CALLS     3261 TOTAL
                     EDM=   .63E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     91.250        4.5046       -.14026E-06    .24667E-02
   2  Prefactor     .10001E-03    10.016        .40191E-06** at limit **
   3  norm          30.805        7.7076       -.43155E-06   -.11917E-02
   4  Prefactor     .10046E-03    12.737        .73296E-06** at limit **
   5  norm          .10000E-03    7.5558        .42334E-06** at limit **
   6  Prefactor     .10001E-03    58.512       -.98784E-06** at limit **
   7  norm          .10000E-03    6.2783       -.59996E-06** at limit **
   8  norm          .10010E-03    10.136        .97133E-07** at limit **
   9  norm          3.5899        2.0897       -.26179E-06   -.98876E-05
  10  Prefactor     .10000E-03    1.3387       -.85372E-08** at limit **
  11  Prefactor     .10004E-03    15.882       -.33414E-06** at limit **
  12  Prefactor     .10009E-03    23.171       -.18336E-05** at limit **
  13  Prefactor     26.055        5.7972        .38466E-06    .55077E-02
  14  Prefactor    10000.0        6.7470       -.75149E-06** at limit **
  15  norm          .10001E-03    14.767        .19513E-05** at limit **
  16  Prefactor     .10303E-03    63.094        .50227E-05** at limit **
  17  norm          1.6661        1.9413        .23980E-07    .57158E-04
  18  Prefactor     .10000E-03    12.120        .11971E-05** at limit **
  19  norm          .10000E-03    7.7867        .41334E-06** at limit **
  20  Prefactor     .15398        7328.2        .29900E-04    .75605E-03
  21  norm          13.863        4.2528       -.39605E-07    .81372E-04
  22  Prefactor     22.988        54.592        .31046E-05   -.99735E-02
  23  norm          .10000E-03    .48371        .25580E-06** at limit **
  24  norm          5.8868        6.9013       -.44967E-06    .28057E-03
  25  Prefactor     .10024E-03    20.258        .19569E-05** at limit **
  26  Normalizat    .10000E-01    .93061       -.10716E-05** at limit **
  27  Prefactor     1.2824        .89677E-01    .26628E-05    .32356E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 91.2499
  Prefactor  = 0.000100006
  norm       = 30.805
  Prefactor  = 0.000100461
  norm       = 0.0001
  Prefactor  = 0.000100011
  norm       = 0.0001
  norm       = 0.000100105
  norm       = 3.58988
  Prefactor  = 0.0001
  Prefactor  = 0.000100036
  Prefactor  = 0.000100087
  Prefactor  = 26.0551
  Prefactor  = 10000
  norm       = 0.000100009
  Prefactor  = 0.000103027
  norm       = 1.66611
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.153976
  norm       = 13.8629
  Prefactor  = 22.9884
  norm       = 0.0001
  norm       = 5.88684
  Prefactor  = 0.000100235
  Normalizat = 0.01
  Prefactor  = 1.2824
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.954     FROM HESSE     STATUS=OK           540 CALLS     3801 TOTAL
                     EDM=   .54E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     91.250        125.63        .10518E-02   -1.3795    
   2  Prefactor     .10001E-03    19.849        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          30.805        20.116        .18049E-02   -1.4597    
   4  Prefactor     .10046E-03    27.675        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    7.4459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10001E-03    59.415        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    6.2651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10010E-03    19.212        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.5899        2.2287        .53308E-02   -1.5329    
  10  Prefactor     .10000E-03    1.3220        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10004E-03    16.191        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10009E-03    29.823        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     26.055        16.041        .19625E-02   -1.4687    
  14  Prefactor    10000.0        8172.7        .10103E-01    1.5702    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10001E-03    14.291        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10303E-03    98.245        .10677E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          1.6661        1.9576        .81695E-02   -1.5450    
  18  Prefactor     .10000E-03    12.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    7.7904        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .15398        196.14        .21787       -1.5630    
  21  norm          13.863        4.2790        .26895E-02   -1.4963    
  22  Prefactor     22.988        117.14        .20732E-02   -1.4749    
  23  norm          .10000E-03    .48391        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  norm          5.8868        7.1141        .41405E-02   -1.5223    
  25  Prefactor     .10024E-03    24.028        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Normalizat    .10000E-01    .32027        .32254       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     1.2824        .11797        .32923E-01   -.83832    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.38432e-06
Minuit parameter uncertainties:
  1  125.995
  2  0.00070109
  3  20.1203
  4  0.00714437
  5  7.2972e-06
  6  0.00164611
  7  1.07829e-05
  8  0.00283839
  9  2.22879
  10  2.93189e-07
  11  0.00152433
  12  0.0032237
  13  16.044
  14  5.25623
  15  0.000709715
  16  0.0345492
  17  1.9577
  18  1.0691e-05
  19  7.42139e-06
  20  11.0237
  21  4.27909
  22  104.111
  23  1.08595e-06
  24  7.11515
  25  0.00475507
  26  3.47843e-08
  27  0.117999
Done.

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

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  1.524e-03  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:  1.282e+00  1.180e-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:  1.000e-02  3.478e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/562357/likelihoodResults_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.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) = 4316.9540736
delta logL = -0.000298849590763

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4316.95377474
delta logL = 1.46128513734e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.8505       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2824       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=   4316.954     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      266 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    141.93        .18142E-01** at limit **
   2  Index         2.3635        8.3969        .50000        .66166E-07
   3  Normalizat    .10000E-01    .14673E-01    .15685E-01** at limit **
   4  Prefactor     1.2824        .10341E-01    .15954E-03    .67269E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.36352
  Normalizat = 0.01
  Prefactor  = 1.2824
 **********
 **   18 **HESSE 
 **********

 FCN=   4316.954     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      295 TOTAL
                     EDM=   .37E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    836.91        .27743E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3635        8.6307        .50000       -.55541    
   3  Normalizat    .10000E-01    .97058E-01    .31370E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.2824        .26454E-01    .63816E-05   -.83832    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.70634e-11
Minuit parameter uncertainties:
  1  0.000830912
  2  1807.78
  3  8.64898e-08
  4  0.026454
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/562357': 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) = 4316.95377434
delta logL = 4.14467649534e-07

Extracting fit parameters...

4FGL J0427.3+0504
   Spectrum: PowerLaw
200    Prefactor:  1.000e-04  8.309e-04  1.000e-04  1.000e+04 ( 1.000e-12)
201        Index:  2.364e+00  1.808e+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:  1.282e+00  2.645e-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:  1.000e-02  8.649e-08  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/562357/cmap_HighResolution_548640001_549244801_4FGL_J0427.3+0504_weekly_bin512.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.15e-02', job_status='DONE', photon_flux_upper_limit='2.71e-07', time_completed='2021-07-07 07:24:35.419125', job_id='562357', GAL2='1.28', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1625667875.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='4.14e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.86' WHERE bin_id='512' AND source_name='4FGL J0427.3+0504' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul  7 07:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 562357: <4FGL_J0427.3+0504_weekly_bin512> in cluster <slac> Done

Job <4FGL_J0427.3+0504_weekly_bin512> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Wed Jul  7 07:10:47 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul  7 07:12:58 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:12:58 2021
Terminated at Wed Jul  7 07:24:36 2021
Results reported at Wed Jul  7 07:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0427.3+0504_weekly_bin512 66.8294 5.08 548640001 549244801 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 :                                   605.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   697 sec.
    Turnaround time :                            829 sec.

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

