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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1121
RA = 124.695, Dec = 31.8862
tmin = 529891201, tmax = 530150401
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='412044', job_status='RUN', time_executed='2021-08-29 17:18:22.788882', time_epoch_executed='1630282702.79' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1121'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412044

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412044/ft1_4FGL_J0818.7+3153_daily_bin1121.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412044/ft1_4FGL_J0818.7+3153_daily_bin1121.fits outfile=/scratch/kocevski/412044/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1121.fits ra=124.695 dec=31.8862 rad=12.0 tmin=529891201.0 tmax=530150401.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.89
user 3.33
sys 2.35

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.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/412044/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1121.fits evtable="EVENTS" outfile="/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.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 2.77
user 0.34
sys 2.28

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits" evtable="EVENTS" scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits sctable="SC_DATA" outfile=/scratch/kocevski/412044/ltcube_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.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/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits
.....................!
real 14.88
user 11.72
sys 3.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits sctable="SC_DATA" expcube=/scratch/kocevski/412044/ltcube_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits outfile=/scratch/kocevski/412044/expmap_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.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/412044/ltcube_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits
.....................!
real 193.06
user 185.27
sys 7.03

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

Setting source of interest to:
4FGL J0818.7+3153 @ 124.695 31.8862

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits outfile=/scratch/kocevski/412044/cmap_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.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=124.695 yref=31.8862 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 2.61
user 0.38
sys 2.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits outfile=/scratch/kocevski/412044/cmap_HighResolution_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.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=124.695 yref=31.8862 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 2.62
user 0.38
sys 2.22

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits evtable="EVENTS" scfile=/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412044/Model_4FGL_J0818.7+3153_daily_bin1121.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/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits.....................!
real 69.37
user 64.81
sys 4.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits', '/scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits', expMap='/scratch/kocevski/412044/expmap_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits', expCube='/scratch/kocevski/412044/ltcube_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/412044/Model_4FGL_J0818.7+3153_daily_bin1121.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0818.7+3153'

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.482e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/412044/ft1_filtered_4FGL_J0818.7+3153_daily_bin1121.fits
Spacecraft file(s): /scratch/kocevski/412044/ft2_4FGL_J0818.7+3153_daily_bin1121.fits
Exposure map: /scratch/kocevski/412044/expmap_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits
Exposure cube: /scratch/kocevski/412044/ltcube_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/412044/Model_4FGL_J0818.7+3153_daily_bin1121.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) = 6812.3419669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.228       1.0000         .10000E-03   10000.    
     2 'norm      '    6.9247       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10056E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.267       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .70936E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    78.056       1.0000         .10000E-03   10000.    
     7 'norm      '    .16076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    36.884       1.0000         .10000E-03   10000.    
    10 'norm      '    .92548       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11110E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.3481       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.3300       1.0000         .10000E-03   10000.    
    16 'norm      '    .45613       1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.9897       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0700       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .85501       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6812.338     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2383 TOTAL
                     EDM=   .31E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.230        12.935        .26511E-06   -.85520E-05
   2  norm          6.9207        4.5634        .14364E-05   -.65182E-03
   3  Prefactor     .10000E-03    29.855       -.69433E-06** at limit **
   4  Prefactor     19.267        19.172       -.14550E-05    .61000E-04
   5  Prefactor     .10011E-03    217.69       -.14523E-04** at limit **
   6  norm          78.058        17.550        .30724E-07    .17894E-04
   7  norm          .10000E-03    93.186        .64479E-06** at limit **
   8  Prefactor     .10000E-03    1.9249        .29204E-07** at limit **
   9  Prefactor     36.888        33.707        .87367E-07    .46500E-04
  10  norm          .92548        .47274        .10707E-07   -.44240E-04
  11  Prefactor     .10000E-03    29.927        .16141E-06** at limit **
  12  Prefactor     .10000E-03    5.9245        .16483E-07** at limit **
  13  Prefactor     .10000E-03    22.478        .12748E-06** at limit **
  14  Prefactor     9.3662        23.070       -.12810E-05   -.54159E-04
  15  Prefactor     4.3301        2.6949        .97277E-07   -.57643E-04
  16  norm          .45523        1.1173        .58990E-06    .56175E-04
  17  Prefactor     6.9897        18.672        .37408E-06   -.28793E-05
  18  Prefactor     .10000E-03    6.8874       -.28056E-07** at limit **
  19  Prefactor     .10000E-03    4.1139        .13998E-07** at limit **
  20  Prefactor     .10000E-03    1.7836        .26164E-07** at limit **
  21  Normalizat    1.0701        .17483       -.77209E-06    .54085E-04
  22  Prefactor     .85497        .13755       -.39561E-06    .65923E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2304
  norm       = 6.92075
  Prefactor  = 0.0001
  Prefactor  = 19.2674
  Prefactor  = 0.000100109
  norm       = 78.0583
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 36.888
  norm       = 0.92548
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.36623
  Prefactor  = 4.33011
  norm       = 0.455227
  Prefactor  = 6.98973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.07007
  Prefactor  = 0.854972
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.338     FROM HESSE     STATUS=OK           342 CALLS     2725 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.230        12.935        .11956E-03   -1.5038    
   2  norm          6.9207        4.6201        .64916E-03   -1.5182    
   3  Prefactor     .10000E-03    30.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.267        19.155        .91246E-04   -1.4830    
   5  Prefactor     .10011E-03    243.64        .41944E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          78.058        17.560        .45453E-04   -1.3939    
   7  norm          .10000E-03    93.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.9598        .11177E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     36.888        33.721        .65991E-04   -1.4493    
  10  norm          .92548        .47213        .39258E-04   -1.5516    
  11  Prefactor     .10000E-03    30.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    23.313        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     9.3662        21.883        .13108E-03   -1.5096    
  15  Prefactor     4.3301        2.6875        .10196E-03   -1.5292    
  16  norm          .45523        1.0381        .11181E-03   -1.5573    
  17  Prefactor     6.9897        18.656        .15174E-03   -1.5179    
  18  Prefactor     .10000E-03    7.0337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    4.1180        .16349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.8214        .10764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.0701        .20394        .25785E-03   -.90719    
  22  Prefactor     .85497        .16018        .22956E-03   -.97733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.48873e-10
