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


Performing analysis on: 4FGL_J0850.0+5108_monthly_bin170
RA = 132.513, Dec = 51.1414
tmin = 677635201, tmax = 680227201
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='88779', job_status='RUN', time_executed='2022-07-23 00:56:25.586179', time_epoch_executed='1658562985.59' WHERE source_name='4FGL J0850.0+5108' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/88779

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/88779/ft1_4FGL_J0850.0+5108_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/88779/ft1_4FGL_J0850.0+5108_monthly_bin170.fits outfile=/scratch/kocevski/88779/ft1_filteredMKT_4FGL_J0850.0+5108_monthly_bin170.fits ra=132.513 dec=51.1414 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.61
user 31.83
sys 0.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.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/88779/ft1_filteredMKT_4FGL_J0850.0+5108_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.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.84
user 0.64
sys 0.18

Number of photons that the gtmktime cut: 6757

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/88779/ltcube_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.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/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits
.....................!
real 111.00
user 110.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/88779/ltcube_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits outfile=/scratch/kocevski/88779/expmap_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.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/88779/ltcube_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits
.....................!
real 191.12
user 185.60
sys 5.16

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/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits outfile=/scratch/kocevski/88779/cmap_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.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.77
user 0.61
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits outfile=/scratch/kocevski/88779/cmap_HighResolution_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.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.78
user 0.59
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/88779/Model_4FGL_J0850.0+5108_monthly_bin170.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/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits.....................!
real 557.80
user 555.51
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits', '/scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits', expMap='/scratch/kocevski/88779/expmap_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits', expCube='/scratch/kocevski/88779/ltcube_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/88779/Model_4FGL_J0850.0+5108_monthly_bin170.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/88779/ft1_filtered_4FGL_J0850.0+5108_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/88779/ft2_4FGL_J0850.0+5108_monthly_bin170.fits
Exposure map: /scratch/kocevski/88779/expmap_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits
Exposure cube: /scratch/kocevski/88779/ltcube_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/88779/Model_4FGL_J0850.0+5108_monthly_bin170.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) = 73310.0309809

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.7018       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .76387       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.7065       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.2586       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.3705       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.5132       1.0000         .10000E-03   10000.    
    11 'norm      '    .71146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.7310       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9859       1.0000         .10000E-03   10000.    
    14 'Prefactor '    25.780       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.9441       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.8149       1.0000         .10000E-03   10000.    
    17 'norm      '    4.2851       1.0000         .10000E-03   10000.    
    18 'norm      '    1.9997       1.0000         .10000E-03   10000.    
    19 'Prefactor '    3.9407       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.6817       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10133E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    3.1556       1.0000         .10000E-03   10000.    
    25 'norm      '    .93483E-01   1.0000         .10000E-03   10000.    
    26 'norm      '    .29557       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.5541       1.0000         .10000E-03   10000.    
    28 'Prefactor '    1.8977       1.0000         .10000E-03   10000.    
    29 'Prefactor '    3.3897       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.6181       1.0000         .10000E-03   10000.    
    32 'Prefactor '    5.8979       1.0000         .10000E-03   10000.    
    33 'norm      '    1.7519       1.0000         .10000E-03   10000.    
    34 'Prefactor '    1.1652       1.0000         .10000E-03   10000.    
    35 'norm      '    1.4019       1.0000         .10000E-03   10000.    
    36 'norm      '    4.5901       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .74378       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .99085       1.0000         .10000E-01   10.000    
    39 'Prefactor '    1.2022       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=   73309.99     FROM MIGRAD    STATUS=CONVERGED   1160 CALLS     5319 TOTAL
                     EDM=   .56E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .37520E-01    .37543E-08** at limit **
   2  Prefactor     5.7023        3.0339       -.20168E-07   -.67655E-03
   3  Prefactor     .10000E-03    2.0432       -.13593E-06** at limit **
   4  norm          .76331        .63723        .29081E-08   -.11413E-03
   5  Prefactor     3.7053        2.2583        .49105E-06    .20805E-03
   6  Prefactor     1.2289        33.057       -.40473E-05   -.22541E-04
   7  Prefactor     .10000E-03    2.3472       -.12330E-05** at limit **
   8  norm          .10000E-03    .27950        .24552E-07** at limit **
   9  norm          1.3706        .49389       -.69292E-08   -.18010E-03
  10  Prefactor     2.5132        1.4960       -.11667E-07    .35620E-04
  11  norm          .71133        .17941        .14038E-07    .81447E-03
  12  Prefactor     1.7308        3.5753        .13651E-06   -.19175E-04
  13  Prefactor     2.9862        1.7094       -.16432E-06   -.24875E-03
  14  Prefactor     25.784        9.8041       -.83529E-06   -.44714E-05
  15  Prefactor     4.9437        2.9106        .15014E-06    .26855E-04
  16  Prefactor     3.8148        1.6931        .31376E-06   -.60977E-04
  17  norm          4.2851        1.2859       -.18130E-07   -.22900E-02
  18  norm          1.9997        1.5714       -.19650E-07   -.32259E-03
  19  Prefactor     3.9409        2.6960       -.42673E-07   -.78176E-04
  20  Prefactor     .10000E-03    .47763        .10017E-07** at limit **
  21  Prefactor     1.6818        .84223        .70676E-09   -.22748E-03
  22  Prefactor     .10000E-03    2.3136        .13090E-05** at limit **
  23  Prefactor     .10000E-03    6.9678       -.11405E-06** at limit **
  24  Prefactor     3.1559        1.1169       -.25881E-07   -.14298E-03
  25  norm          .93503E-01    .12118       -.45509E-08   -.55731E-03
  26  norm          .29576        .24272       -.21851E-07   -.16937E-02
  27  Prefactor     1.5541        1.1801        .40665E-07   -.26376E-03
  28  Prefactor     1.8977        .69566        .80665E-08   -.52500E-04
  29  Prefactor     3.3894        1.9989       -.28037E-07   -.54902E-04
  30  Prefactor     .10000E-03    .16050       -.25039E-07** at limit **
  31  Prefactor     4.6184        3.6590       -.39055E-07   -.24798E-04
  32  Prefactor     5.8977        1.7428       -.65582E-07   -.18511E-02
  33  norm          1.7525        1.2289       -.18010E-06   -.59125E-03
  34  Prefactor     1.1595        14.172        .79022E-05   -.63133E-04
  35  norm          1.4020        .16901       -.13525E-07   -.16934E-02
  36  norm          4.5900        2.5824       -.11346E-07   -.24620E-04
  37  Prefactor     .74435        1.1568        .42197E-07   -.41354E-03
  38  Normalizat    .99081        .58984E-01   -.16146E-06   -.22035E-03
  39  Prefactor     1.2023        .50639E-01    .90661E-07   -.23994E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.70231
  Prefactor  = 0.0001
  norm       = 0.763307
  Prefactor  = 3.7053
  Prefactor  = 1.22889
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.37056
  Prefactor  = 2.51319
  norm       = 0.711328
  Prefactor  = 1.73081
  Prefactor  = 2.98621
  Prefactor  = 25.7836
  Prefactor  = 4.94368
  Prefactor  = 3.81485
  norm       = 4.28507
  norm       = 1.99966
  Prefactor  = 3.94089
  Prefactor  = 0.0001
  Prefactor  = 1.68184
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.15585
  norm       = 0.0935033
  norm       = 0.295756
  Prefactor  = 1.55406
  Prefactor  = 1.89767
  Prefactor  = 3.38942
  Prefactor  = 0.0001
  Prefactor  = 4.61842
  Prefactor  = 5.89768
  norm       = 1.75247
  Prefactor  = 1.1595
  norm       = 1.40198
  norm       = 4.59004
  Prefactor  = 0.744353
  Normalizat = 0.99081
  Prefactor  = 1.20226
 **********
 **   18 **HESSE 
 **********

 FCN=   73309.99     FROM HESSE     STATUS=OK           974 CALLS     6293 TOTAL
                     EDM=   .33E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .41110        .10115E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.7023        3.1625        .84108E-03   -1.5230    
   3  Prefactor     .10000E-03    2.0557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .76331        .55786        .18457E-02   -1.5533    
   5  Prefactor     3.7053        2.2286        .20976E-03   -1.5323    
   6  Prefactor     1.2289        32.659        .39779E-03   -1.5486    
   7  Prefactor     .10000E-03    2.3716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .84720        .26924E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.3706        .48087        .10793E-03   -1.5474    
  10  Prefactor     2.5132        1.4935        .24723E-03   -1.5391    
  11  norm          .71133        .17650        .54158E-04   -1.5539    
  12  Prefactor     1.7308        3.5452        .31908E-03   -1.5445    
  13  Prefactor     2.9862        1.7107        .23494E-03   -1.5362    
  14  Prefactor     25.784        9.7516        .78898E-04   -1.4692    
  15  Prefactor     4.9437        2.9019        .18088E-03   -1.5263    
  16  Prefactor     3.8148        1.6897        .20665E-03   -1.5317    
  17  norm          4.2851        1.8629        .97311E-03   -1.5294    
  18  norm          1.9997        1.5570        .28469E-03   -1.5425    
  19  Prefactor     3.9409        2.6929        .20321E-03   -1.5311    
  20  Prefactor     .10000E-03    .48307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     1.6818        .83223        .16308E-03   -1.5449    
  22  Prefactor     .10000E-03    2.3375        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    6.9851        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     3.1559        1.1106        .15913E-03   -1.5353    
  25  norm          .93503E-01    .12983        .72924E-03   -1.5647    
  26  norm          .29576        .21463        .11673E-02   -1.5599    
  27  Prefactor     1.5541        1.1114        .16968E-03   -1.5459    
  28  Prefactor     1.8977        .69024        .12956E-03   -1.5432    
  29  Prefactor     3.3894        1.9914        .21976E-03   -1.5340    
  30  Prefactor     .10000E-03    .28971        .20736E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     4.6184        3.6459        .18729E-03   -1.5278    
  32  Prefactor     5.8977        1.9931        .82678E-03   -1.5222    
  33  norm          1.7525        1.2223        .23815E-03   -1.5443    
  34  Prefactor     1.1595        14.287        .42607E-03   -1.5493    
  35  norm          1.4020        .16928        .37299E-04   -1.5471    
  36  norm          4.5900        2.5794        .18788E-03   -1.5279    
  37  Prefactor     .74435        1.1310        .34479E-03   -1.5535    
  38  Normalizat    .99081        .68550E-01    .28001E-03   -.93339    
  39  Prefactor     1.2023        .58376E-01    .23761E-03   -.86262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25991e-07
