aklog: Couldn't determine realm of user:aklog: No credentials cache found  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 59 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 = 17252
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0850.0+5108_weekly_bin715
RA = 132.513, Dec = 51.1414
tmin = 671414401, tmax = 672019201
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='934337', job_status='RUN', time_executed='2022-04-19 02:26:35.045663', time_epoch_executed='1650360395.05' WHERE source_name='4FGL J0850.0+5108' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/934337

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/934337/ft1_4FGL_J0850.0+5108_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/934337/ft1_4FGL_J0850.0+5108_weekly_bin715.fits outfile=/scratch/kocevski/934337/ft1_filteredMKT_4FGL_J0850.0+5108_weekly_bin715.fits ra=132.513 dec=51.1414 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.72
user 7.40
sys 0.29

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.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/934337/ft1_filteredMKT_4FGL_J0850.0+5108_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.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.58
user 0.40
sys 0.17

Number of photons that the gtmktime cut: 1414

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/934337/ltcube_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.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/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits
.....................!
real 27.72
user 27.33
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/934337/ltcube_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits outfile=/scratch/kocevski/934337/expmap_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.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/934337/ltcube_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits
.....................!
real 192.62
user 186.94
sys 5.19

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

Setting source of interest to:
4FGL J0850.0+5108 @ 132.513 51.1414

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits outfile=/scratch/kocevski/934337/cmap_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.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=132.513 yref=51.1414 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.58
user 0.41
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits outfile=/scratch/kocevski/934337/cmap_HighResolution_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.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=132.513 yref=51.1414 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/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/934337/Model_4FGL_J0850.0+5108_weekly_bin715.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/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits.....................!
real 130.18
user 128.61
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits', '/scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits', expMap='/scratch/kocevski/934337/expmap_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits', expCube='/scratch/kocevski/934337/ltcube_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/934337/Model_4FGL_J0850.0+5108_weekly_bin715.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0850.0+5108'

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  6.333e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.161e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/934337/ft1_filtered_4FGL_J0850.0+5108_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/934337/ft2_4FGL_J0850.0+5108_weekly_bin715.fits
Exposure map: /scratch/kocevski/934337/expmap_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits
Exposure cube: /scratch/kocevski/934337/ltcube_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/934337/Model_4FGL_J0850.0+5108_weekly_bin715.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) = 15132.8921731

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .38783       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .37264E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.268       1.0000         .10000E-03   10000.    
     4 'norm      '    1.3167       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .12180E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.3222       1.0000         .10000E-03   10000.    
     8 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.2832       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.8541       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5280       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .95934E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.9741       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.281       1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.001       1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.4631       1.0000         .10000E-03   10000.    
    17 'norm      '    .85832       1.0000         .10000E-03   10000.    
    18 'norm      '    .79692       1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.7961       1.0000         .10000E-03   10000.    
    20 'Prefactor '    7.4276       1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.5306       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10519E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.919       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .42423       1.0000         .10000E-03   10000.    
    25 'norm      '    .23362       1.0000         .10000E-03   10000.    
    26 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .11978E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .11201E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.7111       1.0000         .10000E-03   10000.    
    33 'norm      '    2.4682       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    1.3982       1.0000         .10000E-03   10000.    
    36 'norm      '    5.0812       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .84397       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.0442       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   15132.89     FROM MIGRAD    STATUS=CONVERGED   1236 CALLS     7248 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .38761        .45893        .84680E-07   -.39507E-03
   2  Prefactor     .10002E-03    2.4894        .24022E-06** at limit **
   3  Prefactor     14.269        12.310        .12306E-06   -.20145E-03
   4  norm          1.3168        .91381       -.64703E-08    .87464E-04
   5  Prefactor     .10000E-03    1.1358        .37638E-08** at limit **
   6  Prefactor     .10010E-03    15.458       -.13528E-06** at limit **
   7  Prefactor     4.3176        13.881        .31156E-05    .57170E-04
   8  norm          .10000E-03    1.1162        .95683E-07** at limit **
   9  norm          1.2831        1.0048        .38042E-07   -.43295E-03
  10  Prefactor     4.8539        4.3727       -.45751E-06   -.23916E-03
  11  norm          1.5281        .43027       -.30950E-07    .12952E-02
  12  Prefactor     .10000E-03    4.3401       -.71562E-06** at limit **
  13  Prefactor     7.9730        3.9233       -.55662E-06   -.65966E-03
  14  Prefactor     44.280        21.822        .26020E-05    .54066E-03
  15  Prefactor     11.001        7.2274       -.11866E-06    .20061E-03
  16  Prefactor     4.4629        3.2789       -.20813E-07   -.19023E-04
  17  norm          .85705        1.9159        .56047E-07   -.65236E-03
  18  norm          .79622        2.6983        .67006E-06   -.97299E-03
  19  Prefactor     6.7955        5.5235       -.77983E-06   -.26709E-03
  20  Prefactor     7.4277        4.5841       -.22722E-06   -.18975E-03
  21  Prefactor     1.5306        1.1026        .13425E-07   -.32033E-03
  22  Prefactor     .10000E-03    16.263        .60722E-06** at limit **
  23  Prefactor     28.919        30.926       -.12397E-05   -.51424E-04
  24  Prefactor     .42329        1.2230       -.60615E-07   -.57864E-03
  25  norm          .23377        .26491        .44906E-07   -.69576E-03
  26  norm          .10000E-03    .38048        .67939E-07** at limit **
  27  Prefactor     .10000E-03    .53773       -.25942E-07** at limit **
  28  Prefactor     .10000E-03    .49449       -.11919E-08** at limit **
  29  Prefactor     .10000E-03    2.0405       -.93085E-07** at limit **
  30  Prefactor     .10000E-03    1.4324       -.90689E-07** at limit **
  31  Prefactor     .10000E-03    3.6355       -.18077E-07** at limit **
  32  Prefactor     5.7117        2.8498        .51889E-06   -.35787E-02
  33  norm          2.4676        3.4670        .79592E-06    .69888E-04
  34  Prefactor     .10000E-03    21.903       -.41097E-06** at limit **
  35  norm          1.3981        .38317       -.60388E-08   -.49746E-04
  36  norm          5.0806        5.6595       -.52793E-06   -.19005E-03
  37  Prefactor     .10000E-03    1.3111       -.46591E-07** at limit **
  38  Normalizat    .84407        .11495       -.23586E-06    .48818E-04
  39  Prefactor     1.0442        .10068       -.18216E-06    .76033E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.387609
  Prefactor  = 0.000100019
  Prefactor  = 14.2687
  norm       = 1.31683
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 4.31758
  norm       = 0.0001
  norm       = 1.28308
  Prefactor  = 4.85395
  norm       = 1.52808
  Prefactor  = 0.0001
  Prefactor  = 7.97297
  Prefactor  = 44.28
  Prefactor  = 11.0007
  Prefactor  = 4.46286
  norm       = 0.857047
  norm       = 0.796223
  Prefactor  = 6.79554
  Prefactor  = 7.42769
  Prefactor  = 1.5306
  Prefactor  = 0.0001
  Prefactor  = 28.9189
  Prefactor  = 0.423287
  norm       = 0.233768
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.71168
  norm       = 2.46757
  Prefactor  = 0.0001
  norm       = 1.39814
  norm       = 5.08061
  Prefactor  = 0.0001
  Normalizat = 0.844075
  Prefactor  = 1.04423
 **********
 **   18 **HESSE 
 **********

 FCN=   15132.89     FROM HESSE     STATUS=OK           984 CALLS     8232 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .38761        .39854        .86915E-03   -1.5583    
   2  Prefactor     .10002E-03    40.612        .36863E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     14.269        12.357        .53019E-03   -1.4952    
   4  norm          1.3168        .92266        .94610E-04   -1.5478    
   5  Prefactor     .10000E-03    1.1373        .12799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10010E-03    15.391        .12943       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     4.3176        13.875        .19376E-03   -1.5292    
   8  norm          .10000E-03    2.0226        .24356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.2831        .96763        .10274E-03   -1.5481    
  10  Prefactor     4.8539        4.3747        .18258E-03   -1.5267    
  11  norm          1.5281        .42327        .40172E-04   -1.5461    
  12  Prefactor     .10000E-03    37.419        .47665E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     7.9730        3.9395        .14199E-03   -1.5143    
  14  Prefactor     44.280        21.885        .60248E-04   -1.4376    
  15  Prefactor     11.001        7.2184        .12079E-03   -1.5044    
  16  Prefactor     4.4629        3.2740        .18427E-03   -1.5285    
  17  norm          .85705        1.9319        .24132E-02   -1.5523    
  18  norm          .79622        2.8541        .37211E-03   -1.5530    
  19  Prefactor     6.7955        5.5311        .15391E-03   -1.5187    
  20  Prefactor     7.4277        4.5533        .14716E-03   -1.5163    
  21  Prefactor     1.5306        1.1006        .17249E-03   -1.5461    
  22  Prefactor     .10000E-03    16.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     28.919        30.853        .74502E-04   -1.4632    
  24  Prefactor     .42329        1.7057        .21744E-02   -1.5578    
  25  norm          .23377        .21246        .55460E-03   -1.5611    
  26  norm          .10000E-03    .91744        .14523E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.309        .14703E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    .80719        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    13.268        .33613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    1.4927        .28666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    3.6464        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     5.7117        3.7318        .84039E-03   -1.5230    
  33  norm          2.4676        3.4512        .26028E-03   -1.5394    
  34  Prefactor     .10000E-03    22.057        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          1.3981        .38206        .38463E-04   -1.5471    
  36  norm          5.0806        5.6623        .17837E-03   -1.5257    
  37  Prefactor     .10000E-03    1.3270        .13747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .84407        .12733        .26653E-03   -.98454    
  39  Prefactor     1.0442        .11256        .22514E-03   -.91269    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03942e-07
