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


Performing analysis on: 4FGL_J0850.0+4855_monthly_bin101
RA = 132.508, Dec = 48.9217
tmin = 498787201, tmax = 501379201
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='504017', job_status='RUN', time_executed='2021-10-20 03:25:33.256494', time_epoch_executed='1634725533.26' WHERE source_name='4FGL J0850.0+4855' and cadence='monthly' and bin_id='101'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/504017

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

Retrieving the FT1 file...

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

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

Retrieving 459 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/504017/ft1_4FGL_J0850.0+4855_monthly_bin101.fits


Retrieving the FT1 file...

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

Retrieving 459 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/504017/ft1_4FGL_J0850.0+4855_monthly_bin101.fits outfile=/scratch/kocevski/504017/ft1_filteredMKT_4FGL_J0850.0+4855_monthly_bin101.fits ra=132.508 dec=48.9217 rad=12.0 tmin=498787201.0 tmax=501379201.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 43.83
user 42.68
sys 0.85

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.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/504017/ft1_filteredMKT_4FGL_J0850.0+4855_monthly_bin101.fits evtable="EVENTS" outfile="/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.84
user 0.66
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits" evtable="EVENTS" scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits sctable="SC_DATA" outfile=/scratch/kocevski/504017/ltcube_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.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/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits
.....................!
real 115.85
user 115.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits sctable="SC_DATA" expcube=/scratch/kocevski/504017/ltcube_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits outfile=/scratch/kocevski/504017/expmap_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.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/504017/ltcube_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits
.....................!
real 192.98
user 186.24
sys 5.53

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

