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


Performing analysis on: 4FGL_J0850.0+5108_daily_bin1526
RA = 132.513, Dec = 51.1414
tmin = 634867201, tmax = 635126401
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='775057', job_status='RUN', time_executed='2021-08-30 12:02:36.724641', time_epoch_executed='1630350156.72' WHERE source_name='4FGL J0850.0+5108' and cadence='daily' and bin_id='1526'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/775057

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/775057/ft1_4FGL_J0850.0+5108_daily_bin1526.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/775057/ft2_4FGL_J0850.0+5108_daily_bin1526.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/775057/ft1_4FGL_J0850.0+5108_daily_bin1526.fits outfile=/scratch/kocevski/775057/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1526.fits ra=132.513 dec=51.1414 rad=12.0 tmin=634867201.0 tmax=635126401.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.00
user 2.79
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/775057/ft2_4FGL_J0850.0+5108_daily_bin1526.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/775057/ft1_filteredMKT_4FGL_J0850.0+5108_daily_bin1526.fits evtable="EVENTS" outfile="/scratch/kocevski/775057/ft1_filtered_4FGL_J0850.0+5108_daily_bin1526.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.49
user 0.34
sys 0.13

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/775057/ft1_filtered_4FGL_J0850.0+5108_daily_bin1526.fits evtable="EVENTS" scfile=/scratch/kocevski/775057/ft2_4FGL_J0850.0+5108_daily_bin1526.fits sctable="SC_DATA" expcube=/scratch/kocevski/775057/ltcube_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.fits outfile=/scratch/kocevski/775057/expmap_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.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/775057/ltcube_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.fits
.....................!
real 190.74
user 185.40
sys 4.86

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/775057/ft1_filtered_4FGL_J0850.0+5108_daily_bin1526.fits scfile=/scratch/kocevski/775057/ft2_4FGL_J0850.0+5108_daily_bin1526.fits outfile=/scratch/kocevski/775057/cmap_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.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.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/775057/ft1_filtered_4FGL_J0850.0+5108_daily_bin1526.fits scfile=/scratch/kocevski/775057/ft2_4FGL_J0850.0+5108_daily_bin1526.fits outfile=/scratch/kocevski/775057/cmap_HighResolution_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.0482       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10334E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10234E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.2660       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    117.85       1.0000         .10000E-03   10000.    
     7 'Prefactor '    16.227       1.0000         .10000E-03   10000.    
     8 'norm      '    5.5079       1.0000         .10000E-03   10000.    
     9 'norm      '    .15647       1.0000         .10000E-03   10000.    
    10 'Prefactor '    22.123       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5493       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    12.848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    126.60       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11241E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10157E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10854E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    1.6025       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10822E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10959E-02   1.0000         .10000E-03   10000.    
    32 'Prefactor '    .11636E-03   1.0000         .10000E-03   10000.    
    33 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    34 'Prefactor '    317.01       1.0000         .10000E-03   10000.    
    35 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    36 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    37 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    38 'Normalizat'    .33619E-01   1.0000         .10000E-01   10.000    
    39 'Prefactor '    .98779       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=   1532.023     FROM MIGRAD    STATUS=CONVERGED    130 CALLS     7288 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.0504        1.2490       -.26881E-05    .11380E-02
   2  Prefactor     .10048E-03    17.454       -.24185E-04** at limit **
   3  Prefactor     .10000E-03    11.097       -.19867E-04** at limit **
   4  norm          8.2658        1.0212       -.32915E-06   -.29508E-03
   5  Prefactor     .10000E-03    4.9220        .71003E-05** at limit **
   6  Prefactor     117.86        1.6764        .52447E-06   -.35348E-02
   7  Prefactor     16.168        4.4716       -.66719E-06   -.23089E-02
   8  norm          5.5048        1.1433       -.62420E-06   -.30211E-03
   9  norm          .14335        .47108        .59728E-06   -.18324E-03
  10  Prefactor     22.118        1.1316        .50096E-07    .93559E-04
  11  norm          1.5501        1.5437        .41325E-06   -.37079E-04
  12  Prefactor     .10149E-03    20.123        .29058E-04** at limit **
  13  Prefactor     12.849        1.2050       -.97845E-06    .16216E-03
  14  Prefactor     126.63        4.1449        .15409E-05   -.11534E-01
  15  Prefactor     .10124E-03    13.201        .92753E-05** at limit **
  16  Prefactor     .10000E-03    4.8400        .59537E-05** at limit **
  17  norm          .10000E-03    7.0588        .35429E-05** at limit **
  18  norm          .10000E-03    8.3212       -.43668E-05** at limit **
  19  Prefactor     .10009E-03    6.1004       -.12474E-04** at limit **
  20  Prefactor     .10000E-03    3.7281        .15571E-04** at limit **
  21  Prefactor     .10006E-03    13.704        .21988E-04** at limit **
  22  Prefactor     .10060E-03    17.456        .11009E-04** at limit **
  23  Prefactor     .16241E-03    50.079        .96144E-06** at limit **
  24  Prefactor     .10068E-03    17.275        .10569E-04** at limit **
  25  norm          .10000E-03    7.4057        .90067E-05** at limit **
  26  norm          1.6031        1.6216       -.49193E-06    .18666E-03
  27  Prefactor     .10305E-03    12.558       -.61492E-05** at limit **
  28  Prefactor     .34632E-03    91.125       -.62518E-04** at limit **
  29  Prefactor     .10009E-03    19.034        .14518E-04** at limit **
  30  Prefactor     .10002E-03    11.058       -.19108E-04** at limit **
  31  Prefactor     .26917E-03    6.7004       -.19447E-04** at limit **
  32  Prefactor     .10247E-03    83.305       -.40015E-04** at limit **
  33  norm          .10049E-03    10.939       -.13761E-04** at limit **
  34  Prefactor     317.01        1.0041        .22127E-07   -.40623E-03
  35  norm          .10003E-03    5.7676       -.32484E-05** at limit **
  36  norm         10000.0        .74978        .57879E-05** at limit **
  37  Prefactor    10000.0        3.5614        .12158E-04** at limit **
  38  Normalizat    .31412E-01    1.8976       -.99431E-05    .14164E-04
  39  Prefactor     .98899        .30357       -.34209E-05    .10471E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.05036
  Prefactor  = 0.00010048
  Prefactor  = 0.0001
  norm       = 8.2658
  Prefactor  = 0.000100005
  Prefactor  = 117.858
  Prefactor  = 16.1682
  norm       = 5.50485
  norm       = 0.143354
  Prefactor  = 22.1178
  norm       = 1.55007
  Prefactor  = 0.000101491
  Prefactor  = 12.8487
  Prefactor  = 126.63
  Prefactor  = 0.000101243
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100091
  Prefactor  = 0.000100001
  Prefactor  = 0.000100058
  Prefactor  = 0.000100598
  Prefactor  = 0.000162409
  Prefactor  = 0.000100679
  norm       = 0.0001
  norm       = 1.60307
  Prefactor  = 0.000103054
  Prefactor  = 0.000346317
  Prefactor  = 0.000100089
  Prefactor  = 0.000100022
  Prefactor  = 0.000269165
  Prefactor  = 0.000102473
  norm       = 0.000100488
  Prefactor  = 317.009
  norm       = 0.000100033
  norm       = 10000
  Prefactor  = 10000
  Normalizat = 0.0314119
  Prefactor  = 0.988992
 **********
 **   18 **HESSE 
 **********

 FCN=   1532.023     FROM HESSE     STATUS=NOT POSDEF  1004 CALLS     8292 TOTAL
                     EDM=   .75E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.0504        3.6896        .96930E-02   -1.5503    
   2  Prefactor     .10048E-03    15.678        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    35.697        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.2658        9.8841        .34860E-02   -1.5133    
   5  Prefactor     .10000E-03    7.8781        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     117.86        256.18        .92665E-03   -1.3532    
   7  Prefactor     16.168        35.657        .24856E-02   -1.4904    
   8  norm          5.5048        10.625        .42800E-02   -1.5239    
   9  norm          .14335        10.104        .47934E-01   -1.5632    
  10  Prefactor     22.118        20.137        .21290E-02   -1.4767    
  11  norm          1.5501        1.4758        .85560E-02   -1.5459    
  12  Prefactor     .10149E-03    19.961        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     12.849        29.334        .27938E-02   -1.4991    
  14  Prefactor     126.63        145.70        .89443E-03   -1.3453    
  15  Prefactor     .10124E-03    27.894        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    7.9078        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    5.8128        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    6.8630        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10009E-03    9.2074        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.0831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10006E-03    11.635        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10060E-03    56.681        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .16241E-03    112.07        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10068E-03    56.395        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    6.1003        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          1.6031        1.9176        .83711E-02   -1.5455    
  27  Prefactor     .10305E-03    47.831        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .34632E-03    274.37        .90712E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10009E-03    59.019        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10002E-03    35.116        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .26917E-03    618.02        .10351E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Prefactor     .10247E-03    173.22        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  norm          .10049E-03    32.735        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  34  Prefactor     317.01        781.69        .57077E-03   -1.2128    
  35  norm          .10003E-03    9.4672        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  36  norm         10000.0        1963.0        .10584E-01    1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  37  Prefactor    10000.0        395.66        .10604E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  38  Normalizat    .31412E-01    9.1836        .19796       -1.4782    
  39  Prefactor     .98899        1.2956        .46114E-01   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.49938e-06