Minuit parameter uncertainties:
  1  6.77747e-07
  2  3.16261
  3  6.65186e-07
  4  0.557863
  5  2.22869
  6  12.6776
  7  3.00864e-06
  8  2.61321e-06
  9  0.480869
  10  1.49354
  11  0.1765
  12  3.54558
  13  1.71075
  14  9.75224
  15  2.902
  16  1.68976
  17  1.86291
  18  1.55706
  19  2.69303
  20  2.69867e-08
  21  0.832235
  22  3.04949e-06
  23  2.33885e-07
  24  1.11064
  25  0.129827
  26  0.214635
  27  1.11139
  28  0.690248
  29  1.99145
  30  3.55941e-07
  31  3.64606
  32  1.99315
  33  1.22232
  34  8.1424
  35  0.169279
  36  2.5795
  37  1.13099
  38  0.0685558
  39  0.0583791
Done.

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

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  2.000e+00  1.557e+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.202e+00  5.838e-02  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:  9.908e-01  6.856e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.43
Ra Dec: 132.513 51.141
Photon Index (Fixed Index): 2.16 +/- 0.00
Photon Flux (Fixed Index): 8.53e-09 +/- 6.64e-09
Energy Flux (Fixed Index): 3.57e-06 +/- 2.78e-06

TS (Fixed Index): 2.43
Ra Dec: 132.513 51.141
Photon Flux Upper Limit: 2.19e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.16e-06 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/88779/likelihoodResults_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.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) = 73309.5920449
delta logL = 0.395679388341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 73309.5900573
delta logL = 0.397666965975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.0466       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6714       1.0000          .0000       5.0000    
     3 'Normalizat'    .98250       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2061       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   73309.59     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      253 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.0466        1.6212        .23716E-03    .53690E-03
   2  alpha         2.6715        .63465        .41758E-01    .73686E-04
   3  Normalizat    .98250        .61691E-01    .28107E-03   -.95779E-04
   4  Prefactor     1.2061        .56462E-01    .23727E-03   -.13339E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.04656
  alpha      = 2.67146
  Normalizat = 0.982501
  Prefactor  = 1.20612
 **********
 **   18 **HESSE 
 **********

 FCN=   73309.59     FROM HESSE     STATUS=OK            25 CALLS      278 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.0466        1.4644        .94863E-05   -1.5422    
   2  alpha         2.6715        .57423        .16703E-02    .68636E-01
   3  Normalizat    .98250        .61661E-01    .11243E-04   -.93619    
   4  Prefactor     1.2061        .56425E-01    .94909E-05   -.86143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.20239e-11
