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


Performing analysis on: 4FGL_J0710.9+4733_weekly_bin418
RA = 107.732, Dec = 47.553
tmin = 491788801, tmax = 492393601
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='960691', job_status='RUN', time_executed='2021-07-10 19:34:32.259548', time_epoch_executed='1625970872.26' WHERE source_name='4FGL J0710.9+4733' and cadence='weekly' and bin_id='418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/960691

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/960691/ft1_4FGL_J0710.9+4733_weekly_bin418.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/960691/ft1_4FGL_J0710.9+4733_weekly_bin418.fits outfile=/scratch/kocevski/960691/ft1_filteredMKT_4FGL_J0710.9+4733_weekly_bin418.fits ra=107.732 dec=47.553 rad=12.0 tmin=491788801.0 tmax=492393601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 8.58
user 8.13
sys 0.32

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.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/960691/ft1_filteredMKT_4FGL_J0710.9+4733_weekly_bin418.fits evtable="EVENTS" outfile="/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.55
user 0.36
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits" evtable="EVENTS" scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits sctable="SC_DATA" outfile=/scratch/kocevski/960691/ltcube_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.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/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits
.....................!
real 26.50
user 25.95
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits sctable="SC_DATA" expcube=/scratch/kocevski/960691/ltcube_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits outfile=/scratch/kocevski/960691/expmap_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.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/960691/ltcube_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits
.....................!
real 193.84
user 188.31
sys 4.77

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

Setting source of interest to:
4FGL J0710.9+4733 @ 107.732 47.553

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits outfile=/scratch/kocevski/960691/cmap_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.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=107.732 yref=47.553 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.41
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits outfile=/scratch/kocevski/960691/cmap_HighResolution_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.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=107.732 yref=47.553 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.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits evtable="EVENTS" scfile=/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/960691/Model_4FGL_J0710.9+4733_weekly_bin418.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/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits.....................!
real 36.27
user 34.66
sys 1.22

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits', '/scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits', expMap='/scratch/kocevski/960691/expmap_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits', expCube='/scratch/kocevski/960691/ltcube_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/960691/Model_4FGL_J0710.9+4733_weekly_bin418.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0710.9+4733'

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  1.663e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/960691/ft1_filtered_4FGL_J0710.9+4733_weekly_bin418.fits
Spacecraft file(s): /scratch/kocevski/960691/ft2_4FGL_J0710.9+4733_weekly_bin418.fits
Exposure map: /scratch/kocevski/960691/expmap_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits
Exposure cube: /scratch/kocevski/960691/ltcube_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/960691/Model_4FGL_J0710.9+4733_weekly_bin418.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) = 2637.93585933

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    54.055       1.0000         .10000E-03   10000.    
     4 'norm      '    2.3496       1.0000         .10000E-03   10000.    
     5 'norm      '    7.6235       1.0000         .10000E-03   10000.    
     6 'Prefactor '    18.320       1.0000         .10000E-03   10000.    
     7 'norm      '    .10195E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.3347       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    43.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.0564       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4923       1.0000         .10000E-03   10000.    
    15 'Prefactor '    166.77       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7840       1.0000         .10000E-03   10000.    
    17 'Prefactor '    56.188       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10045E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.403       1.0000         .10000E-03   10000.    
    20 'Prefactor '    41.207       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.233       1.0000         .10000E-03   10000.    
    23 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99814       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6020E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   2637.923     FROM MIGRAD    STATUS=CONVERGED    553 CALLS     2949 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.3429        .14226E-06** at limit **
   2  Prefactor     .10000E-03    4.5728        .18164E-06** at limit **
   3  Prefactor     54.038        115.31        .26875E-07    .20026E-04
   4  norm          2.3409        51.009        .84562E-06    .41455E-04
   5  norm          7.6216        7.8414       -.18543E-06    .92276E-04
   6  Prefactor     18.309        53.674       -.17906E-06    .45125E-04
   7  norm          .10000E-03    14.250        .22444E-06** at limit **
   8  Prefactor     .10000E-03    40.814       -.58804E-06** at limit **
   9  Prefactor     5.3312        20.459        .17810E-06    .70808E-04
  10  Prefactor     .10000E-03    59.794       -.80610E-07** at limit **
  11  Prefactor     .10000E-03    58.598       -.32481E-05** at limit **
  12  norm          43.648        28.191       -.26392E-06    .92301E-04
  13  Prefactor     5.7274        455.73        .19578E-04    .81555E-05
  14  Prefactor     7.4726        25.412        .34581E-06    .10945E-03
  15  Prefactor     166.76        154.67        .10421E-05    .40813E-04
  16  norm          1.7869        3.7409       -.20185E-05   -.14306E-03
  17  Prefactor     56.185        55.626        .44863E-06    .47562E-04
  18  Prefactor     .10000E-03    63.261        .10677E-05** at limit **
  19  norm          13.404        11.076        .15913E-09    .63986E-04
  20  Prefactor     41.203        27.069       -.11128E-06    .72772E-04
  21  Prefactor     .10000E-03    53.477       -.80272E-06** at limit **
  22  norm          14.234        16.221        .10171E-06    .35958E-04
  23  norm          .10000E-03    3.1997        .23353E-07** at limit **
  24  Normalizat    .10000E-01    .22271       -.66969E-05** at limit **
  25  Prefactor     .99810        .10012        .48001E-07    .56774E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 54.0384
  norm       = 2.34086
  norm       = 7.62161
  Prefactor  = 18.3089
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.33121
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 43.6477
  Prefactor  = 5.72742
  Prefactor  = 7.47261
  Prefactor  = 166.762
  norm       = 1.78686
  Prefactor  = 56.1847
  Prefactor  = 0.0001
  norm       = 13.4035
  Prefactor  = 41.2026
  Prefactor  = 0.0001
  norm       = 14.2337
  norm       = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.998095
 **********
 **   18 **HESSE 
 **********

 FCN=   2637.923     FROM HESSE     STATUS=OK           421 CALLS     3370 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.3510        .76775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    4.5758        .10727E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     54.038        115.41        .54556E-04   -1.4236    
   4  norm          2.3409        50.489        .26743E-03   -1.5402    
   5  norm          7.6216        7.8281        .13673E-03   -1.5156    
   6  Prefactor     18.309        53.929        .93574E-04   -1.4852    
   7  norm          .10000E-03    14.251        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    40.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.3312        20.188        .17400E-03   -1.5246    
  10  Prefactor     .10000E-03    59.823        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    58.619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.648        28.084        .60686E-04   -1.4386    
  13  Prefactor     5.7274        471.18        .16315E-02   -1.5229    
  14  Prefactor     7.4726        25.674        .14652E-03   -1.5161    
  15  Prefactor     166.76        154.47        .31236E-04   -1.3118    
  16  norm          1.7869        3.7727        .12193E-03   -1.5441    
  17  Prefactor     56.185        55.659        .53516E-04   -1.4207    
  18  Prefactor     .10000E-03    63.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.404        11.080        .10941E-03   -1.4976    
  20  Prefactor     41.203        27.084        .62446E-04   -1.4423    
  21  Prefactor     .10000E-03    53.475        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.234        16.219        .10617E-03   -1.4953    
  23  norm          .10000E-03    3.2003        .89722E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    1.0577        .11573E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .99810        .10295        .14392E-03   -.92793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.93054e-09