Setting source of interest to:
4FGL J0850.0+4855 @ 132.508 48.9217

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits outfile=/scratch/kocevski/504017/cmap_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.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.508 yref=48.9217 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.79
user 0.60
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits outfile=/scratch/kocevski/504017/cmap_HighResolution_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.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.508 yref=48.9217 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.78
user 0.61
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits evtable="EVENTS" scfile=/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/504017/Model_4FGL_J0850.0+4855_monthly_bin101.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/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits.....................!
real 500.85
user 497.85
sys 1.28

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits', '/scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits', expMap='/scratch/kocevski/504017/expmap_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits', expCube='/scratch/kocevski/504017/ltcube_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/504017/Model_4FGL_J0850.0+4855_monthly_bin101.xml', optimizer='MINUIT')

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

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  6.004e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/504017/ft1_filtered_4FGL_J0850.0+4855_monthly_bin101.fits
Spacecraft file(s): /scratch/kocevski/504017/ft2_4FGL_J0850.0+4855_monthly_bin101.fits
Exposure map: /scratch/kocevski/504017/expmap_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits
Exposure cube: /scratch/kocevski/504017/ltcube_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/504017/Model_4FGL_J0850.0+4855_monthly_bin101.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) = 65800.6742114

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .90684E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.9562       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29324       1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.0272       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7810       1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.0036       1.0000         .10000E-03   10000.    
    11 'norm      '    .84642       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10374E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0691       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .61949       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .91097       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.9131       1.0000         .10000E-03   10000.    
    18 'norm      '    4.0700       1.0000         .10000E-03   10000.    
    19 'norm      '    .71553       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.4345       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .47630E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    21.768       1.0000         .10000E-03   10000.    
    25 'Prefactor '    2.1203       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .61956       1.0000         .10000E-03   10000.    
    27 'norm      '    .24905       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .65400       1.0000         .10000E-03   10000.    
    29 'norm      '    1.3607       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .45518       1.0000         .10000E-03   10000.    
    31 'Prefactor '    3.5014       1.0000         .10000E-03   10000.    
    32 'Prefactor '    .99671       1.0000         .10000E-03   10000.    
    33 'Prefactor '    4.9468       1.0000         .10000E-03   10000.    
    34 'norm      '    2.2299       1.0000         .10000E-03   10000.    
    35 'Prefactor '    11.527       1.0000         .10000E-03   10000.    
    36 'Prefactor '    1.0928       1.0000         .10000E-03   10000.    
    37 'norm      '    10.669       1.0000         .10000E-03   10000.    
    38 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    39 'Normalizat'    1.0386       1.0000         .10000E-01   10.000    
    40 'Prefactor '    1.0228       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   65800.59     FROM MIGRAD    STATUS=CONVERGED   1218 CALLS     5630 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .90702E-01    .12244        .15409E-07    .33898E-03
   2  Prefactor     .10000E-03    1.4544        .12253E-06** at limit **
   3  Prefactor     .10000E-03    3.3090        .26127E-06** at limit **
   4  norm          3.9562        .85888       -.52637E-08   -.11323E-03
   5  Prefactor     .29305        .46205       -.46687E-06   -.29802E-03
   6  Prefactor     13.153        11.535        .17083E-05    .79064E-05
   7  Prefactor     .10000E-03    .37721       -.10224E-06** at limit **
   8  norm          3.0272        1.1463        .14561E-07   -.28775E-04
   9  norm          1.7810        .52532        .11798E-07   -.19817E-04
  10  Prefactor     7.0035        2.9966        .10072E-06   -.94560E-05
  11  norm          .84635        .18460       -.54522E-09   -.29963E-02
  12  Prefactor     .10002E-03    1.0075        .58691E-06** at limit **
  13  Prefactor     3.0690        1.7972       -.93719E-07   -.61666E-04
  14  Prefactor     .61931        .76566       -.80303E-07   -.10707E-02
  15  Prefactor     .91087        5.0380       -.22672E-06   -.65172E-04
  16  Prefactor     .10000E-03    1.0984        .97844E-07** at limit **
  17  Prefactor     2.9133        1.6241        .13071E-06   -.78207E-04
  18  norm          4.0702        1.4466        .38437E-07   -.50997E-04
  19  norm          .71561        .72662        .25147E-08   -.64191E-04
  20  Prefactor     4.4346        2.6391       -.33226E-08   -.47363E-04
  21  Prefactor     .10002E-03    .11680       -.27474E-07** at limit **
  22  Prefactor     .10000E-03    1.5217        .23123E-06** at limit **
  23  Prefactor     .10000E-03    8.1267       -.82111E-06** at limit **
  24  Prefactor     21.767        10.049       -.73696E-06   -.64636E-04
  25  Prefactor     2.1202        .98606       -.10019E-07   -.24520E-03
  26  Prefactor     .61870        1.9126        .63356E-07   -.18357E-03
  27  norm          .24901        .14899       -.51315E-08    .21037E-03
  28  Prefactor     .65431        .91948        .44308E-07    .22169E-03
  29  norm          1.3604        2.2457        .98394E-06   -.95063E-06
  30  Prefactor     .45506        .50663       -.12539E-07   -.18429E-03
  31  Prefactor     3.5016        2.5398       -.12042E-07   -.68341E-04
  32  Prefactor     .99688        1.0948        .51584E-07    .14826E-04
  33  Prefactor     4.9462        5.1521        .54836E-07   -.53127E-04
  34  norm          2.2300        3.1374        .20082E-06   -.27419E-05
  35  Prefactor     11.527        7.6692       -.36345E-06   -.33476E-04
  36  Prefactor     1.0930        1.6719       -.15031E-07   -.72315E-04
  37  norm          10.669        3.9783       -.71917E-07   -.64967E-04
  38  Prefactor     .10000E-03    .31923        .82744E-07** at limit **
  39  Normalizat    1.0386        .61280E-01   -.43202E-06   -.63692E-03
  40  Prefactor     1.0228        .51727E-01    .13171E-07   -.73619E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0907025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.95617
  Prefactor  = 0.293054
  Prefactor  = 13.1532
  Prefactor  = 0.0001
  norm       = 3.02715
  norm       = 1.78098
  Prefactor  = 7.00352
  norm       = 0.846346
  Prefactor  = 0.000100016
  Prefactor  = 3.06902
  Prefactor  = 0.619312
  Prefactor  = 0.910868
  Prefactor  = 0.0001
  Prefactor  = 2.91332
  norm       = 4.07016
  norm       = 0.715612
  Prefactor  = 4.43462
  Prefactor  = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.7668
  Prefactor  = 2.12023
  Prefactor  = 0.618702
  norm       = 0.249014
  Prefactor  = 0.654306
  norm       = 1.3604
  Prefactor  = 0.455059
  Prefactor  = 3.50161
  Prefactor  = 0.996883
  Prefactor  = 4.94616
  norm       = 2.23
  Prefactor  = 11.5272
  Prefactor  = 1.09296
  norm       = 10.6686
  Prefactor  = 0.0001
  Normalizat = 1.03864
  Prefactor  = 1.02283
 **********
 **   18 **HESSE 
 **********

 FCN=   65800.59     FROM HESSE     STATUS=OK          1031 CALLS     6661 TOTAL
                     EDM=   .64E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .90702E-01    .13211        .10089E-02   -1.5648    
   2  Prefactor     .10000E-03    1.4895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    3.4542        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.9562        .85796        .10644E-03   -1.5310    
   5  Prefactor     .29305        1.1550        .20791E-02   -1.5600    
   6  Prefactor     13.153        11.656        .11045E-03   -1.4982    
   7  Prefactor     .10000E-03    1.3811        .29544E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.0272        1.1375        .15745E-03   -1.5360    
   9  norm          1.7810        .52342        .94957E-04   -1.5441    
  10  Prefactor     7.0035        2.9916        .75795E-03   -1.5179    
  11  norm          .84635        .17678        .47638E-04   -1.5524    
  12  Prefactor     .10002E-03    5.4005        .43826E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0690        1.7801        .23154E-03   -1.5358    
  14  Prefactor     .61931        .71256        .22564E-03   -1.5551    
  15  Prefactor     .91087        4.9822        .51389E-03   -1.5517    
  16  Prefactor     .10000E-03    1.1265        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.9133        1.6235        .11795E-02   -1.5367    
  18  norm          4.0702        1.4430        .17667E-03   -1.5304    
  19  norm          .71561        .73037        .21291E-03   -1.5539    
  20  Prefactor     4.4346        2.6358        .19123E-03   -1.5287    
  21  Prefactor     .10002E-03    .26500        .30096E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    10.486        .59664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.1405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     21.767        10.042        .85850E-04   -1.4775    
  25  Prefactor     2.1202        .95200        .15612E-03   -1.5417    
  26  Prefactor     .61870        7.2240        .54607E-02   -1.5551    
  27  norm          .24901        .12652        .55251E-03   -1.5608    
  28  Prefactor     .65431        .81911        .20283E-03   -1.5546    
  29  norm          1.3604        2.3963        .18720E-02   -1.5475    
  30  Prefactor     .45506        .48404        .17035E-02   -1.5573    
  31  Prefactor     3.5016        2.5163        .21607E-03   -1.5334    
  32  Prefactor     .99688        1.0510        .24973E-03   -1.5508    
  33  Prefactor     4.9462        5.0730        .18083E-03   -1.5263    
  34  norm          2.2300        3.1245        .13765E-02   -1.5409    
  35  Prefactor     11.527        7.6309        .11799E-03   -1.5029    
  36  Prefactor     1.0930        1.5903        .36416E-03   -1.5499    
  37  norm          10.669        3.9716        .12266E-03   -1.5055    
  38  Prefactor     .10000E-03    1.3416        .27785E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  39  Normalizat    1.0386        .67622E-01    .25554E-03   -.91747    
  40  Prefactor     1.0228        .58898E-01    .23878E-03   -.91972    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44045e-07
