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


Performing analysis on: 4FGL_J0850.1-1212_daily_bin1598
RA = 132.541, Dec = -12.2121
tmin = 653529601, tmax = 653788801
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='723921', job_status='RUN', time_executed='2021-09-20 00:21:25.449365', time_epoch_executed='1632122485.45' WHERE source_name='4FGL J0850.1-1212' and cadence='daily' and bin_id='1598'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/723921

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

Retrieving the FT1 file...

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

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

Retrieving 45 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/723921/ft1_4FGL_J0850.1-1212_daily_bin1598.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/723921/ft1_4FGL_J0850.1-1212_daily_bin1598.fits outfile=/scratch/kocevski/723921/ft1_filteredMKT_4FGL_J0850.1-1212_daily_bin1598.fits ra=132.541 dec=-12.2121 rad=12.0 tmin=653529601.0 tmax=653788801.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.08
user 4.82
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits" evtable="EVENTS" scfile=/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits sctable="SC_DATA" outfile=/scratch/kocevski/723921/ltcube_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.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/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits
.....................!
real 14.76
user 14.35
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits sctable="SC_DATA" expcube=/scratch/kocevski/723921/ltcube_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.fits outfile=/scratch/kocevski/723921/expmap_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.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/723921/ltcube_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.fits
.....................!
real 190.47
user 184.84
sys 5.27

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/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits scfile=/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits outfile=/scratch/kocevski/723921/cmap_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits scfile=/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits outfile=/scratch/kocevski/723921/cmap_HighResolution_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.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.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits evtable="EVENTS" scfile=/scratch/kocevski/723921/ft2_4FGL_J0850.1-1212_daily_bin1598.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/723921/Model_4FGL_J0850.1-1212_daily_bin1598.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/723921/ft1_filtered_4FGL_J0850.1-1212_daily_bin1598.fits.....................!
real 65.41
user 64.05
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .40359       1.0000         .10000E-03   10000.    
     2 'norm      '    4.8316       1.0000         .10000E-03   10000.    
     3 'Prefactor '    22.585       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6147       1.0000         .10000E-03   10000.    
     5 'norm      '    .27608E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    2.0556       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    28.874       1.0000         .10000E-03   10000.    
    10 'norm      '    .10109E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.2437       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .34319E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10103E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    46.066       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .11025E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    45.957       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0527       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0898       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5591.189     FROM MIGRAD    STATUS=FAILED       748 CALLS     2554 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34083        62.353        .41131E-02    .12194E-02
   2  norm          4.8323        1.8249        .59342E-04    .21649E-04
   3  Prefactor     22.593        15.254        .84284E-04   -.53684E-04
   4  Prefactor     1.6169        4.0607        .23194E-03   -.26616E-04
   5  norm          .10001E-03    34.684        .10868    ** at limit **
   6  norm          .10000E-03    5.1393        .16385E-02** at limit **
   7  norm          2.0605        11.290        .28828E-03   -.24175E-04
   8  Prefactor     .10000E-03    22.481        .18142E-02** at limit **
   9  norm          28.877        15.811        .74559E-04   -.57637E-04
  10  norm          .10000E-03    2.8234        .12176E-02** at limit **
  11  Prefactor     5.2407        8.1707        .17553E-03    .18135E-05
  12  Prefactor     .10033E-03    27.107        .81891E-01** at limit **
  13  Prefactor     .10000E-03    2.4834        .11504E-02** at limit **
  14  norm          .10000E-03    11.116        .36285E-03** at limit **
  15  Prefactor     46.061        28.790        .59074E-04    .30214E-04
  16  Prefactor     .10000E-03    14.481        .18142E-02** at limit **
  17  Prefactor     45.972        45.127        .29572E-03   -.10457E-04
  18  Normalizat    1.0527        .29091        .34967E-03   -.43567E-04
  19  Prefactor     1.0898        .16416        .19584E-03   -.10254E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5591.189     FROM SIMPLEX   STATUS=PROGRESS     770 CALLS     3324 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34086        62.353        .45879E-06   -1.5591    
   2  norm          4.8323        1.8249        .48925E-07   -1.5268    
   3  Prefactor     22.593        15.254        .54278E-07   -1.4757    
   4  Prefactor     1.6169        4.0607        .51349E-07   -1.5454    
   5  norm          .10001E-03    34.684        .17397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1393        .33381E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0605        11.290        .48890E-07   -1.5421    
   8  Prefactor     .10000E-03    22.481        .71347E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.877        15.811        .38956E-07   -1.4633    
  10  norm          .10000E-03    2.8234        .21335E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2407        8.1707        .41442E-07   -1.5250    
  12  Prefactor     .10033E-03    27.107        .85881E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4834        .22193E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.116        .34943E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.061        28.790        .38153E-07   -1.4350    
  16  Prefactor     .10000E-03    14.481        .13711E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.972        45.127        .38133E-07   -1.4351    
  18  Normalizat    1.0527        .29091        .24211E-07   -.91287    
  19  Prefactor     1.0898        .16416        .23856E-07   -.89793    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5591.189     FROM MIGRAD    STATUS=CONVERGED    273 CALLS     3597 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .34086        62.369        .82261E-03    .49098E-04
   2  norm          4.8323        1.8249        .23737E-05   -.38316E-05
   3  Prefactor     22.593        15.159        .33714E-05   -.60698E-05
   4  Prefactor     1.6169        4.0565        .92775E-05   -.24508E-06
   5  norm          .10001E-03    32.878        .11255    ** at limit **
   6  norm          .10000E-03    5.1425        .32770E-03** at limit **
   7  norm          2.0606        11.279        .11531E-04    .51267E-06
   8  Prefactor     .10000E-03    22.483        .36285E-03** at limit **
   9  norm          28.877        15.801        .29824E-05    .16773E-04
  10  norm          .10000E-03    2.8239        .24352E-03** at limit **
  11  Prefactor     5.2407        8.1684        .70214E-05    .22668E-05
  12  Prefactor     .10033E-03    23.124        .90058E-01** at limit **
  13  Prefactor     .10000E-03    2.4834        .23008E-03** at limit **
  14  norm          .10000E-03    11.117        .72569E-04** at limit **
  15  Prefactor     46.061        28.797        .23630E-05    .96224E-06
  16  Prefactor     .10000E-03    14.481        .36285E-03** at limit **
  17  Prefactor     45.972        45.126        .11829E-04    .38444E-06
  18  Normalizat    1.0527        .29110        .13987E-04    .76405E-05
  19  Prefactor     1.0898        .16410        .39169E-04    .83011E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.340862
  norm       = 4.83235
  Prefactor  = 22.5931
  Prefactor  = 1.61687
  norm       = 0.000100007
  norm       = 0.0001
  norm       = 2.06055
  Prefactor  = 0.0001
  norm       = 28.8772
  norm       = 0.0001
  Prefactor  = 5.24073
  Prefactor  = 0.000100325
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 46.0611
  Prefactor  = 0.0001
  Prefactor  = 45.9721
  Normalizat = 1.05265
  Prefactor  = 1.0898
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.189     FROM HESSE     STATUS=OK           270 CALLS     3867 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .34086        62.117        .16452E-03   -1.5591    
   2  norm          4.8323        1.8252        .47473E-06   -1.5268    
   3  Prefactor     22.593        15.148        .67427E-06   -1.4757    
   4  Prefactor     1.6169        4.0569        .18555E-05   -1.5454    
   5  norm          .10001E-03    33.357        .11147       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.1427        .65541E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          2.0606        11.280        .11531E-04   -1.5421    
   8  Prefactor     .10000E-03    22.483        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          28.877        15.815        .59647E-06   -1.4633    
  10  norm          .10000E-03    2.8239        .48704E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.2407        8.1689        .14043E-05   -1.5250    
  12  Prefactor     .10033E-03    24.709        .86532E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4834        .46016E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    11.117        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     46.061        28.911        .47259E-06   -1.4350    
  16  Prefactor     .10000E-03    14.481        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     45.972        45.141        .23658E-05   -1.4351    
  18  Normalizat    1.0527        .29124        .27974E-05   -.91287    
  19  Prefactor     1.0898        .16407        .78338E-05   -.89793    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26262e-12
