/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 178 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 = 7472
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0850.1-1212_daily_bin208
RA = 132.541, Dec = -12.2121
tmin = 293241601, tmax = 293500801
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='776553', job_status='RUN', time_executed='2021-08-30 12:09:12.524969', time_epoch_executed='1630350552.52' WHERE source_name='4FGL J0850.1-1212' and cadence='daily' and bin_id='208'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/776553

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/776553/ft1_4FGL_J0850.1-1212_daily_bin208.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/776553/ft1_4FGL_J0850.1-1212_daily_bin208.fits outfile=/scratch/kocevski/776553/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin208.fits ra=132.541 dec=-12.2121 rad=12.0 tmin=293241601.0 tmax=293500801.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 4.89
user 3.39
sys 1.47

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.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/776553/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin208.fits evtable="EVENTS" outfile="/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.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 1.78
user 0.34
sys 1.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits" evtable="EVENTS" scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits sctable="SC_DATA" outfile=/scratch/kocevski/776553/ltcube_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.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/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits
.....................!
real 13.51
user 11.71
sys 1.77

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits sctable="SC_DATA" expcube=/scratch/kocevski/776553/ltcube_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits outfile=/scratch/kocevski/776553/expmap_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.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/776553/ltcube_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits
.....................!
real 193.15
user 186.70
sys 5.90

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

Setting source of interest to:
4FGL J0850.1-1212 @ 132.541 -12.2121

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits outfile=/scratch/kocevski/776553/cmap_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.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.541 yref=-12.2121 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 1.78
user 0.37
sys 1.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits outfile=/scratch/kocevski/776553/cmap_HighResolution_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.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.541 yref=-12.2121 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 1.80
user 0.39
sys 1.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits evtable="EVENTS" scfile=/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/776553/Model_4FGL_J0850.1-1212_daily_bin208.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/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits.....................!
real 106.10
user 102.82
sys 2.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits', '/scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits', expMap='/scratch/kocevski/776553/expmap_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits', expCube='/scratch/kocevski/776553/ltcube_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/776553/Model_4FGL_J0850.1-1212_daily_bin208.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0850.1-1212'

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  8.549e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  2.202e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
302         beta:  8.771e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
303           Eb:  6.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/776553/ft1_filtered_4FGL_J0850.1-1212_daily_bin208.fits
Spacecraft file(s): /scratch/kocevski/776553/ft2_4FGL_J0850.1-1212_daily_bin208.fits
Exposure map: /scratch/kocevski/776553/expmap_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits
Exposure cube: /scratch/kocevski/776553/ltcube_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/776553/Model_4FGL_J0850.1-1212_daily_bin208.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) = 9864.67994618

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.773       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5996       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .53647       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.6303       1.0000         .10000E-03   10000.    
     5 'norm      '    18.813       1.0000         .10000E-03   10000.    
     6 'norm      '    5.1101       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5534       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    85.526       1.0000         .10000E-03   10000.    
    10 'norm      '    4.7787       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .41067       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.5113       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .39083       1.0000         .10000E-03   10000.    
    14 'norm      '    1.3817       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.471       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .66878       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0641       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9863.677     FROM MIGRAD    STATUS=CONVERGED    385 CALLS     1635 TOTAL
                     EDM=   .58E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.772        7.7532         .0000        .97697E-03
   2  norm          4.5995        1.3064         .0000       -.26187E-03
   3  Prefactor     .52957        5.6155         .0000        .21108E-03
   4  Prefactor     9.6301        4.7590         .0000        .62445E-03
   5  norm          18.811        16.857         .0000        .12771E-03
   6  norm          5.1101        3.6029         .0000        .59708E-03
   7  norm          5.5530        5.6095         .0000       -.69556E-03
   8  Prefactor     .10000E-03    10.680         .0000    ** at limit **
   9  norm          85.526        13.941         .0000        .50982E-04
  10  norm          4.7784        2.8357         .0000        .45011E-03
  11  Prefactor     .40330        1.7131         .0000        .44480E-03
  12  Prefactor     7.5112        7.6380         .0000       -.14816E-03
  13  Prefactor     .38934        5.0633         .0000        .75308E-01
  14  norm          1.3817        4.2337         .0000        .20585E-02
  15  Prefactor     .10000E-03    3.4101         .0000    ** at limit **
  16  Prefactor     15.471        15.325         .0000        .20014E-03
  17  Prefactor     .10000E-03    25.777         .0000    ** at limit **
  18  Normalizat    .66862        .17125         .0000       -.62367E-04
  19  Prefactor     1.0642        .10020         .0000       -.37187E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.7724
  norm       = 4.59949
  Prefactor  = 0.529566
  Prefactor  = 9.6301
  norm       = 18.8108
  norm       = 5.11006
  norm       = 5.55304
  Prefactor  = 0.0001
  norm       = 85.5257
  norm       = 4.77838
  Prefactor  = 0.403303
  Prefactor  = 7.51117
  Prefactor  = 0.389341
  norm       = 1.3817
  Prefactor  = 0.0001
  Prefactor  = 15.4712
  Prefactor  = 0.000100004
  Normalizat = 0.66862
  Prefactor  = 1.06416
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.677     FROM HESSE     STATUS=OK           276 CALLS     1911 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.772        7.6897        .11208E-03   -1.4993    
   2  norm          4.5995        1.3007        .57771E-04   -1.5279    
   3  Prefactor     .52957        23.236        .41677E-02   -1.5562    
   4  Prefactor     9.6301        4.7528        .12913E-03   -1.5087    
   5  norm          18.811        16.839        .92341E-04   -1.4840    
   6  norm          5.1101        3.6047        .15265E-03   -1.5256    
   7  norm          5.5530        5.5892        .17049E-03   -1.5237    
   8  Prefactor     .10000E-03    10.714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          85.526        13.933        .43439E-04   -1.3856    
  10  norm          4.7784        2.8308        .12289E-03   -1.5271    
  11  Prefactor     .40330        7.7479        .24381E-02   -1.5581    
  12  Prefactor     7.5112        7.6328        .14633E-03   -1.5160    
  13  Prefactor     .38934        5.1701        .21633E-02   -1.5583    
  14  norm          1.3817        4.2099        .34375E-03   -1.5473    
  15  Prefactor     .10000E-03    3.4128        .17911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.471        15.326        .10183E-03   -1.4921    
  17  Prefactor     .10000E-03    25.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .66862        .18948        .37532E-03   -1.0515    
  19  Prefactor     1.0642        .11339        .17960E-03   -.90620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52624e-09
