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


Performing analysis on: 4FGL_J0850.1-1212_daily_bin1025
RA = 132.541, Dec = -12.2121
tmin = 505008001, tmax = 505267201
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='780986', job_status='RUN', time_executed='2021-08-30 12:23:46.840133', time_epoch_executed='1630351426.84' WHERE source_name='4FGL J0850.1-1212' and cadence='daily' and bin_id='1025'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/780986

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/780986/ft1_4FGL_J0850.1-1212_daily_bin1025.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/780986/ft1_4FGL_J0850.1-1212_daily_bin1025.fits outfile=/scratch/kocevski/780986/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin1025.fits ra=132.541 dec=-12.2121 rad=12.0 tmin=505008001.0 tmax=505267201.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 6.14
user 4.24
sys 1.83

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.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/780986/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin1025.fits evtable="EVENTS" outfile="/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.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 2.08
user 0.33
sys 1.73

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits" evtable="EVENTS" scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits sctable="SC_DATA" outfile=/scratch/kocevski/780986/ltcube_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.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/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits
.....................!
real 13.64
user 11.37
sys 2.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits sctable="SC_DATA" expcube=/scratch/kocevski/780986/ltcube_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits outfile=/scratch/kocevski/780986/expmap_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.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/780986/ltcube_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits
.....................!
real 194.67
user 186.37
sys 7.83

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/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits outfile=/scratch/kocevski/780986/cmap_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.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 2.09
user 0.36
sys 1.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits outfile=/scratch/kocevski/780986/cmap_HighResolution_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.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 2.13
user 0.37
sys 1.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits evtable="EVENTS" scfile=/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/780986/Model_4FGL_J0850.1-1212_daily_bin1025.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/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits.....................!
real 92.41
user 88.42
sys 3.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits', '/scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits', expMap='/scratch/kocevski/780986/expmap_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits', expCube='/scratch/kocevski/780986/ltcube_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/780986/Model_4FGL_J0850.1-1212_daily_bin1025.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/780986/ft1_filtered_4FGL_J0850.1-1212_daily_bin1025.fits
Spacecraft file(s): /scratch/kocevski/780986/ft2_4FGL_J0850.1-1212_daily_bin1025.fits
Exposure map: /scratch/kocevski/780986/expmap_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits
Exposure cube: /scratch/kocevski/780986/ltcube_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/780986/Model_4FGL_J0850.1-1212_daily_bin1025.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) = 8447.64172979

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1005       1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.0567       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4991       1.0000         .10000E-03   10000.    
     5 'norm      '    37.795       1.0000         .10000E-03   10000.    
     6 'norm      '    .47991       1.0000         .10000E-03   10000.    
     7 'norm      '    1.8478       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .16453E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    8.6416       1.0000         .10000E-03   10000.    
    10 'norm      '    6.9340       1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.3586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.2989       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.4706       1.0000         .10000E-03   10000.    
    14 'norm      '    81.767       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.915       1.0000         .10000E-03   10000.    
    16 'Prefactor '    12.806       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.9153       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .73468       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .97679       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8447.586     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     1711 TOTAL
                     EDM=   .89E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.5703        .21902E-07** at limit **
   2  norm          1.1010        .96025        .58564E-07    .87982E-04
   3  Prefactor     3.0566        6.6874        .17759E-06   -.21749E-05
   4  Prefactor     2.4993        2.3092        .64292E-07    .22618E-04
   5  norm          37.797        20.612       -.13261E-05   -.34031E-05
   6  norm          .47522        2.6646       -.70127E-08    .32201E-05
   7  norm          1.8470        .55985        .26904E-07   -.14671E-02
   8  Prefactor     .10039E-03    15.198        .10904E-07** at limit **
   9  norm          8.6414        7.4784       -.95410E-06    .36027E-04
  10  norm          6.9337        3.3975        .48134E-06    .93828E-04
  11  Prefactor     6.3590        5.1033        .79905E-06    .67222E-05
  12  Prefactor     3.2965        10.432       -.50385E-05   -.15440E-04
  13  Prefactor     5.4696        6.2622        .67193E-06   -.90060E-05
  14  norm          81.766        13.210        .63796E-06   -.20927E-04
  15  Prefactor     10.910        16.637        .90206E-05   -.14793E-05
  16  Prefactor     12.804        17.911        .40361E-05   -.38246E-05
  17  Prefactor     3.9154        15.970       -.29087E-06   -.32339E-05
  18  Normalizat    .73490        .17501       -.19107E-05    .40776E-04
  19  Prefactor     .97667        .99042E-01    .30938E-06   -.89572E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.10099
  Prefactor  = 3.05656
  Prefactor  = 2.49932
  norm       = 37.7966
  norm       = 0.475217
  norm       = 1.84701
  Prefactor  = 0.000100388
  norm       = 8.64143
  norm       = 6.93366
  Prefactor  = 6.35904
  Prefactor  = 3.2965
  Prefactor  = 5.46957
  norm       = 81.7656
  Prefactor  = 10.9104
  Prefactor  = 12.8037
  Prefactor  = 3.91543
  Normalizat = 0.734902
  Prefactor  = 0.97667
 **********
 **   18 **HESSE 
 **********

 FCN=   8447.586     FROM HESSE     STATUS=OK           290 CALLS     2001 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.6089        .16947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1010        .93406        .80590E-04   -1.5498    
   3  Prefactor     3.0566        6.6437        .23204E-03   -1.5358    
   4  Prefactor     2.4993        2.3187        .13064E-03   -1.5392    
   5  norm          37.797        20.570        .65193E-04   -1.4478    
   6  norm          .47522        5.8732        .28548E-02   -1.5570    
   7  norm          1.8470        4.9776        .15337E-02   -1.5436    
   8  Prefactor     .10039E-03    19.704        .10236       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.6414        7.4636        .13636E-03   -1.5120    
  10  norm          6.9337        3.3888        .10950E-03   -1.5181    
  11  Prefactor     6.3590        5.1134        .15917E-03   -1.5204    
  12  Prefactor     3.2965        10.390        .22291E-03   -1.5345    
  13  Prefactor     5.4696        6.2610        .17179E-03   -1.5240    
  14  norm          81.766        13.217        .44418E-04   -1.3897    
  15  Prefactor     10.910        16.651        .12127E-03   -1.5047    
  16  Prefactor     12.804        17.921        .11194E-03   -1.4992    
  17  Prefactor     3.9154        15.948        .20389E-03   -1.5312    
  18  Normalizat    .73490        .20094        .34110E-03   -1.0253    
  19  Prefactor     .97667        .11508        .17553E-03   -.93511    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01782e-09
