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


Performing analysis on: 4FGL_J0850.1-1212_daily_bin1418
RA = 132.541, Dec = -12.2121
tmin = 606873601, tmax = 607132801
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='783136', job_status='RUN', time_executed='2021-08-30 12:31:47.856876', time_epoch_executed='1630351907.86' WHERE source_name='4FGL J0850.1-1212' and cadence='daily' and bin_id='1418'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/783136

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/783136/ft1_4FGL_J0850.1-1212_daily_bin1418.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/783136/ft1_4FGL_J0850.1-1212_daily_bin1418.fits outfile=/scratch/kocevski/783136/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin1418.fits ra=132.541 dec=-12.2121 rad=12.0 tmin=606873601.0 tmax=607132801.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.54
user 5.11
sys 0.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits" evtable="EVENTS" scfile=/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits sctable="SC_DATA" outfile=/scratch/kocevski/783136/ltcube_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.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/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits
.....................!
real 12.72
user 12.02
sys 0.58

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits sctable="SC_DATA" expcube=/scratch/kocevski/783136/ltcube_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.fits outfile=/scratch/kocevski/783136/expmap_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.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/783136/ltcube_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.fits
.....................!
real 190.37
user 185.49
sys 4.35

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/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits scfile=/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits outfile=/scratch/kocevski/783136/cmap_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.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.81
user 0.35
sys 0.40

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits scfile=/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits outfile=/scratch/kocevski/783136/cmap_HighResolution_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.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.81
user 0.36
sys 0.41

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits evtable="EVENTS" scfile=/scratch/kocevski/783136/ft2_4FGL_J0850.1-1212_daily_bin1418.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/783136/Model_4FGL_J0850.1-1212_daily_bin1418.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/783136/ft1_filtered_4FGL_J0850.1-1212_daily_bin1418.fits.....................!
real 71.91
user 68.27
sys 1.60

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2780       1.0000         .10000E-03   10000.    
     2 'norm      '    5.3416       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16977E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6709       1.0000         .10000E-03   10000.    
     6 'norm      '    5.9965       1.0000         .10000E-03   10000.    
     7 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    14.452       1.0000         .10000E-03   10000.    
    10 'norm      '    2.7839       1.0000         .10000E-03   10000.    
    11 'Prefactor '    13.484       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .49359       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.345       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0521       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0358       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=   5484.422     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1858 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2754        11.630       -.14747E-06    .23439E-03
   2  norm          5.3417        2.0550        .25496E-07    .20047E-03
   3  Prefactor     .10000E-03    7.0565        .28109E-06** at limit **
   4  Prefactor     .10003E-03    5.9225       -.27381E-05** at limit **
   5  norm          4.6697        17.199       -.78174E-06   -.13594E-04
   6  norm          5.9963        5.2595        .53294E-06   -.10445E-03
   7  norm          .10000E-03    14.600        .30829E-05** at limit **
   8  Prefactor     .10000E-03    30.005        .14508E-05** at limit **
   9  norm          14.450        10.364       -.11618E-06    .44970E-04
  10  norm          2.7837        3.2013       -.15445E-06   -.14384E-03
  11  Prefactor     13.484        9.5232       -.42366E-06   -.76083E-04
  12  Prefactor     .10000E-03    7.8513        .17471E-06** at limit **
  13  Prefactor     .10000E-03    4.4192       -.11619E-05** at limit **
  14  norm          .44918        7.3732       -.22244E-05    .29583E-04
  15  Prefactor     .10000E-03    31.278       -.35887E-05** at limit **
  16  Prefactor     23.327        43.962       -.29852E-04    .13259E-04
  17  Prefactor     .10000E-03    23.006        .53194E-05** at limit **
  18  Normalizat    1.0524        .25717        .52004E-05    .20248E-03
  19  Prefactor     1.0357        .14048       -.10523E-06    .62742E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.27544
  norm       = 5.34166
  Prefactor  = 0.0001
  Prefactor  = 0.000100034
  norm       = 4.66968
  norm       = 5.99633
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 14.4504
  norm       = 2.78366
  Prefactor  = 13.4844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.449181
  Prefactor  = 0.0001
  Prefactor  = 23.3272
  Prefactor  = 0.0001
  Normalizat = 1.05244
  Prefactor  = 1.03566
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.422     FROM HESSE     STATUS=OK           270 CALLS     2128 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2754        11.416        .14868E-03   -1.5168    
   2  norm          5.3417        2.0535        .62922E-04   -1.5246    
   3  Prefactor     .10000E-03    7.0714        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10003E-03    16.907        .33543E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6697        17.187        .18621E-03   -1.5276    
   6  norm          5.9963        5.2561        .15387E-03   -1.5218    
   7  norm          .10000E-03    14.973        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          14.450        10.363        .10536E-03   -1.4948    
  10  norm          2.7837        3.1923        .13670E-03   -1.5374    
  11  Prefactor     13.484        9.5531        .10908E-03   -1.4973    
  12  Prefactor     .10000E-03    7.8737        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    4.4457        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .44918        30.625        .38352E-02   -1.5574    
  15  Prefactor     .10000E-03    31.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.327        44.127        .82904E-04   -1.4742    
  17  Prefactor     .10000E-03    23.025        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0524        .29551        .35092E-03   -.91294    
  19  Prefactor     1.0357        .16222        .19338E-03   -.91550    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.61167e-09