Minuit parameter uncertainties:
  1  3.69036
  2  0.00548874
  3  2.02295e-05
  4  9.88608
  5  0.000384973
  6  258.653
  7  35.7044
  8  10.6289
  9  2.40662
  10  20.143
  11  1.47583
  12  0.0109134
  13  29.3666
  14  146.115
  15  0.0117811
  16  5.58166e-05
  17  1.51883e-05
  18  0.000105076
  19  0.00183255
  20  0.000103857
  21  0.00163686
  22  0.0116574
  23  0.167576
  24  0.0123858
  25  2.6288e-06
  26  1.91768
  27  0.0241917
  28  0.522341
  29  0.00460079
  30  0.00174732
  31  0.653532
  32  0.0415136
  33  0.00799716
  34  810.267
  35  0.00112629
  36  1.4079
  37  0.139786
  38  1.87358
  39  1.34014
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 1532.02292595

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.000e-04  1.051e-04  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:  9.890e-01  1.340e+00  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:  3.141e-02  1.874e+00  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.81e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/775057/likelihoodResults_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.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) = 1532.02347753
delta logL = -0.00055157734846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1532.02292596
delta logL = -3.37263372785e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1579       1.0000          .0000       5.0000    
     3 'Normalizat'    .31370E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98902       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=   1532.023     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      242 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1054.8        .11029E-02** at limit **
   2  alpha         2.0581        2.5597        .50000        .11437E-07
   3  Normalizat    .31411E-01    .17797        .11615E-01    .69281E-05
   4  Prefactor     .98899        .92802E-01    .18931E-03    .83204E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 2.05812
  Normalizat = 0.0314105
  Prefactor  = 0.988992
 **********
 **   18 **HESSE 
 **********

 FCN=   1532.023     FROM HESSE     STATUS=OK            31 CALLS      273 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.281        .22057E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0581        3.3322        .50000       -.17769    
   3  Normalizat    .31411E-01    1.8028        .46462E-03   -1.4782    
   4  Prefactor     .98899        .30318        .37862E-04   -.93097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.27812e-10