Minuit parameter uncertainties:
  1  9.21124
  2  1.82523
  3  15.1509
  4  4.05761
  5  0.000963776
  6  2.15121e-07
  7  9.64486
  8  2.63082e-07
  9  15.8173
  10  4.00482e-08
  11  8.17066
  12  0.0056703
  13  7.46424e-10
  14  5.39311e-09
  15  28.9194
  16  2.68609e-08
  17  45.1747
  18  0.291688
  19  0.164146
Done.

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

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  2.888e+01  1.582e+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.090e+00  1.641e-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.053e+00  2.917e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.86
Ra Dec: 132.541 -12.212
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 1.16e-07 +/- 6.37e-08
Energy Flux (Fixed Index): 4.54e-05 +/- 2.49e-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) = 5590.38774622
delta logL = 0.801732143384

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5590.38065439
delta logL = 0.808823972925

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.118       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0749       1.0000          .0000       5.0000    
     3 'Normalizat'    .91168       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1411       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=   5590.381     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      262 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.098        132.80        .22325E-02    .13292E-02
   2  alpha         3.0741        4.0368        .25181        .98223E-04
   3  Normalizat    .91089        .16246        .84124E-01    .82779E-04
   4  Prefactor     1.1419        .69777E-01    .36199E-01    .60409E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 20.098
  alpha      = 3.07413
  Normalizat = 0.910885
  Prefactor  = 1.14195
 **********
 **   18 **HESSE 
 **********

 FCN=   5590.381     FROM HESSE     STATUS=OK            29 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.098        18.534        .89298E-04   -1.4811    
   2  alpha         3.0741        .85319        .10316E-01    .23172    
   3  Normalizat    .91089        .30771        .37247E-03   -.96079    
   4  Prefactor     1.1419        .16709        .19184E-03   -.88137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45031e-09