Minuit parameter uncertainties:
  1  11.4193
  2  2.05351
  3  5.00026e-06
  4  0.00152517
  5  17.2056
  6  5.25653
  7  0.000184871
  8  8.19157e-05
  9  10.3641
  10  3.19245
  11  9.55414
  12  8.78873e-06
  13  9.10464e-07
  14  7.42099
  15  5.03653e-05
  16  44.189
  17  2.22975e-05
  18  0.295976
  19  0.162301
Done.

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

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  1.445e+01  1.036e+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.036e+00  1.623e-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:  1.052e+00  2.960e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.82
Ra Dec: 132.541 -12.212
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 5.83e-08 +/- 4.18e-08
Energy Flux (Fixed Index): 2.27e-05 +/- 1.63e-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) = 5484.1820727
delta logL = 0.240068871992

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5484.15744467
delta logL = 0.264696903822

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.035       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6966       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0769       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0299       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=   5484.157     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      211 TOTAL
                     EDM=   .89E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.027        8.9286        .28868E-02    .24771E-04
   2  alpha         1.6964        .49034        .39346       -.30004E-04
   3  Normalizat    1.0768        .24823        .78489E-01   -.78325E-05
   4  Prefactor     1.0299        .13613        .41265E-01   -.16382E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 12.0273
  alpha      = 1.69641
  Normalizat = 1.07684
  Prefactor  = 1.02992
 **********
 **   18 **HESSE 
 **********

 FCN=   5484.157     FROM HESSE     STATUS=OK            31 CALLS      242 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.027        10.662        .11547E-03   -1.5014    
   2  alpha         1.6964        .67275        .15022E-01   -.32725    
   3  Normalizat    1.0768        .28641        .34743E-03   -.90499    
   4  Prefactor     1.0299        .15722        .19387E-03   -.91739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31498e-11
Minuit parameter uncertainties:
  1  10.6633
  2  0.682146
  3  0.286823
  4  0.157294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/783136': 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) = 5484.15744416
delta logL = 0.264697420906

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  1.203e+01  1.066e+01  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  1.696e+00  6.821e-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.030e+00  1.573e-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:  1.077e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.34
Ra Dec: 132.541 -12.212
Photon Index (Free Index): 1.70 +/- 0.68
Photon Flux (Free Index): 3.29e-08 +/- 3.69e-08
Energy Flux (Free Index): 3.08e-05 +/- 3.06e-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/783136/cmap_HighResolution_606873601_607132801_4FGL_J0850.1-1212_daily_bin1418.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.83e-08', energy_flux2='3.08e-05', photon_flux_error='4.18e-08', dlogl='2.65e-01', energy_flux='2.27e-05', photon_flux2='3.29e-08', job_status='DONE', time_completed='2021-08-30 12:40:25.555712', photon_index_error2='0.68', photon_index2='1.70', ts='5.82', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='1.05', time_epoch_completed='1630352425.56', return_code='0', job_id='783136', GAL2='1.03', EG2='1.08', return_code2='0', energy_flux_error='1.63e-05', photon_flux_error2='3.69e-08', ts2='6.34', photon_index='2.20' WHERE bin_id='1418' AND source_name='4FGL J0850.1-1212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 12:40:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 783136: <4FGL_J0850.1-1212_daily_bin1418> in cluster <slac> Done

Job <4FGL_J0850.1-1212_daily_bin1418> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Mon Aug 30 12:30:27 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 12:30:28 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:30:28 2021
Terminated at Mon Aug 30 12:40:26 2021
Results reported at Mon Aug 30 12:40:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.1-1212_daily_bin1418 132.541 -12.2121 606873601 607132801 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 :                                   514.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             271.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   597 sec.
    Turnaround time :                            599 sec.

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

