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


Performing analysis on: 4FGL_J1434.7+1950_daily_bin1005
RA = 218.675, Dec = 19.8478
tmin = 499824001, tmax = 500083201
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='614401', job_status='RUN', time_executed='2021-09-10 00:28:45.312583', time_epoch_executed='1631258925.31' WHERE source_name='4FGL J1434.7+1950' and cadence='daily' and bin_id='1005'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/614401

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/614401/ft1_4FGL_J1434.7+1950_daily_bin1005.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/614401/ft1_4FGL_J1434.7+1950_daily_bin1005.fits outfile=/scratch/kocevski/614401/ft1_filteredMKT_4FGL_J1434.7+1950_daily_bin1005.fits ra=218.675 dec=19.8478 rad=12.0 tmin=499824001.0 tmax=500083201.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.73
user 4.98
sys 0.25

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.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/614401/ft1_filteredMKT_4FGL_J1434.7+1950_daily_bin1005.fits evtable="EVENTS" outfile="/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.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.35
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits" evtable="EVENTS" scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits sctable="SC_DATA" outfile=/scratch/kocevski/614401/ltcube_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.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/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits
.....................!
real 12.39
user 12.03
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits sctable="SC_DATA" expcube=/scratch/kocevski/614401/ltcube_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits outfile=/scratch/kocevski/614401/expmap_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.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/614401/ltcube_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits
.....................!
real 190.51
user 184.92
sys 4.98

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

Setting source of interest to:
4FGL J1434.7+1950 @ 218.675 19.8478

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits outfile=/scratch/kocevski/614401/cmap_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.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=218.675 yref=19.8478 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.57
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits outfile=/scratch/kocevski/614401/cmap_HighResolution_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.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=218.675 yref=19.8478 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.56
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits evtable="EVENTS" scfile=/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/614401/Model_4FGL_J1434.7+1950_daily_bin1005.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/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits.....................!
real 59.56
user 58.15
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits', '/scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits', expMap='/scratch/kocevski/614401/expmap_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits', expCube='/scratch/kocevski/614401/ltcube_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/614401/Model_4FGL_J1434.7+1950_daily_bin1005.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1434.7+1950'

4FGL J1434.7+1950
   Spectrum: LogParabola
234         norm:  2.475e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  1.371e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/614401/ft1_filtered_4FGL_J1434.7+1950_daily_bin1005.fits
Spacecraft file(s): /scratch/kocevski/614401/ft2_4FGL_J1434.7+1950_daily_bin1005.fits
Exposure map: /scratch/kocevski/614401/expmap_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits
Exposure cube: /scratch/kocevski/614401/ltcube_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/614401/Model_4FGL_J1434.7+1950_daily_bin1005.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) = 8327.84907228

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .16220E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12135E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    3.2901       1.0000         .10000E-03   10000.    
     6 'Prefactor '    10.234       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8946       1.0000         .10000E-03   10000.    
     8 'norm      '    3.8382       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10531E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.8197       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.592       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2290       1.0000         .10000E-03   10000.    
    17 'norm      '    13.619       1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.3236       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10063E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1312       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0197       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8327.789     FROM MIGRAD    STATUS=CONVERGED    468 CALLS     1925 TOTAL
                     EDM=   .61E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.2658        .84827E-06** at limit **
   2  Prefactor     .10002E-03    29.760       -.19518E-04** at limit **
   3  Prefactor     .10000E-03    47.782       -.96498E-05** at limit **
   4  Prefactor     .10000E-03    9.1419       -.13965E-05** at limit **
   5  norm          3.2897        2.4357        .72075E-07    .80425E-05
   6  Prefactor     10.239        7.4277        .77878E-06    .44258E-03
   7  norm          5.8942        3.5387        .12804E-06    .78824E-04
   8  norm          3.8385        3.2046        .18736E-05    .16246E-02
   9  Prefactor     .10000E-03    45.909       -.51261E-07** at limit **
  10  Prefactor     .10000E-03    6.0955       -.70420E-06** at limit **
  11  Prefactor     8.7805        22.099        .26903E-05    .28596E-04
  12  Prefactor     .10000E-03    3.3849        .48404E-07** at limit **
  13  Prefactor     .10000E-03    20.782       -.34982E-05** at limit **
  14  Prefactor     .10000E-03    10.188        .20004E-05** at limit **
  15  Prefactor     11.591        8.9770        .63428E-06    .14915E-03
  16  norm          1.2290        .25061        .94044E-08   -.70030E-03
  17  norm          13.622        21.859        .40751E-06   -.11303E-05
  18  Prefactor     1.1966        123.35        .21431E-04   -.42261E-06
  19  Prefactor     .10000E-03    4.7980        .77436E-07** at limit **
  20  Normalizat    1.1311        .19028       -.19925E-05   -.14050E-03
  21  Prefactor     1.0199        .13583       -.91650E-06   -.23574E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100023
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.28968
  Prefactor  = 10.2389
  norm       = 5.89424
  norm       = 3.83847
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.7805
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.5905
  norm       = 1.22904
  norm       = 13.6215
  Prefactor  = 1.19663
  Prefactor  = 0.0001
  Normalizat = 1.1311
  Prefactor  = 1.01989
 **********
 **   18 **HESSE 
 **********

 FCN=   8327.789     FROM HESSE     STATUS=OK           315 CALLS     2240 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.2922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10002E-03    35.608        .47257E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    47.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.3657        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          3.2897        2.4353        .11862E-03   -1.5345    
   6  Prefactor     10.239        7.4598        .12525E-03   -1.5068    
   7  norm          5.8942        3.5332        .12514E-03   -1.5222    
   8  norm          3.8385        4.0507        .91009E-03   -1.5316    
   9  Prefactor     .10000E-03    45.991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.0996        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.7805        22.115        .13497E-03   -1.5115    
  12  Prefactor     .10000E-03    3.3925        .16397E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    20.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    10.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.591        9.0379        .58832E-03   -1.5027    
  16  norm          1.2290        .25063        .19749E-04   -1.5486    
  17  norm          13.622        21.865        .10854E-03   -1.4970    
  18  Prefactor     1.1966        126.55        .38223E-03   -1.5489    
  19  Prefactor     .10000E-03    4.8322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    1.1311        .22738        .29452E-03   -.88759    
  21  Prefactor     1.0199        .16355        .22108E-03   -.92069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.13243e-09