Minuit parameter uncertainties:
  1  0.132108
  2  1.30765e-06
  3  2.23713e-06
  4  0.857963
  5  1.15505
  6  11.6579
  7  2.38012e-05
  8  1.13746
  9  0.523421
  10  2.99167
  11  0.176777
  12  0.000580855
  13  1.78015
  14  0.712567
  15  4.2609
  16  1.17706e-06
  17  1.62355
  18  1.443
  19  0.730379
  20  2.63587
  21  0.000159206
  22  0.000103766
  23  6.46543e-06
  24  10.0424
  25  0.952006
  26  4.22853
  27  0.12652
  28  0.819127
  29  2.39647
  30  0.484044
  31  2.51635
  32  1.05103
  33  5.07347
  34  3.12475
  35  7.63153
  36  1.59033
  37  3.97172
  38  1.02368e-05
  39  0.067628
  40  0.0589017
Done.

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

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  4.070e+00  1.443e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  2.141e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
733    Prefactor:  1.023e+00  5.890e-02  0.000e+00  1.000e+01 ( 1.000e+00)
734        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
735        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.039e+00  6.763e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.92
Ra Dec: 132.508 48.922
Photon Index (Fixed Index): 2.14 +/- 0.00
Photon Flux (Fixed Index): 1.82e-08 +/- 6.45e-09
Energy Flux (Fixed Index): 8.13e-06 +/- 2.88e-06

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) = 65799.6573611
delta logL = 0.933876096839

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 65799.5599557
delta logL = 1.03128141921

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   65799.56     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      210 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.3261        1.2460        .55487E-02   -.20171E-02
   2  alpha         1.6944        .19261        .44241       -.35376E-03
   3  Normalizat    1.0477        .53668E-01    .40711E-01    .11592E-03
   4  Prefactor     1.0191        .49960E-01    .42236E-01    .89565E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.32613
  alpha      = 1.69442
  Normalizat = 1.04772
  Prefactor  = 1.01906
 **********
 **   18 **HESSE 
 **********

 FCN=   65799.56     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.3261        1.4824        .16939E-03   -1.5343    
   2  alpha         1.6944        .29133        .20191E-01   -.32809    
   3  Normalizat    1.0477        .60489E-01    .25453E-03   -.91449    
   4  Prefactor     1.0191        .56286E-01    .23916E-03   -.92097    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.22823e-10