Minuit parameter uncertainties:
  1  1.46443
  2  0.579427
  3  0.0616658
  4  0.0564274
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/88779': 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) = 73309.5900573
delta logL = 0.397666968449

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  2.047e+00  1.464e+00  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.671e+00  5.794e-01  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.206e+00  5.643e-02  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:  9.825e-01  6.167e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.24
Ra Dec: 132.513 51.141
Photon Index (Free Index): 2.67 +/- 0.58
Photon Flux (Free Index): 1.55e-08 +/- 1.16e-08
Energy Flux (Free Index): 3.87e-06 +/- 2.48e-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/88779/cmap_HighResolution_677635201_680227201_4FGL_J0850.0+5108_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.16e-06', comment='SUCCESS', photon_flux='8.53e-09', energy_flux2='3.87e-06', photon_flux_error='6.64e-09', dlogl='3.98e-01', energy_flux='3.57e-06', photon_flux2='1.55e-08', job_status='DONE', time_completed='2022-07-23 04:19:36.150790', photon_index_error2='0.58', photon_index2='2.67', ts='2.43', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='2.19e-08', energy_flux_error2='2.48e-06', EG='0.99', time_epoch_completed='1658575176.15', return_code='0', job_id='88779', GAL2='1.21', EG2='0.98', return_code2='0', energy_flux_error='2.78e-06', photon_flux_error2='1.16e-08', ts2='3.24', photon_index='2.16' WHERE bin_id='170' AND source_name='4FGL J0850.0+5108' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 04:19:36 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 88779: <4FGL_J0850.0+5108_monthly_bin170> in cluster <slac> Done

Job <4FGL_J0850.0+5108_monthly_bin170> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Jul 23 00:55:40 2022
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 00:55:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 00:55:42 2022
Terminated at Sat Jul 23 04:19:39 2022
Results reported at Sat Jul 23 04:19:39 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_monthly_bin170 132.513 51.1414 677635201 680227201 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 :                                   12162.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             421.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   12235 sec.
    Turnaround time :                            12239 sec.

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

