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 5 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 = 17162
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1527.3+3117_weekly_bin668
RA = 231.849, Dec = 31.2989
tmin = 642988801, tmax = 643593601
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='72597', job_status='RUN', time_executed='2021-07-23 10:56:36.957415', time_epoch_executed='1627062996.96' WHERE source_name='4FGL J1527.3+3117' and cadence='weekly' and bin_id='668'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/72597

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/72597/ft1_4FGL_J1527.3+3117_weekly_bin668.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/72597/ft1_4FGL_J1527.3+3117_weekly_bin668.fits outfile=/scratch/kocevski/72597/ft1_filteredMKT_4FGL_J1527.3+3117_weekly_bin668.fits ra=231.849 dec=31.2989 rad=12.0 tmin=642988801.0 tmax=643593601.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.11
user 5.83
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.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/72597/ft1_filteredMKT_4FGL_J1527.3+3117_weekly_bin668.fits evtable="EVENTS" outfile="/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits" evtable="EVENTS" scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits sctable="SC_DATA" outfile=/scratch/kocevski/72597/ltcube_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.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/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits
.....................!
real 24.54
user 24.21
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits sctable="SC_DATA" expcube=/scratch/kocevski/72597/ltcube_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits outfile=/scratch/kocevski/72597/expmap_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.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/72597/ltcube_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits
.....................!
real 155.47
user 151.33
sys 3.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 180 point sources and 0 extended sources

Setting source of interest to:
4FGL J1527.3+3117 @ 231.849 31.2989

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits outfile=/scratch/kocevski/72597/cmap_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.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=231.849 yref=31.2989 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.53
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits outfile=/scratch/kocevski/72597/cmap_HighResolution_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.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=231.849 yref=31.2989 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.53
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits evtable="EVENTS" scfile=/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/72597/Model_4FGL_J1527.3+3117_weekly_bin668.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/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits.....................!
real 68.84
user 67.61
sys 1.08

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits', '/scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits', expMap='/scratch/kocevski/72597/expmap_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits', expCube='/scratch/kocevski/72597/ltcube_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/72597/Model_4FGL_J1527.3+3117_weekly_bin668.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1527.3+3117'

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.294e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.570e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/72597/ft1_filtered_4FGL_J1527.3+3117_weekly_bin668.fits
Spacecraft file(s): /scratch/kocevski/72597/ft2_4FGL_J1527.3+3117_weekly_bin668.fits
Exposure map: /scratch/kocevski/72597/expmap_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits
Exposure cube: /scratch/kocevski/72597/ltcube_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/72597/Model_4FGL_J1527.3+3117_weekly_bin668.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) = 12801.3711879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .84916       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7178       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.3260       1.0000         .10000E-03   10000.    
     4 'norm      '    4.2477       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .16457E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30480       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .92054       1.0000         .10000E-03   10000.    
     8 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11799E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10482E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .64968       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.476       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.2793       1.0000         .10000E-03   10000.    
    17 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.3927       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .18263E-02   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2990       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .98543       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86160       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   12801.34     FROM MIGRAD    STATUS=CONVERGED    532 CALLS     2719 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .85065        2.5180       -.49585E-06   -.49705E-03
   2  norm          2.7182        2.5716       -.36798E-07   -.31837E-03
   3  Prefactor     7.3266        11.450       -.29908E-07    .69111E-05
   4  norm          4.2486        3.7490        .32689E-07   -.32306E-04
   5  Prefactor     .10000E-03    13.821       -.21878E-06** at limit **
   6  Prefactor     .27794        1.8307       -.59976E-07   -.16085E-03
   7  Prefactor     .92173        2.7179       -.70815E-06   -.54226E-03
   8  norm          .10000E-03    .25635        .13892E-07** at limit **
   9  Prefactor     .10000E-03    14.142        .23126E-06** at limit **
  10  Prefactor     .10000E-03    42.246       -.21746E-06** at limit **
  11  Prefactor     .10000E-03    2.2760       -.47142E-08** at limit **
  12  Prefactor     .10000E-03    3.7781        .12035E-07** at limit **
  13  norm          .64964        .66298       -.54984E-07    .24468E-03
  14  Prefactor     .10000E-03    2.9169        .36456E-07** at limit **
  15  Prefactor     20.474        15.704       -.14415E-07    .10351E-03
  16  Prefactor     4.2831        6.8827        .30348E-06   -.14384E-02
  17  norm          .10000E-03    3.8918        .20239E-07** at limit **
  18  Prefactor     3.3927        1.5080       -.18389E-07    .56509E-03
  19  Prefactor     .10003E-03    7.8568        .76601E-07** at limit **
  20  Prefactor     .10000E-03    2.0527       -.77456E-08** at limit **
  21  Prefactor     2.2989        1.7653       -.24979E-07   -.65415E-04
  22  Normalizat    .98553        .11046        .93936E-07    .59657E-05
  23  Prefactor     .86153        .87498E-01    .52497E-07   -.27070E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.850652
  norm       = 2.71816
  Prefactor  = 7.3266
  norm       = 4.2486
  Prefactor  = 0.000100003
  Prefactor  = 0.277942
  Prefactor  = 0.921727
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.649639
  Prefactor  = 0.0001
  Prefactor  = 20.4741
  Prefactor  = 4.28308
  norm       = 0.0001
  Prefactor  = 3.39267
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 2.2989
  Normalizat = 0.985528
  Prefactor  = 0.861527
 **********
 **   18 **HESSE 
 **********

 FCN=   12801.34     FROM HESSE     STATUS=OK           380 CALLS     3099 TOTAL
                     EDM=   .43E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .85065        3.0111        .36082E-03   -1.5524    
   2  norm          2.7182        2.5771        .17213E-03   -1.5378    
   3  Prefactor     7.3266        11.459        .14819E-03   -1.5167    
   4  norm          4.2486        3.7563        .19550E-03   -1.5296    
   5  Prefactor     .10000E-03    14.308        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27794        13.936        .28429E-02   -1.5603    
   7  Prefactor     .92173        3.8650        .42790E-03   -1.5516    
   8  norm          .10000E-03    .34610        .10841E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    14.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    42.459        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    29.297        .32352E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .64964        .62633        .87753E-03   -1.5547    
  14  Prefactor     .10000E-03    2.9445        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     20.474        15.663        .88514E-04   -1.4803    
  16  Prefactor     4.2831        6.7989        .19476E-03   -1.5294    
  17  norm          .10000E-03    3.9083        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.3927        1.5067        .88925E-04   -1.5340    
  19  Prefactor     .10003E-03    39.130        .61631E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.0689        .15829E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.2989        1.7648        .12752E-03   -1.5405    
  22  Normalizat    .98553        .12745        .23000E-03   -.93517    
  23  Prefactor     .86153        .10192        .20161E-03   -.97499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.33744e-08
