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/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 32 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 = 17187
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0751.0+7908_weekly_bin636
RA = 117.768, Dec = 79.1394
tmin = 623635201, tmax = 624240001
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='327807', job_status='RUN', time_executed='2021-07-11 20:08:04.806382', time_epoch_executed='1626059284.81' WHERE source_name='4FGL J0751.0+7908' and cadence='weekly' and bin_id='636'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/327807

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/327807/ft1_4FGL_J0751.0+7908_weekly_bin636.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/327807/ft1_4FGL_J0751.0+7908_weekly_bin636.fits outfile=/scratch/kocevski/327807/ft1_filteredMKT_4FGL_J0751.0+7908_weekly_bin636.fits ra=117.768 dec=79.1394 rad=12.0 tmin=623635201.0 tmax=624240001.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 11.42
user 9.17
sys 0.42

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.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/327807/ft1_filteredMKT_4FGL_J0751.0+7908_weekly_bin636.fits evtable="EVENTS" outfile="/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.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 2.55
user 0.39
sys 0.23

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits" evtable="EVENTS" scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits sctable="SC_DATA" outfile=/scratch/kocevski/327807/ltcube_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.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/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits
.....................!
real 38.64
user 35.01
sys 0.40

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits sctable="SC_DATA" expcube=/scratch/kocevski/327807/ltcube_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits outfile=/scratch/kocevski/327807/expmap_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.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/327807/ltcube_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits
.....................!
real 214.24
user 186.57
sys 5.50

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

Setting source of interest to:
4FGL J0751.0+7908 @ 117.768 79.1394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits outfile=/scratch/kocevski/327807/cmap_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.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=117.768 yref=79.1394 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 2.67
user 0.43
sys 0.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits outfile=/scratch/kocevski/327807/cmap_HighResolution_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.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=117.768 yref=79.1394 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 4.40
user 0.46
sys 0.21

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits evtable="EVENTS" scfile=/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/327807/Model_4FGL_J0751.0+7908_weekly_bin636.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/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits.....................!
real 356.30
user 308.02
sys 1.29

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits', '/scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits', expMap='/scratch/kocevski/327807/expmap_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits', expCube='/scratch/kocevski/327807/ltcube_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/327807/Model_4FGL_J0751.0+7908_weekly_bin636.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0751.0+7908'

4FGL J0751.0+7908
   Spectrum: LogParabola
