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


Performing analysis on: 4FGL_J0850.0+5108_daily_bin1525
RA = 132.513, Dec = 51.1414
tmin = 634608001, tmax = 634867201
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='775056', job_status='RUN', time_executed='2021-08-30 12:03:25.138020', time_epoch_executed='1630350205.14' WHERE source_name='4FGL J0850.0+5108' and cadence='daily' and bin_id='1525'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775056

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775056/ft1_4FGL_J0850.0+5108_daily_bin1525.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775056/ft1_4FGL_J0850.0+5108_daily_bin1525.fits outfile=/scratch/kocevski/775056/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1525.fits ra=132.513 dec=51.1414 rad=12.0 tmin=634608001.0 tmax=634867201.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.08
user 2.86
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.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/775056/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1525.fits evtable="EVENTS" outfile="/scratch/kocevski/775056/ft1_filtered_4FGL_J0850.0+5108_daily_bin1525.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/775056/ft1_filtered_4FGL_J0850.0+5108_daily_bin1525.fits" evtable="EVENTS" scfile=/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits sctable="SC_DATA" outfile=/scratch/kocevski/775056/ltcube_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.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/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits
.....................!
real 12.68
user 12.31
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775056/ft1_filtered_4FGL_J0850.0+5108_daily_bin1525.fits evtable="EVENTS" scfile=/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits sctable="SC_DATA" expcube=/scratch/kocevski/775056/ltcube_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.fits outfile=/scratch/kocevski/775056/expmap_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.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/775056/ltcube_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.fits
.....................!
real 190.59
user 185.21
sys 4.91

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/775056/ft1_filtered_4FGL_J0850.0+5108_daily_bin1525.fits scfile=/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits outfile=/scratch/kocevski/775056/cmap_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.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.57
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775056/ft1_filtered_4FGL_J0850.0+5108_daily_bin1525.fits scfile=/scratch/kocevski/775056/ft2_4FGL_J0850.0+5108_daily_bin1525.fits outfile=/scratch/kocevski/775056/cmap_HighResolution_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.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.57
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2947       1.0000         .10000E-03   10000.    
     2 'Prefactor '    14.309       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.3889       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .73626E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .38610E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20858E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .75957E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.8224       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.9553       1.0000         .10000E-03   10000.    
    11 'norm      '    .89026       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .39480E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0053       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10517E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.255       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .23635E-02   1.0000         .10000E-03   10000.    
    17 'norm      '    .21132E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .54995E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    34.392       1.0000         .10000E-03   10000.    
    20 'Prefactor '    10.545       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .51869E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25053E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .39780E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .74154E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10089E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.4181       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .48693E-02   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .11074E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .43844E-01   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .23752E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    155.49       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .36820E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    20.872       1.0000         .10000E-03   10000.    
    34 'Prefactor '    .11505E-03   1.0000         .10000E-03   10000.    
    35 'norm      '    3.2134       1.0000         .10000E-03   10000.    
    36 'norm      '    9.6965       1.0000         .10000E-03   10000.    
    37 'Prefactor '    .10063E-01   1.0000         .10000E-03   10000.    
    38 'Normalizat'    .73997       1.0000         .10000E-01   10.000    
    39 'Prefactor '    .70822       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1429.474     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     4536 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3333        1.3779        .16152E-06    .57989E-04
   2  Prefactor     15.010        29.009       -.60678E-06    .13615E-04
   3  Prefactor     .10000E-03    43.891        .48948E-05** at limit **
   4  norm          1.4872        6.0443        .26869E-05    .16910E-03
   5  Prefactor     .10000E-03    15.980       -.81253E-07** at limit **
   6  Prefactor     .10000E-03    48.306       -.95839E-06** at limit **
   7  Prefactor     .10001E-03    70.175       -.66035E-05** at limit **
   8  norm          .10000E-03    31.227        .64404E-05** at limit **
   9  norm          2.8519        2.6170        .36556E-06    .74127E-04
  10  Prefactor     3.6045        14.931       -.59938E-06    .28771E-04
  11  norm          .89283        .90424       -.44819E-07    .22767E-04
  12  Prefactor     .10000E-03    19.705        .43820E-06** at limit **
  13  Prefactor     3.8988        12.009       -.27816E-05    .18463E-03
  14  Prefactor     .10000E-03    83.304       -.19599E-05** at limit **
  15  Prefactor     49.023        53.309       -.21648E-05   -.29804E-05
  16  Prefactor     .10000E-03    16.406        .16462E-05** at limit **
  17  norm          .10000E-03    9.0358        .59562E-07** at limit **
  18  norm          .10000E-03    23.689        .45498E-06** at limit **
  19  Prefactor     30.374        49.171       -.26429E-05    .40397E-04
  20  Prefactor     10.725        16.686       -.24480E-05    .56248E-04
  21  Prefactor     .10000E-03    7.3262       -.44430E-06** at limit **
  22  Prefactor     .10000E-03    36.495        .58495E-05** at limit **
  23  Prefactor     .10000E-03    99.884        .17086E-05** at limit **
  24  Prefactor     .10000E-03    32.389        .38312E-06** at limit **
  25  norm          .10000E-03    2.7387        .10234E-05** at limit **
  26  norm          1.4174        2.4646        .51396E-06    .94130E-04
  27  Prefactor     .10000E-03    21.432       -.55517E-06** at limit **
  28  Prefactor     .10000E-03    76.391       -.98732E-06** at limit **
  29  Prefactor     .10000E-03    34.687       -.34314E-05** at limit **
  30  Prefactor     .10000E-03    8.6711        .14804E-06** at limit **
  31  Prefactor     198.56        211.57       -.22443E-05    .23587E-04
  32  Prefactor     .10000E-03    31.509       -.91406E-07** at limit **
  33  norm          20.051        38.030       -.15698E-05    .27208E-04
  34  Prefactor     .10000E-03    86.298       -.13663E-05** at limit **
  35  norm          2.9213        3.6828       -.14126E-05   -.64357E-04
  36  norm         10000.0        9876.6       -.66843E-04** at limit **
  37  Prefactor     .10000E-03    167.00       -.35043E-06** at limit **
  38  Normalizat    .63506        .50082        .42492E-05    .60003E-04
  39  Prefactor     .74389        .35371        .32288E-05    .10414E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.33332
  Prefactor  = 15.0102
  Prefactor  = 0.0001
  norm       = 1.48716
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100003
  norm       = 2.8519
  Prefactor  = 3.6045
  norm       = 0.892829
  Prefactor  = 0.0001
  Prefactor  = 3.89882
  Prefactor  = 0.0001
  Prefactor  = 49.0226
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 30.3744
  Prefactor  = 10.7246
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.4174
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 198.565
  Prefactor  = 0.0001
  norm       = 20.0509
  Prefactor  = 0.000100002
  norm       = 2.92126
  norm       = 10000
  Prefactor  = 0.000100001
  Normalizat = 0.635055
  Prefactor  = 0.743889
 **********
 **   18 **HESSE 
 **********

 FCN=   1429.474     FROM HESSE     STATUS=OK          1014 CALLS     5550 TOTAL
                     EDM=   .89E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3333        1.3754        .67738E-02   -1.5402    
   2  Prefactor     15.010        29.521        .26471E-02   -1.4933    
   3  Prefactor     .10000E-03    47.651        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.4872        6.1853        .92208E-02   -1.5464    
   5  Prefactor     .10000E-03    16.494        .10475E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.058        .10640E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10001E-03    85.380        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.3000        .49980E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.8519        2.6642        .60522E-02   -1.5370    
  10  Prefactor     3.6045        15.397        .59057E-02   -1.5328    
  11  norm          .89283        .88715        .79939E-02   -1.5519    
  12  Prefactor     .10000E-03    19.630        .10635E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.8988        12.511        .50378E-02   -1.5313    
  14  Prefactor     .10000E-03    84.084        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     49.023        53.628        .14005E-02   -1.4306    
  16  Prefactor     .10000E-03    14.894        .10037E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    8.6238        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    20.925        .95341E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     30.374        48.704        .17083E-02   -1.4605    
  20  Prefactor     10.725        16.702        .30846E-02   -1.5053    
  21  Prefactor     .10000E-03    6.7521        .10570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    34.756        .10732E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    99.735        .10633E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.909        .10473E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.5986        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.4174        2.4996        .90854E-02   -1.5470    
  27  Prefactor     .10000E-03    19.682        .96193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    72.750        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    33.795        .92400E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    8.5063        .10034E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     198.56        209.52        .80826E-03   -1.2880    
  32  Prefactor     .10000E-03    30.806        .10651E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          20.051        38.085        .21918E-02   -1.4812    
  34  Prefactor     .10000E-03    86.568        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  35  norm          2.9213        3.7352        .56500E-02   -1.5366    
  36  norm         10000.0        9871.0        .32173E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor     .10000E-03    159.87        .90733E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .63506        .43206        .72134E-01   -1.0652    
  39  Prefactor     .74389        .29296        .42511E-01   -1.0183    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89672e-10