Minuit parameter uncertainties:
  1  7.55128e-06
  2  0.934076
  3  6.64532
  4  2.31881
  5  20.5739
  6  3.34134
  7  4.97872
  8  0.00553514
  9  7.46442
  10  3.38893
  11  5.11379
  12  10.3958
  13  6.26177
  14  13.2176
  15  16.6585
  16  17.9282
  17  15.8115
  18  0.201146
  19  0.115109
Done.

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

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  8.641e+00  7.464e+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

GAL_V02
   Spectrum: PowerLaw
539    Prefactor:  9.767e-01  1.151e-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.349e-01  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.00
Ra Dec: 132.541 -12.212
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 3.48e-08 +/- 3.01e-08
Energy Flux (Fixed Index): 1.36e-05 +/- 1.17e-05

TS (Fixed Index): 3.00
Ra Dec: 132.541 -12.212
Photon Flux Upper Limit: 1.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.97e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/780986/likelihoodResults_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.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) = 8447.33789875
delta logL = 0.248351517688

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8447.32881864
delta logL = 0.257431627835

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.4632       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7587       1.0000          .0000       5.0000    
     3 'Normalizat'    .74992       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96996       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.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8447.329     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      211 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 27.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.4626        6.7127       -.19405E-05    .12503E-02
   2  alpha         1.7584        .37720        .96936E-05    .26160E-03
   3  Normalizat    .74996        .16414       -.28079E-06   -.90546E-04
   4  Prefactor     .96994        .96650E-01    .24775E-06   -.14650E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.46263
  alpha      = 1.75838
  Normalizat = 0.749962
  Prefactor  = 0.969936
 **********
 **   18 **HESSE 
 **********

 FCN=   8447.329     FROM HESSE     STATUS=OK            29 CALLS      240 TOTAL
                     EDM=   .52E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.4626        7.5823        .13027E-03   -1.5093    
   2  alpha         1.7584        .54591        .16385E-01   -.30118    
   3  Normalizat    .74996        .18802        .33789E-03   -1.0195    
   4  Prefactor     .96994        .11090        .17603E-03   -.93738    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.15969e-09
Minuit parameter uncertainties:
  1  7.58302
  2  0.550783
  3  0.188183
  4  0.110923
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/780986': 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) = 8447.32881843
delta logL = 0.257431844346

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  9.463e+00  7.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  1.758e+00  5.508e-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:  9.699e-01  1.109e-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.500e-01  1.882e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.53
Ra Dec: 132.541 -12.212
Photon Index (Free Index): 1.76 +/- 0.55
Photon Flux (Free Index): 2.68e-08 +/- 2.46e-08
Energy Flux (Free Index): 2.19e-05 +/- 2.29e-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/780986/cmap_HighResolution_505008001_505267201_4FGL_J0850.1-1212_daily_bin1025.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.97e-05', comment='SUCCESS', photon_flux='3.48e-08', energy_flux2='2.19e-05', photon_flux_error='3.01e-08', dlogl='2.57e-01', energy_flux='1.36e-05', photon_flux2='2.68e-08', job_status='DONE', time_completed='2021-08-30 12:35:05.312402', photon_index_error2='0.55', photon_index2='1.76', ts='3.00', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', photon_flux_upper_limit='1.02e-07', energy_flux_error2='2.29e-05', EG='0.73', time_epoch_completed='1630352105.31', return_code='0', job_id='780986', GAL2='0.97', EG2='0.75', return_code2='0', energy_flux_error='1.17e-05', photon_flux_error2='2.46e-08', ts2='3.53', photon_index='2.20' WHERE bin_id='1025' AND source_name='4FGL J0850.1-1212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:35:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0066>
Subject: Job 780986: <4FGL_J0850.1-1212_daily_bin1025> in cluster <slac> Done

Job <4FGL_J0850.1-1212_daily_bin1025> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 12:21:08 2021
Job was executed on host(s) <bullet0066>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:21:10 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:21:10 2021
Terminated at Mon Aug 30 12:35:06 2021
Results reported at Mon Aug 30 12:35:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.1-1212_daily_bin1025 132.541 -12.2121 505008001 505267201 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 :                                   698.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