Minuit parameter uncertainties:
  1  0.398547
  2  0.00176363
  3  12.359
  4  0.922671
  5  1.62624e-07
  6  0.00246477
  7  13.8856
  8  2.17059e-05
  9  0.967646
  10  4.37498
  11  0.423273
  12  0.000165105
  13  3.93963
  14  21.8894
  15  7.21894
  16  3.2741
  17  1.932
  18  2.85458
  19  5.53147
  20  4.55348
  21  1.10064
  22  6.65043e-05
  23  30.8703
  24  1.69928
  25  0.212462
  26  3.01991e-06
  27  3.86921e-05
  28  2.69036e-06
  29  0.000239081
  30  3.16369e-07
  31  1.0701e-06
  32  3.73197
  33  3.45152
  34  4.52934e-05
  35  0.382063
  36  5.66285
  37  1.28924e-07
  38  0.12738
  39  0.112582
Done.

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

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  7.962e-01  2.855e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.161e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.044e+00  1.126e-01  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  8.441e-01  1.274e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 132.513 51.141
Photon Flux Upper Limit: 3.42e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.43e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/934337/likelihoodResults_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.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) = 15132.2964056
delta logL = 0.589141676328

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15132.2557796
delta logL = 0.629767634626

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   15132.26     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      251 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1839        19.156        .10497E-01    .22375E-02
   2  alpha         3.4806        4.2373        .46113        .11217E-03
   3  Normalizat    .81717        .26428E-01    .43836E-01    .45826E-04
   4  Prefactor     1.0560        .24466E-01    .39574E-01    .12189E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.18387
  alpha      = 3.48063
  Normalizat = 0.817175
  Prefactor  = 1.056
 **********
 **   18 **HESSE 
 **********

 FCN=   15132.26     FROM HESSE     STATUS=OK            33 CALLS      284 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1839        3.1199        .12132E-03   -1.5490    
   2  alpha         3.4806        1.6586        .28302E-01    .40308    
   3  Normalizat    .81717        .12014        .27047E-03   -.99435    
   4  Prefactor     1.0560        .11009        .22399E-03   -.90886    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.46706e-10