Minuit parameter uncertainties:
  1  1.99612e-06
  2  4.33255e-06
  3  115.892
  4  21.7632
  5  7.82912
  6  54.0735
  7  1.04432e-05
  8  3.20121e-05
  9  20.2138
  10  1.43741e-05
  11  0.000182208
  12  28.0929
  13  104.761
  14  25.7118
  15  154.843
  16  3.77321
  17  55.711
  18  0.000106028
  19  11.0819
  20  27.0919
  21  3.19238e-05
  22  16.2244
  23  1.41598e-06
  24  0.00013468
  25  0.102974
Done.

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

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  5.331e+00  2.021e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  2.670e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.981e-01  1.030e-01  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.000e-02  1.347e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 107.732 47.553
Photon Flux Upper Limit: 4.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.21e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/960691/likelihoodResults_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2637.29726112
delta logL = 0.626209880259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2637.29544774
delta logL = 0.628023259497

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2637.295     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      320 TOTAL
                     EDM=   .62E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84292        21.283        .10564E-01    .34991E-03
   2  Index         5.0928        7.2210        .14725        .53111E-04
   3  Normalizat    .10000E-01    .37491E-01    .24295    ** at limit **
   4  Prefactor     .98921        .41168E-01    .32576E-01   -.70877E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.842923
  Index      = 5.09279
  Normalizat = 0.01
  Prefactor  = 0.98921
 **********
 **   18 **HESSE 
 **********

 FCN=   2637.295     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      355 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84292        51.995        .48265E-03   -1.5524    
   2  Index         5.0928        7.3209        .56124E-02    .18559E-01
   3  Normalizat    .10000E-01    .39645        .12782E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .98921        .84416E-01    .14398E-03   -.93090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.60197e-11
Minuit parameter uncertainties:
  1  13.2518
  2  10.0848
  3  3.14686e-06
  4  0.084427
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/960691': 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) = 2637.29544707
delta logL = 0.628023929681

Extracting fit parameters...

4FGL J0710.9+4733
   Spectrum: PowerLaw
261    Prefactor:  8.429e-01  1.325e+01  1.000e-04  1.000e+04 ( 1.000e-12)
262        Index:  5.093e+00  1.008e+01  0.000e+00  1.000e+01 (-1.000e+00)
263        Scale:  6.204e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
599    Prefactor:  9.892e-01  8.443e-02  0.000e+00  1.000e+01 ( 1.000e+00)
600        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
601        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
598   Normalization:  1.000e-02  3.147e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.35
Ra Dec: 107.732 47.553
Photon Index (Free Index): 5.09 +/- 10.08
Photon Flux (Free Index): 2.26e-07 +/- 2.29e-07
Energy Flux (Free Index): 2.98e-05 +/- 3.35e-05

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/960691/cmap_HighResolution_491788801_492393601_4FGL_J0710.9+4733_weekly_bin418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.21e-02', comment='SUCCESS', energy_flux2='2.98e-05', dlogl='6.28e-01', photon_flux2='2.26e-07', job_status='DONE', time_completed='2021-07-10 19:43:43.861744', photon_index_error2='10.08', photon_index2='5.09', ts='0.09', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', photon_flux_upper_limit='4.08e-07', energy_flux_error2='3.35e-05', EG='0.01', time_epoch_completed='1625971423.86', return_code='0', job_id='960691', GAL2='0.99', EG2='0.01', return_code2='102', photon_flux_error2='2.29e-07', ts2='1.35', photon_index='2.67' WHERE bin_id='418' AND source_name='4FGL J0710.9+4733' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sat Jul 10 19:43:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 960691: <4FGL_J0710.9+4733_weekly_bin418> in cluster <slac> Done

Job <4FGL_J0710.9+4733_weekly_bin418> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 10 19:31:04 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 10 19:34:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 10 19:34:17 2021
Terminated at Sat Jul 10 19:43:44 2021
Results reported at Sat Jul 10 19:43:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0710.9+4733_weekly_bin418 107.732 47.553 491788801 492393601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0710.9+4733 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   530.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             339.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   567 sec.
    Turnaround time :                            760 sec.

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

