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


Performing analysis on: 4FGL_J1012.7+2439_weekly_bin550
RA = 153.199, Dec = 24.6638
tmin = 571622401, tmax = 572227201
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='212898', job_status='RUN', time_executed='2021-07-16 13:05:19.212408', time_epoch_executed='1626465919.21' WHERE source_name='4FGL J1012.7+2439' and cadence='weekly' and bin_id='550'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/212898

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/212898/ft1_4FGL_J1012.7+2439_weekly_bin550.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/212898/ft1_4FGL_J1012.7+2439_weekly_bin550.fits outfile=/scratch/kocevski/212898/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin550.fits ra=153.199 dec=24.6638 rad=12.0 tmin=571622401.0 tmax=572227201.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.46
user 5.19
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.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/212898/ft1_filteredMKT_4FGL_J1012.7+2439_weekly_bin550.fits evtable="EVENTS" outfile="/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.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.57
user 0.39
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits" evtable="EVENTS" scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits sctable="SC_DATA" outfile=/scratch/kocevski/212898/ltcube_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.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/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits
.....................!
real 35.51
user 34.95
sys 0.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits sctable="SC_DATA" expcube=/scratch/kocevski/212898/ltcube_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits outfile=/scratch/kocevski/212898/expmap_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.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/212898/ltcube_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits
.....................!
real 195.22
user 188.07
sys 6.30

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

Setting source of interest to:
4FGL J1012.7+2439 @ 153.199 24.6638

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits outfile=/scratch/kocevski/212898/cmap_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.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=153.199 yref=24.6638 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.42
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits outfile=/scratch/kocevski/212898/cmap_HighResolution_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.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=153.199 yref=24.6638 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.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits evtable="EVENTS" scfile=/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/212898/Model_4FGL_J1012.7+2439_weekly_bin550.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/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits................................!
real 17.40
user 15.94
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits', '/scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits', expMap='/scratch/kocevski/212898/expmap_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits', expCube='/scratch/kocevski/212898/ltcube_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/212898/Model_4FGL_J1012.7+2439_weekly_bin550.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1012.7+2439'

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  8.685e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/212898/ft1_filtered_4FGL_J1012.7+2439_weekly_bin550.fits
Spacecraft file(s): /scratch/kocevski/212898/ft2_4FGL_J1012.7+2439_weekly_bin550.fits
Exposure map: /scratch/kocevski/212898/expmap_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits
Exposure cube: /scratch/kocevski/212898/ltcube_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/212898/Model_4FGL_J1012.7+2439_weekly_bin550.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 423.155261716

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 418.055184456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.9222       1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.2265       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.2732       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.5243       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3451       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.0355       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .45353E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .66459E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    308.35       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.3974       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.7248       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.915       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.8049       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.491       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10108E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.068       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15817E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.697       1.0000         .10000E-03   10000.    
    19 'Prefactor '    63.315       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.0765       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2221       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   417.7608     FROM MIGRAD    STATUS=CONVERGED    283 CALLS      448 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.9222        1.0020         .0000         .0000    
   2  Prefactor     1.2265        1.1254         .0000         .0000    
   3  Prefactor     6.2732        1.0032         .0000         .0000    
   4  Prefactor     .43003E-03    1009.5       -.10382E-04** at limit **
   5  Prefactor     .10012E-03    274.80       -.62765E-05** at limit **
   6  Prefactor     .10040E-03    247.86        .38120E-05** at limit **
   7  Prefactor     .18829E-03    340.31       -.84177E-05** at limit **
   8  Prefactor     .32525E-03    202.32       -.62584E-05** at limit **
   9  norm          312.64        4.6982        .13174E-06    .87165E-03
  10  Prefactor     .10223E-03    85.263        .22963E-05** at limit **
  11  Prefactor     .47790E-02    1356.9       -.12875E-04    .18419E-02
  12  Prefactor     .12148E-03    109.69       -.55384E-05** at limit **
  13  Prefactor     600.32        859.76        .20062E-04    .28895E-03
  14  Prefactor     18.590        27.207       -.51666E-06   -.36943E-03
  15  Prefactor     .10000E-03    9.0646        .19427E-05** at limit **
  16  Prefactor     25.327        39.936        .56730E-05    .90395E-02
  17  Prefactor     .10003E-03    87.895       -.55448E-06** at limit **
  18  Prefactor     64.386        40.954        .11198E-05   -.22610E-01
  19  Prefactor     61.500        55.527        .11665E-05   -.67865E-02
  20  Prefactor     .10341E-03    483.61       -.65297E-05** at limit **
  21  Normalizat    .10000E-01    .21696       -.50597E-07** at limit **
  22  Prefactor     1.1531        .35695       -.13316E-04    .13204E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.92223
  Prefactor  = 1.22652
  Prefactor  = 6.27317
  Prefactor  = 0.000430034
  Prefactor  = 0.000100122
  Prefactor  = 0.000100403
  Prefactor  = 0.000188289
  Prefactor  = 0.000325252
  norm       = 312.635
  Prefactor  = 0.000102234
  Prefactor  = 0.00477904
  Prefactor  = 0.000121479
  Prefactor  = 600.32
  Prefactor  = 18.5896
  Prefactor  = 0.0001
  Prefactor  = 25.3269
  Prefactor  = 0.000100032
  Prefactor  = 64.3857
  Prefactor  = 61.4999
  Prefactor  = 0.000103408
  Normalizat = 0.01
  Prefactor  = 1.15305
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   417.7608     FROM HESSE     STATUS=FAILED        11 CALLS      459 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     505.84        497.89         .0000       -1.5145    
   2  Prefactor     1.2265        1.1254         .0000       -1.5486    
   3  Prefactor     6.2732        1.0032         .0000       -1.5207    
   4  Prefactor     .43003E-03    .55976E-01   -.10382E-04   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10012E-03    .22280       -.62765E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10040E-03    .38344        .38120E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .18829E-03    .21378       -.84177E-05   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .32525E-03    .21856       -.62584E-05   -1.5711    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          312.64        1.0067        .13174E-06   -1.2153    
  10  Prefactor     .10223E-03    .75279E-01    .22963E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .47790E-02    .95096E-01   -.12875E-04   -1.5694    
  12  Prefactor     .12148E-03    .21045E-01   -.55384E-05   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     600.32        8.5238        .20062E-04   -1.0757    
  14  Prefactor     18.590        1.0030       -.51666E-06   -1.4845    
  15  Prefactor     .10000E-03    .20571        .19427E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     25.327        1.0479        .56730E-05   -1.4701    
  17  Prefactor     .10003E-03    .20711       -.55448E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.386        .99763        .11198E-05   -1.4101    
  19  Prefactor     61.500        .98568        .11665E-05   -1.4138    
  20  Prefactor     .10341E-03    .33904       -.65297E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .25505       -.50597E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1531        1.0690       -.13316E-04   -.87788    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.21591e-09
