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


Performing analysis on: 4FGL_J0850.0+5108_daily_bin1578
RA = 132.513, Dec = 51.1414
tmin = 648345601, tmax = 648604801
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='775137', job_status='RUN', time_executed='2021-08-30 12:03:44.295175', time_epoch_executed='1630350224.3' WHERE source_name='4FGL J0850.0+5108' and cadence='daily' and bin_id='1578'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775137

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775137/ft1_4FGL_J0850.0+5108_daily_bin1578.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775137/ft1_4FGL_J0850.0+5108_daily_bin1578.fits outfile=/scratch/kocevski/775137/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1578.fits ra=132.513 dec=51.1414 rad=12.0 tmin=648345601.0 tmax=648604801.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 3.16
user 2.74
sys 0.39

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.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/775137/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1578.fits evtable="EVENTS" outfile="/scratch/kocevski/775137/ft1_filtered_4FGL_J0850.0+5108_daily_bin1578.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.70
user 0.32
sys 0.37

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775137/ft1_filtered_4FGL_J0850.0+5108_daily_bin1578.fits" evtable="EVENTS" scfile=/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits sctable="SC_DATA" outfile=/scratch/kocevski/775137/ltcube_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.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/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits
.....................!
real 12.48
user 11.82
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775137/ft1_filtered_4FGL_J0850.0+5108_daily_bin1578.fits evtable="EVENTS" scfile=/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits sctable="SC_DATA" expcube=/scratch/kocevski/775137/ltcube_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.fits outfile=/scratch/kocevski/775137/expmap_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.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/775137/ltcube_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.fits
.....................!
real 191.41
user 185.55
sys 5.52

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/775137/ft1_filtered_4FGL_J0850.0+5108_daily_bin1578.fits scfile=/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits outfile=/scratch/kocevski/775137/cmap_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.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.73
user 0.39
sys 0.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775137/ft1_filtered_4FGL_J0850.0+5108_daily_bin1578.fits scfile=/scratch/kocevski/775137/ft2_4FGL_J0850.0+5108_daily_bin1578.fits outfile=/scratch/kocevski/775137/cmap_HighResolution_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.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.75
user 0.37
sys 0.36

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50592E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .19312E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.1783       1.0000         .10000E-03   10000.    
     9 'norm      '    1.3799       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16197E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    25 'norm      '    10000.       1.0000         .10000E-03   10000.    
    26 'norm      '    4.3130       1.0000         .10000E-03   10000.    
    27 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    28 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    32 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    33 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    36 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    37 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .73509       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=   1098.954     FROM MIGRAD    STATUS=CONVERGED   1251 CALLS     7318 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26501E-02    1.1487       -.79591E-08   -.10334E-03
   2  Prefactor     .10000E-03    10.591       -.48794E-08** at limit **
   3  Prefactor     .10000E-03    85.828       -.52102E-07** at limit **
   4  norm          .10000E-03    1.6053       -.11353E-08** at limit **
   5  Prefactor     .10000E-03    12.313       -.15768E-07** at limit **
   6  Prefactor     .10000E-03    268.96        .31696E-04** at limit **
   7  Prefactor     .10000E-03    27.142        .54279E-05** at limit **
   8  norm          3.1788        5.1563       -.42162E-07   -.33017E-04
   9  norm          1.3799        2.5519       -.38771E-07   -.68720E-04
  10  Prefactor     .10000E-03    6.2011       -.44695E-08** at limit **
  11  norm          .10000E-03    .97421       -.14392E-08** at limit **
  12  Prefactor     .10000E-03    53.427       -.29661E-04** at limit **
  13  Prefactor     .10000E-03    3.6929       -.25265E-08** at limit **
  14  Prefactor     .10000E-03    172.36       -.36658E-04** at limit **
  15  Prefactor     .10000E-03    27.935       -.15243E-05** at limit **
  16  Prefactor     .10000E-03    6.1919        .18847E-09** at limit **
  17  norm          .10000E-03    9.7824        .31620E-08** at limit **
  18  norm          .10000E-03    7.4004       -.50635E-10** at limit **
  19  Prefactor     .10000E-03    14.300        .61296E-08** at limit **
  20  Prefactor     .10301E-03    14.325       -.22384E-05** at limit **
  21  Prefactor     .10000E-03    25.005       -.45400E-05** at limit **
  22  Prefactor     .10000E-03    36.198       -.39739E-05** at limit **
  23  Prefactor     .10000E-03    143.67        .48424E-04** at limit **
  24  Prefactor     10000.        1612.6        .50185E-03** at limit **
  25  norm          10000.        158.13        .50659E-06** at limit **
  26  norm          4.3130        2.3965        .43003E-07    .35510E-03
  27  Prefactor     10000.        662.68       -.26583E-03** at limit **
  28  Prefactor     10000.        2120.6        .77521E-03** at limit **
  29  Prefactor     .10000E-03    222.49       -.50992E-04** at limit **
  30  Prefactor     .10000E-03    25.469        .58362E-06** at limit **
  31  Prefactor     10000.        1844.2        .63814E-03** at limit **
  32  Prefactor     10000.        941.64       -.29842E-04** at limit **
  33  norm          .10000E-03    23.314        .11715E-05** at limit **
  34  Prefactor     .10000E-03    50.306        .29549E-04** at limit **
  35  norm          .10000E-03    8.7005       -.24949E-08** at limit **
  36  norm          .10000E-03    661.14        .26683E-03** at limit **
  37  Prefactor     10000.        1247.3        .23785E-03** at limit **
  38  Normalizat    .10000E-01    .93248E-01   -.18936E-07** at limit **
  39  Prefactor     .73505        .16734        .37090E-06    .95495E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00265012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.17876
  norm       = 1.37994
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000103011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 10000
  norm       = 4.31303
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10000
  Normalizat = 0.01
  Prefactor  = 0.73505
 **********
 **   18 **HESSE 
 **********

 FCN=   1098.954     FROM HESSE     STATUS=OK           916 CALLS     8234 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26501E-02    3.9153        .11082E-01   -1.5698    
   2  Prefactor     .10000E-03    10.609        .10539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    86.555        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    1.6062        .41026E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.322        .11365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    270.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    27.176        .16875E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.1788        5.1447        .91338E-04   -1.5351    
   9  norm          1.3799        2.5063        .68883E-04   -1.5473    
  10  Prefactor     .10000E-03    6.2052        .80636E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .97472        .31961E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    53.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.7000        .62223E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    172.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    27.935        .17123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1935        .80583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    9.7866        .10129E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.4020        .88098E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.317        .12248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10301E-03    228.92        .23697E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    25.005        .16199E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    36.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    143.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     10000.        1612.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          10000.        158.13        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          4.3130        2.3865        .36958E-04   -1.5293    
  27  Prefactor     10000.        662.68        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     10000.        2120.6        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    222.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    25.469        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     10000.        1844.2        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     10000.        941.64        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10000E-03    23.315        .15641E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     .10000E-03    50.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          .10000E-03    8.7008        .95526E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm          .10000E-03    661.14        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     10000.        1247.3        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .10000E-01    .96291E-01    .60848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Prefactor     .73505        .16345        .18808E-03   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25327e-08