Minuit parameter uncertainties:
  1  1.37538
  2  29.5497
  3  0.000295949
  4  6.06669
  5  2.59623e-05
  6  0.000109018
  7  0.00137951
  8  0.000263818
  9  2.66427
  10  14.9055
  11  0.88716
  12  5.83129e-07
  13  12.5191
  14  0.000147309
  15  53.6809
  16  2.89217e-05
  17  1.23605e-05
  18  5.31717e-05
  19  48.7674
  20  16.709
  21  7.84105e-06
  22  5.00242e-06
  23  0.0001502
  24  1.14729e-05
  25  2.99029e-06
  26  2.49976
  27  6.14821e-06
  28  0.000106509
  29  0.000381814
  30  1.59197e-05
  31  210.314
  32  2.04068e-05
  33  38.1314
  34  0.000738387
  35  3.73554
  36  0.0966204
  37  0.000574244
  38  0.43439
  39  0.293572
Done.

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

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.000e-04  5.317e-05  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.439e-01  2.936e-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:  6.351e-01  4.344e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/775056/likelihoodResults_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.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) = 1429.47471296
delta logL = -0.000224769149099

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1429.47448818
delta logL = 1.3496446627e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10393E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4112       1.0000          .0000       5.0000    
     3 'Normalizat'    .63512       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74392       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=   1429.419     FROM MIGRAD    STATUS=CONVERGED    142 CALLS      289 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .31210        .92133        .13554E-01   -.46575E-03
   2  alpha         5.0000        4.2921        .16474    ** at limit **
   3  Normalizat    .57056        .46059        .31929E-02    .18417E-05
   4  Prefactor     .77650        .33662        .21553E-03    .72526E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.312096
  alpha      = 5
  Normalizat = 0.570564
  Prefactor  = 0.776497
 **********
 **   18 **HESSE 
 **********

 FCN=   1429.419     FROM HESSE     STATUS=OK            27 CALLS      316 TOTAL
                     EDM=   .11E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .31210        .99094        .59825E-04   -1.5820    
   2  alpha         5.0000        4.2863        .32948E-01    7.8540    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .57056        .48838        .12772E-03   -1.0925    
   4  Prefactor     .77650        .34678        .86214E-05   -1.0060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.08412e-13