280         norm:  6.160e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
281        alpha:  1.972e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  2.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/327807/ft1_filtered_4FGL_J0751.0+7908_weekly_bin636.fits
Spacecraft file(s): /scratch/kocevski/327807/ft2_4FGL_J0751.0+7908_weekly_bin636.fits
Exposure map: /scratch/kocevski/327807/expmap_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits
Exposure cube: /scratch/kocevski/327807/ltcube_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/327807/Model_4FGL_J0751.0+7908_weekly_bin636.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) = 26856.3094725

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .88917       1.0000         .10000E-03   10000.    
     4 'Prefactor '    46.035       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2012       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6052       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.0609       1.0000         .10000E-03   10000.    
     9 'norm      '    .19219       1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.0815       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.9695       1.0000         .10000E-03   10000.    
    12 'norm      '    2.7190       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.1136       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .48766E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .15011E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.7354       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.9072       1.0000         .10000E-03   10000.    
    22 'norm      '    .99528       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .94990       1.0000         .10000E-01   10.000    
    24 'Prefactor '    1.0267       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6930E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   26856.14     FROM MIGRAD    STATUS=CONVERGED    601 CALLS     2471 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.9251       -.59607E-07** at limit **
   2  Prefactor     .10000E-03    2.1327       -.91726E-07** at limit **
   3  Prefactor     .88923        2.6228       -.65106E-06    .69773E-03
   4  Prefactor     46.036        16.764        .68788E-06    .83016E-03
   5  Prefactor     2.1958        31.366        .55854E-06    .19207E-03
   6  norm          .10000E-03    3.0031       -.53717E-07** at limit **
   7  norm          3.6051        .51005       -.18948E-07    .18298E-03
   8  Prefactor     2.0275        45.228        .23379E-06    .60700E-05
   9  norm          .18754        23.719       -.54017E-05    .53420E-03
  10  Prefactor     1.0658        24.756       -.45833E-06    .11956E-03
  11  Prefactor     5.9696        2.5491       -.27090E-07    .11302E-03
  12  norm          2.7187        1.1882       -.57586E-07    .31615E-03
  13  Prefactor     .10000E-03    4.4920        .74510E-08** at limit **
  14  Prefactor     8.1133        4.7864       -.16337E-07    .19800E-03
  15  Prefactor     .10000E-03    4.5327       -.19594E-06** at limit **
  16  Prefactor     .10000E-03    2.7989       -.15259E-06** at limit **
  17  Prefactor     .10020E-03    4.5232       -.32414E-06** at limit **
  18  Prefactor     .10000E-03    6.0048       -.80608E-07** at limit **
  19  norm          .10000E-03    1.0596       -.37250E-06** at limit **
  20  Prefactor     6.7343        4.1935        .60963E-06    .31127E-02
  21  Prefactor     9.9063        6.0304        .47480E-06    .95128E-03
  22  norm          .99529        1.5523       -.44706E-06    .24034E-03
  23  Normalizat    .95000        .10289        .46928E-06    .80932E-03
  24  Prefactor     1.0266        .54815E-01    .53173E-07    .11892E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.889227
  Prefactor  = 46.0357
  Prefactor  = 2.19576
  norm       = 0.0001
  norm       = 3.60514
  Prefactor  = 2.02754
  norm       = 0.187537
  Prefactor  = 1.06582
  Prefactor  = 5.96965
  norm       = 2.71874
  Prefactor  = 0.0001
  Prefactor  = 8.11331
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100197
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 6.7343
  Prefactor  = 9.90626
  norm       = 0.995291
  Normalizat = 0.950003
  Prefactor  = 1.02664
 **********
 **   18 **HESSE 
 **********

 FCN=   26856.14     FROM HESSE     STATUS=OK           431 CALLS     2902 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.9299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.1671        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .88923        2.6227        .45128E-03   -1.5519    
   4  Prefactor     46.036        16.372        .59094E-04   -1.4350    
   5  Prefactor     2.1958        30.657        .27731E-03   -1.5412    
   6  norm          .10000E-03    3.0207        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6051        .50676        .40932E-04   -1.5328    
   8  Prefactor     2.0275        44.771        .28786E-03   -1.5423    
   9  norm          .18754        3.1723        .11404       -1.5621    
  10  Prefactor     1.0658        25.403        .46297E-03   -1.5501    
  11  Prefactor     5.9696        2.5420        .16386E-03   -1.5219    
  12  norm          2.7187        1.1880        .11162E-03   -1.5378    
  13  Prefactor     .10000E-03    4.5055        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.1133        4.7867        .14075E-03   -1.5138    
  15  Prefactor     .10000E-03    4.6741        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.8333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10020E-03    4.9685        .11450       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    6.0139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    1.2658        .47294E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.7343        5.4406        .77304E-03   -1.5189    
  21  Prefactor     9.9063        5.9482        .12731E-03   -1.5078    
  22  norm          .99529        1.5768        .23306E-02   -1.5508    
  23  Normalizat    .95000        .11618        .32261E-03   -.94725    
  24  Prefactor     1.0266        .62102E-01    .17996E-03   -.91847    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.60563e-09
Minuit parameter uncertainties:
  1  5.24261e-06
  2  5.2366e-06
  3  2.62302
  4  16.3731
  5  16.419
  6  6.00368e-06
  7  0.506758
  8  19.071
  9  1.5423
  10  10.4112
  11  2.54207
  12  1.18797
  13  4.42257e-06
  14  4.78696
  15  1.60792e-05
  16  1.09471e-05
  17  0.00197847
  18  1.04175e-05
  19  0.00014328
  20  5.44101
  21  5.9486
  22  1.57685
  23  0.116208
  24  0.0621064
Done.

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

Extracting fit parameters...

