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


Performing analysis on: 4FGL_J1050.1+0432_daily_bin585
RA = 162.546, Dec = 4.5377
tmin = 390960001, tmax = 391219201
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='236437', job_status='RUN', time_executed='2021-09-02 17:47:03.834805', time_epoch_executed='1630630023.83' WHERE source_name='4FGL J1050.1+0432' and cadence='daily' and bin_id='585'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/236437

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/236437/ft1_4FGL_J1050.1+0432_daily_bin585.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/236437/ft1_4FGL_J1050.1+0432_daily_bin585.fits outfile=/scratch/kocevski/236437/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin585.fits ra=162.546 dec=4.5377 rad=12.0 tmin=390960001.0 tmax=391219201.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 4.55
user 4.25
sys 0.24

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.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/236437/ft1_filteredMKT_4FGL_J1050.1+0432_daily_bin585.fits evtable="EVENTS" outfile="/scratch/kocevski/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.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.52
user 0.35
sys 0.12

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits" evtable="EVENTS" scfile=/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits sctable="SC_DATA" outfile=/scratch/kocevski/236437/ltcube_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.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/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits
.....................!
real 16.60
user 16.06
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits evtable="EVENTS" scfile=/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits sctable="SC_DATA" expcube=/scratch/kocevski/236437/ltcube_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits outfile=/scratch/kocevski/236437/expmap_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.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/236437/ltcube_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits
.....................!
real 194.41
user 187.80
sys 4.00

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/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits scfile=/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits outfile=/scratch/kocevski/236437/cmap_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.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.60
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits scfile=/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits outfile=/scratch/kocevski/236437/cmap_HighResolution_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.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.64
user 0.40
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits', '/scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits', expMap='/scratch/kocevski/236437/expmap_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits', expCube='/scratch/kocevski/236437/ltcube_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/236437/Model_4FGL_J1050.1+0432_daily_bin585.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/236437/ft1_filtered_4FGL_J1050.1+0432_daily_bin585.fits
Spacecraft file(s): /scratch/kocevski/236437/ft2_4FGL_J1050.1+0432_daily_bin585.fits
Exposure map: /scratch/kocevski/236437/expmap_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits
Exposure cube: /scratch/kocevski/236437/ltcube_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/236437/Model_4FGL_J1050.1+0432_daily_bin585.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) = 6554.54928612

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2855       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.253       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.6464       1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.8263       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .36567E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.3943       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.9837       1.0000         .10000E-03   10000.    
    15 'norm      '    .41570E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    8.0309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    11.469       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.6612       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0001       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0672       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=   6554.462     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1947 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.1663       -.12042E-06** at limit **
   2  Prefactor     .10000E-03    32.644        .12180E-05** at limit **
   3  norm          4.2867        9.9488        .35831E-05   -.75956E-03
   4  Prefactor     .10000E-03    4.2242       -.69896E-07** at limit **
   5  Prefactor     20.241        54.734       -.98893E-05   -.22270E-03
   6  Prefactor     .10000E-03    22.401       -.61827E-06** at limit **
   7  Prefactor     .10000E-03    4.5594       -.30590E-06** at limit **
   8  norm          .10000E-03    .56830        .18092E-07** at limit **
   9  Prefactor     4.6443        6.2732       -.48356E-06   -.38450E-03
  10  Prefactor     3.8259        2.9594       -.10133E-06   -.14080E-03
  11  Prefactor     .10002E-03    5.4359       -.56524E-06** at limit **
  12  Prefactor     6.3935        6.4959        .12602E-05    .66275E-03
  13  norm          .10000E-03    .18074       -.75673E-08** at limit **
  14  Prefactor     6.9897        7.1902       -.78473E-06   -.44048E-03
  15  norm          .10004E-03    .61299        .34983E-06** at limit **
  16  Prefactor     8.0312        10.250       -.53972E-07   -.15493E-04
  17  Prefactor     .10000E-03    1.6369        .20584E-07** at limit **
  18  norm          11.471        13.231        .43692E-06   -.48248E-03
  19  Prefactor     2.6610        1.8666       -.19853E-07    .15437E-04
  20  Normalizat    1.0004        .19273        .93111E-06   -.82564E-04
  21  Prefactor     1.0671        .15454       -.36378E-06    .63767E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 4.28675
  Prefactor  = 0.0001
  Prefactor  = 20.241
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.64426
  Prefactor  = 3.8259
  Prefactor  = 0.000100022
  Prefactor  = 6.39346
  norm       = 0.0001
  Prefactor  = 6.98971
  norm       = 0.000100041
  Prefactor  = 8.03117
  Prefactor  = 0.0001
  norm       = 11.4714
  Prefactor  = 2.661
  Normalizat = 1.00044
  Prefactor  = 1.06709
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.462     FROM HESSE     STATUS=OK           331 CALLS     2278 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.2328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    32.767        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2867        11.744        .97307E-03   -1.5294    
   4  Prefactor     .10000E-03    4.2402        .16248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     20.241        56.025        .88999E-04   -1.4808    
   6  Prefactor     .10000E-03    22.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5581        .16876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    .90723        .11799E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     4.6443        6.3468        .18671E-03   -1.5277    
  10  Prefactor     3.8259        2.9615        .11581E-03   -1.5317    
  11  Prefactor     .10002E-03    6.0790        .52895E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.3935        6.6047        .15873E-03   -1.5202    
  13  norm          .10000E-03    .22565        .64470E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.9897        7.0899        .15181E-03   -1.5179    
  15  norm          .10004E-03    6.2128        .11699E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.0312        10.248        .14148E-03   -1.5141    
  17  Prefactor     .10000E-03    1.6467        .10114E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.471        13.622        .59146E-03   -1.5030    
  19  Prefactor     2.6610        1.8698        .90058E-04   -1.5382    
  20  Normalizat    1.0004        .22151        .26601E-03   -.93016    
  21  Prefactor     1.0671        .17861        .22209E-03   -.90525    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.7581e-09