Minuit parameter uncertainties:
  1  18.5395
  2  0.871717
  3  0.308308
  4  0.167163
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/723921': 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) = 5590.38062775
delta logL = 0.808850617676

Extracting fit parameters...

4FGL J0850.1-1212
   Spectrum: LogParabola
300         norm:  2.010e+01  1.854e+01  1.000e-04  1.000e+04 ( 1.000e-12)
301        alpha:  3.074e+00  8.717e-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.142e+00  1.672e-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:  9.109e-01  3.083e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.83
Ra Dec: 132.541 -12.212
Photon Index (Free Index): 3.07 +/- 0.87
Photon Flux (Free Index): 2.23e-07 +/- 1.23e-07
Energy Flux (Free Index): 4.47e-05 +/- 1.98e-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/723921/cmap_HighResolution_653529601_653788801_4FGL_J0850.1-1212_daily_bin1598.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.16e-07', energy_flux2='4.47e-05', photon_flux_error='6.37e-08', dlogl='8.09e-01', energy_flux='4.54e-05', photon_flux2='2.23e-07', job_status='DONE', time_completed='2021-09-20 00:31:24.319796', photon_index_error2='0.87', photon_index2='3.07', ts='6.86', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.05', time_epoch_completed='1632123084.32', return_code='0', job_id='723921', GAL2='1.14', EG2='0.91', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='1.23e-07', ts2='8.83', photon_index='2.20' WHERE bin_id='1598' AND source_name='4FGL J0850.1-1212' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Sep 20 00:31:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0089>
Subject: Job 723921: <4FGL_J0850.1-1212_daily_bin1598> in cluster <slac> Done

Job <4FGL_J0850.1-1212_daily_bin1598> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Mon Sep 20 00:20:19 2021
Job was executed on host(s) <bullet0089>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Sep 20 00:20:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Sep 20 00:20:21 2021
Terminated at Mon Sep 20 00:31:25 2021
Results reported at Mon Sep 20 00:31:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0850.1-1212_daily_bin1598 132.541 -12.2121 653529601 653788801 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 :                                   601.10 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             312.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   663 sec.
    Turnaround time :                            666 sec.

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