Minuit parameter uncertainties:
  1  0.990994
  2  1.39033e-06
  3  0.492133
  4  0.347755
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775056': 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) = 1429.41899831
delta logL = 0.0554898769753

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  3.121e-01  9.910e-01  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  5.000e+00  1.390e-06  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.765e-01  3.478e-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:  5.706e-01  4.921e-01  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/775056/cmap_HighResolution_634608001_634867201_4FGL_J0850.0+5108_daily_bin1525.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.53e-05', job_status='DONE', photon_flux_upper_limit='2.04e-07', time_completed='2021-08-30 12:12:11.740397', job_id='775056', GAL2='0.78', fit_tolerance='1e-08', EG2='0.57', EG='0.64', time_epoch_completed='1630350731.74', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='5.55e-02', ts2='0.14', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1525' AND source_name='4FGL J0850.0+5108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:12:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0231>
Subject: Job 775056: <4FGL_J0850.0+5108_daily_bin1525> in cluster <slac> Done

Job <4FGL_J0850.0+5108_daily_bin1525> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Mon Aug 30 12:00:26 2021
Job was executed on host(s) <bullet0231>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:00:27 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:27 2021
Terminated at Mon Aug 30 12:12:12 2021
Results reported at Mon Aug 30 12:12:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+5108_daily_bin1525 132.513 51.1414 634608001 634867201 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 :                                   522.08 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   704 sec.
    Turnaround time :                            706 sec.

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