Minuit parameter uncertainties:
  1  1.33586e-05
  2  0.000278645
  3  11.7506
  4  1.79745e-05
  5  56.1716
  6  2.50298e-05
  7  1.42343e-05
  8  2.09374e-06
  9  6.34767
  10  2.96164
  11  0.000727198
  12  6.60547
  13  2.53564e-06
  14  7.09077
  15  0.00101164
  16  10.2503
  17  6.10342e-07
  18  13.6261
  19  1.86987
  20  0.22171
  21  0.17871
Done.

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

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  6.393e+00  6.605e+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:  1.067e+00  1.787e-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.000e+00  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.58
Ra Dec: 162.546 4.538
Photon Index (Fixed Index): 2.61 +/- 0.00
Photon Flux (Fixed Index): 3.64e-08 +/- 3.76e-08
Energy Flux (Fixed Index): 9.50e-06 +/- 9.81e-06

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

Saving results to:
/scratch/kocevski/236437/likelihoodResults_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.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) = 6554.18986239
delta logL = 0.272285237486

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6554.18329229
delta logL = 0.278855338724

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.3838       1.0000         .10000E-03   10000.    
     2 'Index     '    3.5763       1.0000          .0000       10.000    
     3 'Normalizat'    .96306       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0894       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=   6554.183     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      246 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.3828        51.065        .54990E-02    .42483E-03
   2  Index         3.5766        3.8900        .21061        .89406E-04
   3  Normalizat    .96307        .54380E-01    .45702E-01    .17222E-04
   4  Prefactor     1.0894        .44450E-01    .38002E-01    .11714E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.38276
  Index      = 3.57659
  Normalizat = 0.963072
  Prefactor  = 1.08942
 **********
 **   18 **HESSE 
 **********

 FCN=   6554.183     FROM HESSE     STATUS=OK            33 CALLS      279 TOTAL
                     EDM=   .35E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.3828        10.241        .11370E-03   -1.5340    
   2  Index         3.5766        2.3966        .75140E-02   -.28867    
   3  Normalizat    .96307        .21690        .27036E-03   -.94278    
   4  Prefactor     1.0894        .18264        .22007E-03   -.89805    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.54831e-08
Minuit parameter uncertainties:
  1  10.2466
  2  2.50976
  3  0.217102
  4  0.182748
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/236437': 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) = 6554.18329227
delta logL = 0.278855360157

Extracting fit parameters...

4FGL J1050.1+0432
   Spectrum: PowerLaw
232    Prefactor:  3.383e+00  1.025e+01  1.000e-04  1.000e+04 ( 1.000e-12)
233        Index:  3.577e+00  2.510e+00  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:  1.089e+00  1.827e-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:  9.631e-01  2.171e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.21
Ra Dec: 162.546 4.538
Photon Index (Free Index): 3.58 +/- 2.51
Photon Flux (Free Index): 6.47e-08 +/- 6.01e-08
Energy Flux (Free Index): 1.06e-05 +/- 8.73e-06

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/236437/cmap_HighResolution_390960001_391219201_4FGL_J1050.1+0432_daily_bin585.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.57e-03', comment='SUCCESS', photon_flux='3.64e-08', energy_flux2='1.06e-05', photon_flux_error='3.76e-08', dlogl='2.79e-01', energy_flux='9.50e-06', photon_flux2='6.47e-08', job_status='DONE', time_completed='2021-09-02 17:57:44.651759', photon_index_error2='2.51', photon_index2='3.58', ts='1.58', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='8.73e-06', EG='1.00', time_epoch_completed='1630630664.65', return_code='0', job_id='236437', GAL2='1.09', EG2='0.96', return_code2='0', energy_flux_error='9.81e-06', photon_flux_error2='6.01e-08', ts2='2.21', photon_index='2.61' WHERE bin_id='585' AND source_name='4FGL J1050.1+0432' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  2 17:57:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 236437: <4FGL_J1050.1+0432_daily_bin585> in cluster <slac> Done

Job <4FGL_J1050.1+0432_daily_bin585> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Sep  2 17:41:33 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  2 17:44:04 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:04 2021
Terminated at Thu Sep  2 17:57:45 2021
Results reported at Thu Sep  2 17:57:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1050.1+0432_daily_bin585 162.546 4.5377 390960001 391219201 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 :                                   634.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             295.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   821 sec.
    Turnaround time :                            972 sec.

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