Minuit parameter uncertainties:
  1  12.9385
  2  4.62036
  3  8.54009e-05
  4  19.1611
  5  0.0103307
  6  17.561
  7  0.000583975
  8  2.11097e-06
  9  33.7381
  10  0.472135
  11  1.67626e-05
  12  1.55865e-06
  13  3.09137e-05
  14  21.9019
  15  2.68758
  16  1.03812
  17  18.6714
  18  2.47345e-06
  19  1.47399e-06
  20  1.85311e-06
  21  0.20409
  22  0.160269
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.559e-06  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.135e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  8.550e-01  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.070e+00  2.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 3.47e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.63e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412044/likelihoodResults_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.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): 102
logL (Free Index) = 6812.33847164
delta logL = -0.000798392211436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6812.33767278
delta logL = 4.69868609798e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0968       1.0000          .0000       10.000    
     3 'Normalizat'    1.0701       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .85497       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5860E+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=   6812.338     FROM MIGRAD    STATUS=FAILED        95 CALLS      252 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11726E-03    2.4469        .18142E-01** at limit **
   2  Index         1.8199        8.5123        .50000        .32258E-04
   3  Normalizat    1.0701        .22515E-02    .25785E-03   -.13271E-04
   4  Prefactor     .85497        .18225E-02    .22956E-03   -.29367E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6812.338     FROM SIMPLEX   STATUS=PROGRESS      80 CALLS      332 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11193E-03    2.4469        .38337E-03** at limit **
   2  Index         1.7443        8.5123        .27776E-01    .32258E-04
   3  Normalizat    1.0700        .22515E-02    .15716E-04   -.13271E-04
   4  Prefactor     .85494        .18225E-02    .17717E-04   -.29367E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6812.338     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      367 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10816E-03    1.7764        .24610E-01** at limit **
   2  Index         1.7692        7.2184        .50000        .26650E-04
   3  Normalizat    1.0700        .18564E-02    .10314E-04   -.22974E-01
   4  Prefactor     .85494        .15026E-02    .91825E-05   -.26255E-01
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000108159
  Index      = 1.76917
  Normalizat = 1.07003
  Prefactor  = 0.854936
 **********
 **   18 **HESSE 
 **********

 FCN=   6812.338     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      396 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10816E-03    80.943        .25429E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.7692        6.6985        .50000       -.70255    
   3  Normalizat    1.0700        .12640E-01    .20628E-05   -.90720    
   4  Prefactor     .85494        .10231E-01    .18365E-05   -.97734    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.89383e-08
Minuit parameter uncertainties:
  1  0.0514677
  2  393.058
  3  0.0126399
  4  0.0102315
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412044': 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): 102
logL (Free Index) = 6812.33767053
delta logL = 2.71306726063e-06

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.082e-04  5.147e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.769e+00  3.931e+02  0.000e+00  1.000e+01 (-1.000e+00)
303        Scale:  2.794e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
583    Prefactor:  8.549e-01  1.023e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.070e+00  1.264e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 124.695 31.886

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/412044/cmap_HighResolution_529891201_530150401_4FGL_J0818.7+3153_daily_bin1121.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.63e-03', job_status='DONE', photon_flux_upper_limit='3.47e-08', time_completed='2021-08-29 17:30:44.127140', job_id='412044', GAL2='0.85', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630283444.13', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.71e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1121' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0093>
Subject: Job 412044: <4FGL_J0818.7+3153_daily_bin1121> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1121> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:46 2021
Job was executed on host(s) <bullet0093>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 17:15:48 2021
Terminated at Sun Aug 29 17:30:45 2021
Results reported at Sun Aug 29 17:30:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1121 124.695 31.8862 529891201 530150401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0818.7+3153 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   768.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             284.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   896 sec.
    Turnaround time :                            899 sec.

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