Minuit parameter uncertainties:
  1  2.69317e-05
  2  0.00182041
  3  3.44079e-06
  4  5.19283e-05
  5  2.43537
  6  7.46047
  7  3.53335
  8  4.05095
  9  0.000131285
  10  4.55809e-06
  11  22.1357
  12  5.78581e-06
  13  9.93515e-06
  14  5.89249e-05
  15  9.03892
  16  0.250632
  17  21.8779
  18  24.664
  19  1.27512e-05
  20  0.227582
  21  0.163633
Done.

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

Extracting fit parameters...

4FGL J1434.7+1950
   Spectrum: LogParabola
234         norm:  5.894e+00  3.533e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  2.270e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
236         beta:  1.371e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.020e+00  1.636e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.131e+00  2.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.61
Ra Dec: 218.675 19.848
Photon Index (Fixed Index): 2.27 +/- 0.00
Photon Flux (Fixed Index): 6.60e-08 +/- 3.95e-08
Energy Flux (Fixed Index): 2.74e-05 +/- 1.64e-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) = 8327.55991423
delta logL = 0.228682002724

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8327.53945039
delta logL = 0.249145844376

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.9952       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4959       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1688       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0114       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5060E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8327.539     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      210 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.9890        3.5381        .44983E-02    .32781E-03
   2  alpha         1.4948        .50123        .46420       -.84321E-04
   3  Normalizat    1.1690        .18667        .65685E-01   -.35465E-04
   4  Prefactor     1.0114        .13383        .43124E-01   -.17008E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.98902
  alpha      = 1.49476
  Normalizat = 1.16902
  Prefactor  = 1.01138
 **********
 **   18 **HESSE 
 **********

 FCN=   8327.539     FROM HESSE     STATUS=OK            31 CALLS      241 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.9890        4.6035        .13831E-03   -1.5261    
   2  alpha         1.4948        .80726        .19078E-01   -.41380    
   3  Normalizat    1.1690        .22354        .29058E-03   -.87566    
   4  Prefactor     1.0114        .16161        .22208E-03   -.92351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.23965e-10
Minuit parameter uncertainties:
  1  4.60379
  2  0.825005
  3  0.223724
  4  0.161692
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/614401': 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) = 8327.53944839
delta logL = 0.249147849985

Extracting fit parameters...

4FGL J1434.7+1950
   Spectrum: LogParabola
234         norm:  4.989e+00  4.604e+00  1.000e-04  1.000e+04 ( 1.000e-12)
235        alpha:  1.495e+00  8.250e-01  0.000e+00  5.000e+00 ( 1.000e+00)
236         beta:  1.371e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
237           Eb:  1.056e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
503    Prefactor:  1.011e+00  1.617e-01  0.000e+00  1.000e+01 ( 1.000e+00)
504        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
505        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
502   Normalization:  1.169e+00  2.237e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.13
Ra Dec: 218.675 19.848
Photon Index (Free Index): 1.49 +/- 0.83
Photon Flux (Free Index): 2.42e-08 +/- 3.18e-08
Energy Flux (Free Index): 3.85e-05 +/- 3.90e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/614401/cmap_HighResolution_499824001_500083201_4FGL_J1434.7+1950_daily_bin1005.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.60e-08', energy_flux2='3.85e-05', photon_flux_error='3.95e-08', dlogl='2.49e-01', energy_flux='2.74e-05', photon_flux2='2.42e-08', job_status='DONE', time_completed='2021-09-10 00:38:19.051802', photon_index_error2='0.83', photon_index2='1.49', ts='8.61', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='3.90e-05', EG='1.13', time_epoch_completed='1631259499.05', return_code='0', job_id='614401', GAL2='1.01', EG2='1.17', return_code2='0', energy_flux_error='1.64e-05', photon_flux_error2='3.18e-08', ts2='9.13', photon_index='2.27' WHERE bin_id='1005' AND source_name='4FGL J1434.7+1950' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 10 00:38:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0246>
Subject: Job 614401: <4FGL_J1434.7+1950_daily_bin1005> in cluster <slac> Done

Job <4FGL_J1434.7+1950_daily_bin1005> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Sep 10 00:26:00 2021
Job was executed on host(s) <bullet0246>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 10 00:26:01 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 10 00:26:01 2021
Terminated at Fri Sep 10 00:38:19 2021
Results reported at Fri Sep 10 00:38:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1434.7+1950_daily_bin1005 218.675 19.8478 499824001 500083201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1434.7+1950 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   567.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             328.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   738 sec.
    Turnaround time :                            739 sec.

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