Minuit parameter uncertainties:
  1  0.199858
  2  1.54023e-06
  3  3.24243e-05
  4  1.59846e-07
  5  3.11921e-06
  6  0.000241844
  7  7.1232e-06
  8  5.14541
  9  2.50648
  10  1.00821e-06
  11  1.43536e-07
  12  1.68304e-07
  13  4.72936e-07
  14  5.16531e-06
  15  1.92938e-08
  16  1.08451e-07
  17  1.60909e-07
  18  1.26268e-07
  19  1.05861e-07
  20  0.0527128
  21  3.26172e-08
  22  1.75063e-07
  23  3.82184e-07
  24  1.46314e-05
  25  1.99899e-07
  26  2.38658
  27  4.49998e-06
  28  2.62454e-05
  29  2.04684e-07
  30  1.37267e-07
  31  1.48834e-05
  32  6.04166e-06
  33  1.41447e-07
  34  2.26847e-07
  35  8.3425e-08
  36  4.51212e-06
  37  1.54861e-06
  38  1.73938e-08
  39  0.163553
Done.

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

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.000e-04  1.263e-07  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:  7.350e-01  1.636e-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:  1.000e-02  1.739e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 132.513 51.141
Photon Flux Upper Limit: 1.79e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.47e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775137/likelihoodResults_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.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) = 1098.95434811
delta logL = -0.000630775723721

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1098.95371781
delta logL = -4.7707885642e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1456       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73502       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=   1098.954     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      236 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    516.39        .88938E-02** at limit **
   2  alpha         1.6543        3.9728        .16675       -.16159E-07
   3  Normalizat    .10000E-01    .13007E-01    .60848E-02** at limit **
   4  Prefactor     .73505        .55617E-01    .18808E-03   -.90731E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.65427
  Normalizat = 0.01
  Prefactor  = 0.735049
 **********
 **   18 **HESSE 
 **********

 FCN=   1098.954     FROM HESSE     STATUS=OK            27 CALLS      263 TOTAL
                     EDM=   .97E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    9.9368        .96270E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6543        3.1607        .66698E-01   -.34510    
   3  Normalizat    .10000E-01    .96296E-01    .12170E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .73505        .15145        .37615E-04   -1.0217    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71688e-12
Minuit parameter uncertainties:
  1  2.54058e-05
  2  341.638
  3  5.58977e-08
  4  0.151535
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775137': 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) = 1098.95371623
delta logL = 1.09817551674e-06

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.000e-04  2.541e-05  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  1.654e+00  3.416e+02  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:  7.350e-01  1.515e-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:  1.000e-02  5.590e-08  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 132.513 51.141

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/775137/cmap_HighResolution_648345601_648604801_4FGL_J0850.0+5108_daily_bin1578.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.47e-05', job_status='DONE', photon_flux_upper_limit='1.79e-07', time_completed='2021-08-30 12:13:15.607848', job_id='775137', GAL2='0.74', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630350795.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='1.10e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1578' AND source_name='4FGL J0850.0+5108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:13:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 775137: <4FGL_J0850.0+5108_daily_bin1578> in cluster <slac> Done

Job <4FGL_J0850.0+5108_daily_bin1578> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 12:00:33 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:00:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 12:00:34 2021
Terminated at Mon Aug 30 12:13:16 2021
Results reported at Mon Aug 30 12:13:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_daily_bin1578 132.513 51.1414 648345601 648604801 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 :                                   568.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             223.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   761 sec.
    Turnaround time :                            763 sec.

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