Minuit parameter uncertainties:
  1  1.48241
  2  0.292074
  3  0.0604926
  4  0.0562897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/504017': 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) = 65799.5599552
delta logL = 1.03128198905

Extracting fit parameters...

4FGL J0850.0+4855
   Spectrum: LogParabola
358         norm:  3.326e+00  1.482e+00  1.000e-04  1.000e+04 ( 1.000e-12)
359        alpha:  1.694e+00  2.921e-01  0.000e+00  5.000e+00 ( 1.000e+00)
360         beta:  5.369e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
361           Eb:  6.550e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
733    Prefactor:  1.019e+00  5.629e-02  0.000e+00  1.000e+01 ( 1.000e+00)
734        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
735        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.048e+00  6.049e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.98
Ra Dec: 132.508 48.922
Photon Index (Free Index): 1.69 +/- 0.29
Photon Flux (Free Index): 1.04e-08 +/- 5.75e-09
Energy Flux (Free Index): 1.18e-05 +/- 6.01e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/504017/cmap_HighResolution_498787201_501379201_4FGL_J0850.0+4855_monthly_bin101.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.82e-08', energy_flux2='1.18e-05', photon_flux_error='6.45e-09', dlogl='1.03e+00', energy_flux='8.13e-06', photon_flux2='1.04e-08', job_status='DONE', time_completed='2021-10-20 06:30:14.434799', photon_index_error2='0.29', photon_index2='1.69', ts='20.92', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='6.01e-06', EG='1.04', time_epoch_completed='1634736614.43', return_code='0', job_id='504017', GAL2='1.02', EG2='1.05', return_code2='0', energy_flux_error='2.88e-06', photon_flux_error2='5.75e-09', ts2='22.98', photon_index='2.14' WHERE bin_id='101' AND source_name='4FGL J0850.0+4855' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Wed Oct 20 06:30:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0221>
Subject: Job 504017: <4FGL_J0850.0+4855_monthly_bin101> in cluster <slac> Done

Job <4FGL_J0850.0+4855_monthly_bin101> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Oct 20 03:10:12 2021
Job was executed on host(s) <bullet0221>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Oct 20 03:24:58 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Oct 20 03:24:58 2021
Terminated at Wed Oct 20 06:30:15 2021
Results reported at Wed Oct 20 06:30:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.0+4855_monthly_bin101 132.508 48.9217 498787201 501379201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.0+4855 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   9402.00 sec.
    Max Memory :                                 690 MB
    Average Memory :                             365.87 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   11117 sec.
    Turnaround time :                            12003 sec.

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