4FGL J0751.0+7908
   Spectrum: LogParabola
280         norm:  1.875e-01  1.542e+00  1.000e-04  1.000e+04 ( 1.000e-13)
281        alpha:  1.972e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  2.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.027e+00  6.211e-02  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  9.500e-01  1.162e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 117.768 79.139
Photon Flux Upper Limit: 1.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.59e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/327807/likelihoodResults_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.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) = 26856.1398067
delta logL = 2.0243893232e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 26856.1371613
delta logL = 0.0026656865557

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   26856.14     FROM MIGRAD    STATUS=FAILED       110 CALLS      296 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35505        889.70        .52116E-02    .74685E-02
   2  alpha         2.2498        3.1504        .50000        .11041E-03
   3  Normalizat    .94982        .23511E-01    .32264E-03    .36646E-05
   4  Prefactor     1.0266        .13722E-01    .17996E-03    .12129E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   26856.14     FROM SIMPLEX   STATUS=UNCHANGED     96 CALLS      392 TOTAL
                     EDM=   .68E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35505        889.70        .44195E-03    .74685E-02
   2  alpha         2.2498        3.1504        .60695E-02    .11041E-03
   3  Normalizat    .94982        .23511E-01    .58482E-04    .36646E-05
   4  Prefactor     1.0266        .13722E-01    .20180E-04    .12129E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   26856.14     FROM MIGRAD    STATUS=FAILED        83 CALLS      475 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .35505        1104.4        .20846E-03   -.91620E-05
   2  alpha         2.2498        2.9344        .50000        .11041E-03
   3  Normalizat    .94982        .26594E-01    .25811E-05    .35237E-05
   4  Prefactor     1.0266        .15523E-01    .14397E-05    .63173E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.355053
  alpha      = 2.2498
  Normalizat = 0.949825
  Prefactor  = 1.02663
 **********
 **   18 **HESSE 
 **********

 FCN=   26856.14     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      504 TOTAL
                     EDM=   .11E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .35505        1113.6        .83385E-05   -1.5589    
   2  alpha         2.2498        2.9860        .50000       -.10025    
   3  Normalizat    .94982        .26826E-01    .51622E-06   -.94731    
   4  Prefactor     1.0266        .15629E-01    .28794E-06   -.91847    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14175e-06
Minuit parameter uncertainties:
  1  40.5413
  2  23.9228
  3  0.0268259
  4  0.0156288
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/327807': 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): 1
logL (Free Index) = 26856.1371608
delta logL = 0.00266619172544

Extracting fit parameters...

4FGL J0751.0+7908
   Spectrum: LogParabola
280         norm:  3.551e-01  4.054e+01  1.000e-04  1.000e+04 ( 1.000e-13)
281        alpha:  2.250e+00  2.392e+01  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  2.056e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  1.119e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
690    Prefactor:  1.027e+00  1.563e-02  0.000e+00  1.000e+01 ( 1.000e+00)
691        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
692        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
689   Normalization:  9.498e-01  2.683e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 117.768 79.139

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/327807/cmap_HighResolution_623635201_624240001_4FGL_J0751.0+7908_weekly_bin636.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.59e-06', job_status='DONE', photon_flux_upper_limit='1.32e-08', time_completed='2021-07-11 20:52:18.272278', job_id='327807', GAL2='1.03', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1626061938.27', return_code2='1', ts='0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='2.67e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='636' AND source_name='4FGL J0751.0+7908' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Sun Jul 11 20:52:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0022>
Subject: Job 327807: <4FGL_J0751.0+7908_weekly_bin636> in cluster <slac> Done

Job <4FGL_J0751.0+7908_weekly_bin636> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Sun Jul 11 17:25:44 2021
Job was executed on host(s) <bullet0022>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jul 11 17:37:04 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jul 11 17:37:04 2021
Terminated at Sun Jul 11 20:52:19 2021
Results reported at Sun Jul 11 20:52:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0751.0+7908_weekly_bin636 117.768 79.1394 623635201 624240001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0751.0+7908 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   2524.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             121.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   11714 sec.
    Turnaround time :                            12395 sec.

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