Minuit parameter uncertainties:
  1  0.000171202
  2  375.883
  3  0.406329
  4  0.303706
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/775057': 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) = 1532.02292591
delta logL = 3.86671672459e-08

Extracting fit parameters...

4FGL J0850.0+5108
   Spectrum: LogParabola
347         norm:  1.000e-04  1.712e-04  1.000e-04  1.000e+04 ( 1.000e-12)
348        alpha:  2.058e+00  3.759e+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:  9.890e-01  3.037e-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:  3.141e-02  4.063e-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/775057/cmap_HighResolution_634867201_635126401_4FGL_J0850.0+5108_daily_bin1526.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.56e-05', job_status='DONE', photon_flux_upper_limit='1.81e-07', time_completed='2021-08-30 12:13:26.147191', job_id='775057', GAL2='0.99', fit_tolerance='1e-08', EG2='0.03', EG='0.03', time_epoch_completed='1630350806.15', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='102', GAL='0.99', dlogl='3.87e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.16' WHERE bin_id='1526' AND source_name='4FGL J0850.0+5108' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:13:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 775057: <4FGL_J0850.0+5108_daily_bin1526> in cluster <slac> Done

Job <4FGL_J0850.0+5108_daily_bin1526> 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) <bullet0085>, 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:13:26 2021
Results reported at Mon Aug 30 12:13:26 2021

Your job looked like:

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

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

