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


Performing analysis on: 4FGL_J0850.1-1212_daily_bin473
RA = 132.541, Dec = -12.2121
tmin = 361929601, tmax = 362188801
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='778054', job_status='RUN', time_executed='2021-08-30 12:13:36.200438', time_epoch_executed='1630350816.2' WHERE source_name='4FGL J0850.1-1212' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/778054

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/778054/ft1_4FGL_J0850.1-1212_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/778054/ft1_4FGL_J0850.1-1212_daily_bin473.fits outfile=/scratch/kocevski/778054/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin473.fits ra=132.541 dec=-12.2121 rad=12.0 tmin=361929601.0 tmax=362188801.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 5.78
user 5.25
sys 0.49

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.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/778054/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.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.72
user 0.35
sys 0.36

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/778054/ltcube_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.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/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits
.....................!
real 12.09
user 11.50
sys 0.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/778054/ltcube_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.fits outfile=/scratch/kocevski/778054/expmap_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.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/778054/ltcube_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.fits
.....................!
real 192.34
user 187.69
sys 4.28

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/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits outfile=/scratch/kocevski/778054/cmap_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.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 0.75
user 0.37
sys 0.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits outfile=/scratch/kocevski/778054/cmap_HighResolution_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.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 0.77
user 0.38
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/778054/ft2_4FGL_J0850.1-1212_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/778054/Model_4FGL_J0850.1-1212_daily_bin473.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/778054/ft1_filtered_4FGL_J0850.1-1212_daily_bin473.fits.....................!
real 73.80
user 72.09
sys 1.47

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    3.6867       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10254E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    5.0912       1.0000         .10000E-03   10000.    
     6 'norm      '    8.9846       1.0000         .10000E-03   10000.    
     7 'norm      '    5.5733       1.0000         .10000E-03   10000.    
     8 'Prefactor '    55.244       1.0000         .10000E-03   10000.    
     9 'norm      '    15.021       1.0000         .10000E-03   10000.    
    10 'norm      '    .35158       1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.3625       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    2.8841       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .16204       1.0000         .10000E-03   10000.    
    16 'Prefactor '    15.018       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.614       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .72356       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0786       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5420E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6535.474     FROM MIGRAD    STATUS=CONVERGED    115 CALLS     1681 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.0007        .28900E-06** at limit **
   2  norm          .10000E-03    1.3895        .88784E-07** at limit **
   3  Prefactor     3.6843        2.2878       -.15454E-07   -.75547E-03
   4  Prefactor     .10000E-03    17.958       -.63696E-06** at limit **
   5  norm          5.0942        5.4598        .97491E-06    .36911E-02
   6  norm          8.9841        4.8996       -.39168E-06   -.21863E-02
   7  norm          5.5715        2.1379        .88385E-08   -.23075E-02
   8  Prefactor     55.234        18.344       -.15324E-05    .37948E-02
   9  norm          15.016        9.3873        .18916E-06   -.60119E-02
  10  norm          .35462        5.9315        .76267E-06    .12554E-03
  11  Prefactor     4.3611        5.2496        .62919E-06    .60192E-03
  12  Prefactor     .10000E-03    3.4908        .60855E-06** at limit **
  13  Prefactor     .10000E-03    6.5107        .61104E-07** at limit **
  14  norm          2.8874        7.5759       -.71838E-06   -.16413E-02
  15  Prefactor     .28930E-03    6737.3       -.31816E-04** at limit **
  16  Prefactor     15.027        13.361        .19676E-05    .92316E-02
  17  Prefactor     14.540        24.603        .28536E-05   -.47754E-02
  18  Normalizat    .72386        .21748       -.10725E-04   -.15890E-03
  19  Prefactor     1.0785        .12671        .39573E-05   -.10077E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.68429
  Prefactor  = 0.0001
  norm       = 5.09418
  norm       = 8.98407
  norm       = 5.57154
  Prefactor  = 55.2343
  norm       = 15.0156
  norm       = 0.35462
  Prefactor  = 4.36111
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.88738
  Prefactor  = 0.000289298
  Prefactor  = 15.0267
  Prefactor  = 14.5402
  Normalizat = 0.723862
  Prefactor  = 1.0785
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.474     FROM HESSE     STATUS=OK           334 CALLS     2015 TOTAL
                     EDM=   .68E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.9764        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    .71035        .24131E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     3.6843        8.6322        .52586E-02   -1.5324    
   4  Prefactor     .10000E-03    3.3180        .47196E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          5.0942        15.336        .44548E-02   -1.5257    
   6  norm          8.9841        5.0742        .33429E-02   -1.5108    
   7  norm          5.5715        5.8258        .42544E-02   -1.5236    
   8  Prefactor     55.234        38.511        .13492E-02   -1.4220    
   9  norm          15.016        9.8738        .25836E-02   -1.4933    
  10  norm          .35462        2.7066        .39268E-01   -1.5589    
  11  Prefactor     4.3611        5.5216        .48211E-02   -1.5290    
  12  Prefactor     .10000E-03    3.4861        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.4523        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          2.8874        7.8584        .59829E-02   -1.5368    
  15  Prefactor     .28930E-03    17.344        .11140       -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     15.027        21.442        .25838E-02   -1.4932    
  17  Prefactor     14.540        40.291        .26193E-02   -1.4945    
  18  Normalizat    .72386        .20800        .79294E-01   -1.0296    
  19  Prefactor     1.0785        .11494        .38464E-01   -.90157    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75791e-07
