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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin625
RA = 162.546, Dec = 4.5377
tmin = 401328001, tmax = 401587201
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='236493', job_status='RUN', time_executed='2021-09-02 17:46:26.371344', time_epoch_executed='1630629986.37' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236493

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236493/ft1_4FGL_J1050.1+0432_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236493/ft1_4FGL_J1050.1+0432_daily_bin625.fits outfile=/scratch/kocevski/236493/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin625.fits ra=162.546 dec=4.5377 rad=12.0 tmin=401328001.0 tmax=401587201.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 3.44
user 3.17
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.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/236493/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin625.fits evtable="EVENTS" outfile="/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.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.56
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/236493/ltcube_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.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/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits
.....................!
real 14.66
user 14.27
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/236493/ltcube_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits outfile=/scratch/kocevski/236493/expmap_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.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/236493/ltcube_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits
.....................!
real 192.65
user 186.38
sys 5.41

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

Setting source of interest to:
4FGL J1050.1+0432 @ 162.546 4.5377

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits outfile=/scratch/kocevski/236493/cmap_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.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=162.546 yref=4.5377 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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits outfile=/scratch/kocevski/236493/cmap_HighResolution_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.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=162.546 yref=4.5377 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.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/236493/Model_4FGL_J1050.1+0432_daily_bin625.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/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits.....................!
real 51.18
user 49.63
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits', '/scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits', expMap='/scratch/kocevski/236493/expmap_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits', expCube='/scratch/kocevski/236493/ltcube_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236493/Model_4FGL_J1050.1+0432_daily_bin625.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1050.1+0432'

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.184e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/236493/ft1_filtered_4FGL_J1050.1+0432_daily_bin625.fits
Spacecraft file(s): /scratch/kocevski/236493/ft2_4FGL_J1050.1+0432_daily_bin625.fits
Exposure map: /scratch/kocevski/236493/expmap_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits
Exposure cube: /scratch/kocevski/236493/ltcube_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236493/Model_4FGL_J1050.1+0432_daily_bin625.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) = 4865.50796663

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.6487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.397       1.0000         .10000E-03   10000.    
     3 'norm      '    5.3746       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10083E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .45872       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.4393       1.0000         .10000E-03   10000.    
    13 'norm      '    .37298       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .82588       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.4808       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .65292       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4865.507     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2177 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.6492        7.2074        .23675E-06    .67369E-04
   2  Prefactor     32.378        66.476       -.30250E-04   -.54697E-05
   3  norm          5.3699        13.861       -.19719E-05   -.51138E-04
   4  Prefactor     .10000E-03    3.2976        .12030E-05** at limit **
   5  Prefactor     .10000E-03    24.917       -.66133E-05** at limit **
   6  Prefactor     .10000E-03    17.348        .11921E-04** at limit **
   7  Prefactor     .10000E-03    12.905       -.79552E-05** at limit **
   8  norm          .45904        1.6001        .11251E-06   -.10398E-02
   9  Prefactor     .10000E-03    9.1421        .17592E-05** at limit **
  10  Prefactor     .10000E-03    1.8353       -.10384E-06** at limit **
  11  Prefactor     12.054        7.0253       -.17623E-06   -.16740E-04
  12  Prefactor     4.4398        5.6102       -.33081E-06   -.16120E-03
  13  norm          .37307        .39793       -.60519E-07   -.18245E-03
  14  Prefactor     .10000E-03    3.3771       -.16992E-05** at limit **
  15  norm          .82584        .90848       -.84262E-07   -.31908E-03
  16  Prefactor     .10000E-03    5.7677        .88956E-06** at limit **
  17  Prefactor     .10000E-03    4.4109       -.34425E-05** at limit **
  18  norm          .10000E-03    4.1498        .31420E-05** at limit **
  19  Prefactor     .10000E-03    .71801        .29993E-07** at limit **
  20  Normalizat    1.4807        .20450        .12941E-05    .33730E-04
  21  Prefactor     .65298        .16979        .81862E-06    .71729E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.64915
  Prefactor  = 32.3779
  norm       = 5.36995
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.459043
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.0536
  Prefactor  = 4.4398
  norm       = 0.373066
  Prefactor  = 0.0001
  norm       = 0.825842
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.48069
  Prefactor  = 0.652978
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.507     FROM HESSE     STATUS=OK           317 CALLS     2494 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.6492        7.2062        .15562E-03   -1.5192    
   2  Prefactor     32.378        65.805        .70399E-04   -1.4569    
   3  norm          5.3699        13.856        .17335E-03   -1.5244    
   4  Prefactor     .10000E-03    3.3016        .12371E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    24.918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    17.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.009        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .45904        1.6100        .15307E-03   -1.5572    
   9  Prefactor     .10000E-03    9.4043        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    1.8662        .92198E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     12.054        7.0331        .11539E-03   -1.5013    
  12  Prefactor     4.4398        5.6077        .17919E-03   -1.5287    
  13  norm          .37307        .37924        .43802E-03   -1.5586    
  14  Prefactor     .10000E-03    3.3902        .12507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .82584        .87723        .67454E-03   -1.5526    
  16  Prefactor     .10000E-03    5.7708        .16360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    4.4816        .14301E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    4.1521        .13868E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    .71983        .57718E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.4807        .24151        .22188E-03   -.78322    
  21  Prefactor     .65298        .19992        .26704E-03   -1.0540    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.22109e-10