Minuit parameter uncertainties:
  1  7.69028
  2  1.30069
  3  7.01793
  4  4.75301
  5  16.8436
  6  3.60481
  7  5.58974
  8  1.08365e-05
  9  13.9336
  10  2.83085
  11  3.53548
  12  7.63379
  13  2.8375
  14  4.21077
  15  3.76631e-05
  16  15.3295
  17  0.000619479
  18  0.18967
  19  0.113412
Done.

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

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  8.553e+01  1.393e+01  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  2.202e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
302         beta:  8.771e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
303           Eb:  6.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.064e+00  1.134e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  6.686e-01  1.897e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 141.32
Ra Dec: 132.541 -12.212
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.45e-07 +/- 5.62e-08
Energy Flux (Fixed Index): 1.35e-04 +/- 2.19e-05

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) = 9863.12613553
delta logL = 0.551246689938

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9863.0654775
delta logL = 0.611904728456

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9863.065     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      211 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          89.973        16.511        .10591E-02    .68701E-06
   2  alpha         2.0284        .16874        .13239        .24714E-04
   3  Normalizat    .70637        .16817        .82748E-01    .49782E-04
   4  Prefactor     1.0512        .98192E-01    .39849E-01    .24114E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 89.9733
  alpha      = 2.02837
  Normalizat = 0.706372
  Prefactor  = 1.05122
 **********
 **   18 **HESSE 
 **********

 FCN=   9863.065     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .51E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          89.973        14.888        .42363E-04   -1.3808    
   2  alpha         2.0284        .15464        .57460E-03   -.18979    
   3  Normalizat    .70637        .18909        .36645E-03   -1.0364    
   4  Prefactor     1.0512        .11063        .18066E-03   -.91041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.12712e-14
Minuit parameter uncertainties:
  1  14.8882
  2  0.154739
  3  0.189262
  4  0.110657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/776553': 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) = 9863.06547544
delta logL = 0.611906788281

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  8.997e+01  1.489e+01  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  2.028e+00  1.547e-01  0.000e+00  5.000e+00 ( 1.000e+00)
302         beta:  8.771e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
303           Eb:  6.211e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  1.051e+00  1.107e-01  0.000e+00  1.000e+01 ( 1.000e+00)
540        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
541        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
538   Normalization:  7.064e-01  1.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 142.52
Ra Dec: 132.541 -12.212
Photon Index (Free Index): 2.03 +/- 0.15
Photon Flux (Free Index): 3.10e-07 +/- 6.01e-08
Energy Flux (Free Index): 1.55e-04 +/- 3.32e-05

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/776553/cmap_HighResolution_293241601_293500801_4FGL_J0850.1-1212_daily_bin208.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.45e-07', energy_flux2='1.55e-04', photon_flux_error='5.62e-08', dlogl='6.12e-01', energy_flux='1.35e-04', photon_flux2='3.10e-07', job_status='DONE', time_completed='2021-08-30 12:20:09.874592', photon_index_error2='0.15', photon_index2='2.03', ts='141.32', fit_tolerance='1e-08', GAL='1.06', photon_index_error='0.00', energy_flux_error2='3.32e-05', EG='0.67', time_epoch_completed='1630351209.87', return_code='0', job_id='776553', GAL2='1.05', EG2='0.71', return_code2='0', energy_flux_error='2.19e-05', photon_flux_error2='6.01e-08', ts2='142.52', photon_index='2.20' WHERE bin_id='208' AND source_name='4FGL J0850.1-1212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:20:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 776553: <4FGL_J0850.1-1212_daily_bin208> in cluster <slac> Done

Job <4FGL_J0850.1-1212_daily_bin208> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Mon Aug 30 12:05:44 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:05:45 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:05:45 2021
Terminated at Mon Aug 30 12:20:10 2021
Results reported at Mon Aug 30 12:20:10 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.1-1212_daily_bin208 132.541 -12.2121 293241601 293500801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0850.1-1212 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   673.47 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             288.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   865 sec.
    Turnaround time :                            866 sec.

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