Minuit parameter uncertainties:
  1  1.26573e-06
  2  1.55622e-07
  3  8.63509
  4  1.77681e-06
  5  15.3475
  6  5.07443
  7  5.82639
  8  38.5287
  9  9.87485
  10  1.95925
  11  5.52225
  12  5.57437e-08
  13  7.8827e-06
  14  7.86123
  15  0.114632
  16  21.453
  17  40.366
  18  0.208224
  19  0.114961
Done.

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

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  1.502e+01  9.875e+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:  1.079e+00  1.150e-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.239e-01  2.082e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.16
Ra Dec: 132.541 -12.212
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 6.05e-08 +/- 3.98e-08
Energy Flux (Fixed Index): 2.36e-05 +/- 1.55e-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) = 6535.39052408
delta logL = 0.0833605427715

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6535.38900017
delta logL = 0.0848844585826

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    14.947       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9595       1.0000          .0000       5.0000    
     3 'Normalizat'    .73691       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0745       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=   6535.389     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      209 TOTAL
                     EDM=   .39E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          14.903        13.443        .25899E-02   -.18032E-04
   2  alpha         1.9558        .65250        .40991       -.23181E-04
   3  Normalizat    .73720        .19057        .78644E-01    .91579E-05
   4  Prefactor     1.0744        .11102        .38649E-01   -.21535E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 14.9032
  alpha      = 1.95581
  Normalizat = 0.737204
  Prefactor  = 1.07441
 **********
 **   18 **HESSE 
 **********

 FCN=   6535.389     FROM HESSE     STATUS=OK            33 CALLS      242 TOTAL
                     EDM=   .38E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          14.903        9.7472        .10360E-03   -1.4936    
   2  alpha         1.9558        .57151        .14894E-01   -.21943    
   3  Normalizat    .73720        .21023        .34819E-03   -1.0244    
   4  Prefactor     1.0744        .12289        .17161E-03   -.90289    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.79908e-12
Minuit parameter uncertainties:
  1  9.74825
  2  0.576869
  3  0.210456
  4  0.122921
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/778054': 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) = 6535.38897444
delta logL = 0.0849101869471

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  1.490e+01  9.748e+00  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  1.956e+00  5.769e-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.074e+00  1.229e-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.372e-01  2.105e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.33
Ra Dec: 132.541 -12.212
Photon Index (Free Index): 1.96 +/- 0.58
Photon Flux (Free Index): 4.84e-08 +/- 4.17e-08
Energy Flux (Free Index): 2.72e-05 +/- 2.08e-05

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/778054/cmap_HighResolution_361929601_362188801_4FGL_J0850.1-1212_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.05e-08', energy_flux2='2.72e-05', photon_flux_error='3.98e-08', dlogl='8.49e-02', energy_flux='2.36e-05', photon_flux2='4.84e-08', job_status='DONE', time_completed='2021-08-30 12:22:34.359395', photon_index_error2='0.58', photon_index2='1.96', ts='5.16', fit_tolerance='1e-08', GAL='1.08', photon_index_error='0.00', energy_flux_error2='2.08e-05', EG='0.72', time_epoch_completed='1630351354.36', return_code='0', job_id='778054', GAL2='1.07', EG2='0.74', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='4.17e-08', ts2='5.33', photon_index='2.20' WHERE bin_id='473' AND source_name='4FGL J0850.1-1212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:22:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 778054: <4FGL_J0850.1-1212_daily_bin473> in cluster <slac> Done

Job <4FGL_J0850.1-1212_daily_bin473> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 30 12:10:49 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:10:51 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:10:51 2021
Terminated at Mon Aug 30 12:22:35 2021
Results reported at Mon Aug 30 12:22:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.1-1212_daily_bin473 132.541 -12.2121 361929601 362188801 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 :                                   538.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