Minuit parameter uncertainties:
  1  3.01162
  2  2.57724
  3  11.4624
  4  3.75655
  5  0.00041373
  6  3.93648
  7  3.77513
  8  4.04085e-06
  9  0.000392982
  10  0.000635211
  11  0.000167762
  12  1.33506e-05
  13  0.626335
  14  1.37644e-05
  15  15.666
  16  6.80011
  17  3.52094e-05
  18  1.50667
  19  0.00199808
  20  2.93129e-06
  21  1.76483
  22  0.127488
  23  0.101939
Done.

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

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  1.376e-05  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.570e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.615e-01  1.019e-01  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.855e-01  1.275e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 231.849 31.299
Photon Flux Upper Limit: 4.28e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/72597/likelihoodResults_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.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) = 12801.3416736
delta logL = -0.00161952731833

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 12801.3400541
delta logL = 3.80168785341e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.5709       1.0000          .0000       10.000    
     3 'Normalizat'    .98553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86153       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5820E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   12801.34     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      199 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.266        .90712E-02** at limit **
   2  Index         2.5723        6.0878        .50000       -.49599E-05
   3  Normalizat    .98553        .71755E-02    .45985E-01    .60115E-04
   4  Prefactor     .86153        .59518E-02    .44513E-01    .35461E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.57231
  Normalizat = 0.985528
  Prefactor  = 0.861527
 **********
 **   18 **HESSE 
 **********

 FCN=   12801.34     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      232 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    231.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.5723        6.1975        .50000       -.50698    
   3  Normalizat    .98553        .27144E-01    .23000E-03   -.93517    
   4  Prefactor     .86153        .22508E-01    .20161E-03   -.97499    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.36101e-11
Minuit parameter uncertainties:
  1  0.000234662
  2  38.9518
  3  0.0271444
  4  0.0225082
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/72597': 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) = 12801.3400541
delta logL = 2.91765900329e-09

Extracting fit parameters...

4FGL J1527.3+3117
   Spectrum: PowerLaw
262    Prefactor:  1.000e-04  2.347e-04  1.000e-04  1.000e+04 ( 1.000e-13)
263        Index:  2.572e+00  3.895e+01  0.000e+00  1.000e+01 (-1.000e+00)
264        Scale:  1.325e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
579    Prefactor:  8.615e-01  2.251e-02  0.000e+00  1.000e+01 ( 1.000e+00)
580        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
581        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
578   Normalization:  9.855e-01  2.714e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 231.849 31.299

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/72597/cmap_HighResolution_642988801_643593601_4FGL_J1527.3+3117_weekly_bin668.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.28e-08', time_completed='2021-07-23 11:11:59.977732', job_id='72597', GAL2='0.86', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1627063919.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='2.92e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.57' WHERE bin_id='668' AND source_name='4FGL J1527.3+3117' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 23 11:12:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0135>
Subject: Job 72597: <4FGL_J1527.3+3117_weekly_bin668> in cluster <slac> Done

Job <4FGL_J1527.3+3117_weekly_bin668> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Jul 23 10:56:05 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 23 10:56:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 23 10:56:25 2021
Terminated at Fri Jul 23 11:12:00 2021
Results reported at Fri Jul 23 11:12:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1527.3+3117_weekly_bin668 231.849 31.2989 642988801 643593601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1527.3+3117 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   908.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             343.26 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            955 sec.

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