Minuit parameter uncertainties:
  1  7.20717
  2  65.9531
  3  13.8646
  4  4.3606e-06
  5  1.96376e-05
  6  1.00966e-05
  7  2.14702e-05
  8  1.61012
  9  7.42946e-05
  10  4.21843e-06
  11  7.03362
  12  5.60832
  13  0.379239
  14  2.2183e-07
  15  0.877247
  16  4.43636e-06
  17  4.0976e-07
  18  5.56406e-06
  19  8.97511e-07
  20  0.241693
  21  0.20014
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.440e+00  5.608e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  2.606e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  6.530e-01  2.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.481e+00  2.417e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.02
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 2.53e-08 +/- 3.19e-08
Energy Flux (Fixed Index): 6.60e-06 +/- 8.33e-06

TS (Fixed Index): 1.02
Ra Dec: 162.546 4.538
Photon Flux Upper Limit: 1.10e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.64e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/236493/likelihoodResults_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.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) = 4865.07086891
delta logL = 0.436141383417

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4865.06805116
delta logL = 0.438959129467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2910       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7242       1.0000          .0000       10.000    
     3 'Normalizat'    1.4994       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .64254       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5470E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4865.068     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      213 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2910        5.0084        .48622E-02    .12847E-02
   2  Index         1.7239        .57667        .21084       -.47896E-04
   3  Normalizat    1.4994        .20120        .49924E-01   -.11209E-05
   4  Prefactor     .64258        .16875        .60781E-01    .19073E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.29099
  Index      = 1.72389
  Normalizat = 1.49936
  Prefactor  = 0.642578
 **********
 **   18 **HESSE 
 **********

 FCN=   4865.068     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2910        6.0398        .16432E-03   -1.5294    
   2  Index         1.7239        .82357        .10423E-01   -.71448    
   3  Normalizat    1.4994        .23767        .22071E-03   -.77796    
   4  Prefactor     .64258        .19890        .26887E-03   -1.0582    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.47204e-09
Minuit parameter uncertainties:
  1  6.04064
  2  0.830235
  3  0.237848
  4  0.199119
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236493': 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) = 4865.06805103
delta logL = 0.438959260004

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  4.291e+00  6.041e+00  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  1.724e+00  8.302e-01  0.000e+00  1.000e+01 (-1.000e+00)
234        Scale:  5.656e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
544    Prefactor:  6.426e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
545        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
546        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
543   Normalization:  1.499e+00  2.378e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.90
Ra Dec: 162.546 4.538
Photon Index (Free Index): 1.72 +/- 0.83
Photon Flux (Free Index): 1.17e-08 +/- 1.89e-08
Energy Flux (Free Index): 1.77e-05 +/- 3.36e-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/236493/cmap_HighResolution_401328001_401587201_4FGL_J1050.1+0432_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.64e-03', comment='SUCCESS', photon_flux='2.53e-08', energy_flux2='1.77e-05', photon_flux_error='3.19e-08', dlogl='4.39e-01', energy_flux='6.60e-06', photon_flux2='1.17e-08', job_status='DONE', time_completed='2021-09-02 17:55:46.094099', photon_index_error2='0.83', photon_index2='1.72', ts='1.02', fit_tolerance='1e-08', GAL='0.65', photon_index_error='0.00', photon_flux_upper_limit='1.10e-07', energy_flux_error2='3.36e-05', EG='1.48', time_epoch_completed='1630630546.09', return_code='0', job_id='236493', GAL2='0.64', EG2='1.50', return_code2='0', energy_flux_error='8.33e-06', photon_flux_error2='1.89e-08', ts2='1.90', photon_index='2.61' WHERE bin_id='625' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:55:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0064>
Subject: Job 236493: <4FGL_J1050.1+0432_daily_bin625> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin625> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:41:36 2021
Job was executed on host(s) <bullet0064>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:44:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  2 17:44:21 2021
Terminated at Thu Sep  2 17:55:46 2021
Results reported at Thu Sep  2 17:55:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin625 162.546 4.5377 401328001 401587201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1050.1+0432 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   558.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   685 sec.
    Turnaround time :                            850 sec.

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