Minuit parameter uncertainties:
  1  1.002
  2  1.12546
  3  1.00321
  4  0.00859625
  5  0.000330072
  6  0.000785929
  7  0.00868903
  8  0.014033
  9  1.0067
  10  0.000820101
  11  0.0421882
  12  0.00134463
  13  8.52379
  14  1.00303
  15  1.30273e-05
  16  1.04794
  17  0.000163594
  18  0.997633
  19  0.985679
  20  0.00214982
  21  1.12661e-06
  22  1.09
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 417.760830219

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.126e+02  1.007e+00  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  2.169e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.153e+00  1.090e+00  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.000e-02  1.127e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.34
Ra Dec: 153.199 24.664
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 1.13e-06 +/- 3.63e-09
Energy Flux (Fixed Index): 4.44e-04 +/- 1.43e-06

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) = 417.58671536
delta logL = 0.17411485872

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 417.585381077
delta logL = 0.175449142062

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    325.65       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7151       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1520       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   417.5854     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      183 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          325.65        252.95        .56340E-03   -.46836E-03
   2  alpha         1.7154        .71105        .13860       -.91506E-06
   3  Normalizat    .10000E-01    .21386        .13332    ** at limit **
   4  Prefactor     1.1520        .33214        .35878E-01   -.57208E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 325.645
  alpha      = 1.71535
  Normalizat = 0.01
  Prefactor  = 1.152
 **********
 **   18 **HESSE 
 **********

 FCN=   417.5854     FROM HESSE     STATUS=OK            29 CALLS      212 TOTAL
                     EDM=   .46E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          325.65        255.34        .11268E-03   -1.2079    
   2  alpha         1.7154        .72423        .60722E-03   -.31925    
   3  Normalizat    .10000E-01    .21663        .57314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1520        .32475        .20285E-03   -.87822    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.56855e-09
Minuit parameter uncertainties:
  1  256.225
  2  0.735964
  3  1.13637e-07
  4  0.325314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/212898': 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) = 417.585381019
delta logL = 0.175449200293

Extracting fit parameters...

4FGL J1012.7+2439
   Spectrum: LogParabola
207         norm:  3.256e+02  2.562e+02  1.000e-04  1.000e+04 ( 1.000e-12)
208        alpha:  1.715e+00  7.360e-01  0.000e+00  5.000e+00 ( 1.000e+00)
209         beta:  1.367e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
210           Eb:  6.187e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.152e+00  3.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.000e-02  1.136e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.61
Ra Dec: 153.199 24.664
Photon Index (Free Index): 1.72 +/- 0.74
Photon Flux (Free Index): 8.35e-07 +/- 7.80e-07
Energy Flux (Free Index): 6.34e-04 +/- 7.05e-04

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/212898/cmap_HighResolution_571622401_572227201_4FGL_J1012.7+2439_weekly_bin550.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.13e-06', energy_flux2='6.34e-04', photon_flux_error='3.63e-09', dlogl='1.75e-01', energy_flux='4.44e-04', photon_flux2='8.35e-07', job_status='DONE', time_completed='2021-07-16 13:11:41.482385', photon_index_error2='0.74', photon_index2='1.72', ts='5.34', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='7.05e-04', EG='0.01', time_epoch_completed='1626466301.48', return_code='101', job_id='212898', GAL2='1.15', EG2='0.01', return_code2='0', energy_flux_error='1.43e-06', photon_flux_error2='7.80e-07', ts2='5.61', photon_index='2.17' WHERE bin_id='550' AND source_name='4FGL J1012.7+2439' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Fri Jul 16 13:11:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0174>
Subject: Job 212898: <4FGL_J1012.7+2439_weekly_bin550> in cluster <slac> Done

Job <4FGL_J1012.7+2439_weekly_bin550> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Fri Jul 16 12:55:26 2021
Job was executed on host(s) <bullet0174>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jul 16 13:05:06 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jul 16 13:05:06 2021
Terminated at Fri Jul 16 13:11:41 2021
Results reported at Fri Jul 16 13:11:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1012.7+2439_weekly_bin550 153.199 24.6638 571622401 572227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1012.7+2439 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   372.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             451.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   396 sec.
    Turnaround time :                            975 sec.

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