Minuit parameter uncertainties:
  1  3.12036
  2  1.85256
  3  0.120176
  4  0.110115
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/934337': 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) = 15132.2557789
delta logL = 0.629768378334

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.184e+00  3.120e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  3.481e+00  1.853e+00  0.000e+00  5.000e+00 ( 1.000e+00)
349         beta:  8.213e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
350           Eb:  6.488e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
705    Prefactor:  1.056e+00  1.101e-01  0.000e+00  1.000e+01 ( 1.000e+00)
706        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
707        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
704   Normalization:  8.172e-01  1.202e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.39
Ra Dec: 132.513 51.141
Photon Index (Free Index): 3.48 +/- 1.85
Photon Flux (Free Index): 2.66e-08 +/- 2.59e-08
Energy Flux (Free Index): 4.62e-06 +/- 4.64e-06

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/934337/cmap_HighResolution_671414401_672019201_4FGL_J0850.0+5108_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.43e-05', comment='SUCCESS', energy_flux2='4.62e-06', dlogl='6.30e-01', photon_flux2='2.66e-08', job_status='DONE', time_completed='2022-04-19 03:21:33.526707', photon_index_error2='1.85', photon_index2='3.48', ts='0.09', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', photon_flux_upper_limit='3.42e-08', energy_flux_error2='4.64e-06', EG='0.84', time_epoch_completed='1650363693.53', return_code='0', job_id='934337', GAL2='1.06', EG2='0.82', return_code2='0', photon_flux_error2='2.59e-08', ts2='1.39', photon_index='2.16' WHERE bin_id='715' AND source_name='4FGL J0850.0+5108' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:21:33 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0273>
Subject: Job 930605: <4FGL_J0850.0+5108_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0850.0+5108_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:06:20 2022
Job was executed on host(s) <bullet0273>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:12:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:12:49 2022
Terminated at Tue Apr 19 03:10:26 2022
Results reported at Tue Apr 19 03:10:26 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_weekly_bin715 132.513 51.1414 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.0+5108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3306.00 sec.
    Max Memory :                                 622 MB
    Average Memory :                             318.59 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3457 sec.
    Turnaround time :                            11046 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 934337: <4FGL_J0850.0+5108_weekly_bin715> in cluster <slac> Done

Job <4FGL_J0850.0+5108_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:17:24 2022
Job was executed on host(s) <bullet0120>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:25:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:25:27 2022
Terminated at Tue Apr 19 03:21:34 2022
Results reported at Tue Apr 19 03:21:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_weekly_bin715 132.513 51.1414 671414401 672019201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.0+5108 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   3295.00 sec.
    Max Memory :                                 1259 MB
    Average Memory :                             332.92 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   3366 sec.
    Turnaround time :                            11050 sec.

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

