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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1508
RA = 124.695, Dec = 31.8862
tmin = 630201601, tmax = 630460801
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='413725', job_status='RUN', time_executed='2021-08-29 17:24:48.950028', time_epoch_executed='1630283088.95' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1508'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413725

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413725/ft1_4FGL_J0818.7+3153_daily_bin1508.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413725/ft1_4FGL_J0818.7+3153_daily_bin1508.fits outfile=/scratch/kocevski/413725/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1508.fits ra=124.695 dec=31.8862 rad=12.0 tmin=630201601.0 tmax=630460801.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.96
user 3.46
sys 1.47

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits" evtable="EVENTS" scfile=/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits sctable="SC_DATA" outfile=/scratch/kocevski/413725/ltcube_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.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/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits
.....................!
real 13.84
user 12.04
sys 1.75

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits sctable="SC_DATA" expcube=/scratch/kocevski/413725/ltcube_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits outfile=/scratch/kocevski/413725/expmap_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.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/413725/ltcube_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits
.....................!
real 192.00
user 185.87
sys 5.71

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/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits scfile=/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits outfile=/scratch/kocevski/413725/cmap_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.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 1.89
user 0.38
sys 1.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits scfile=/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits outfile=/scratch/kocevski/413725/cmap_HighResolution_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.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.01
user 0.40
sys 1.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits evtable="EVENTS" scfile=/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413725/Model_4FGL_J0818.7+3153_daily_bin1508.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/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits.......................!
real 32.22
user 28.50
sys 2.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits', '/scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits', expMap='/scratch/kocevski/413725/expmap_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits', expCube='/scratch/kocevski/413725/ltcube_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413725/Model_4FGL_J0818.7+3153_daily_bin1508.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/413725/ft1_filtered_4FGL_J0818.7+3153_daily_bin1508.fits
Spacecraft file(s): /scratch/kocevski/413725/ft2_4FGL_J0818.7+3153_daily_bin1508.fits
Exposure map: /scratch/kocevski/413725/expmap_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits
Exposure cube: /scratch/kocevski/413725/ltcube_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413725/Model_4FGL_J0818.7+3153_daily_bin1508.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) = 2145.50654308

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    24.545       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.6230       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    14.972       1.0000         .10000E-03   10000.    
     7 'norm      '    .10225E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.3032       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    69.650       1.0000         .10000E-03   10000.    
    12 'Prefactor '    27.051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8338       1.0000         .10000E-03   10000.    
    16 'norm      '    .22035E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    47.307       1.0000         .10000E-03   10000.    
    20 'Prefactor '    8.7863       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .67389       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0872       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=   2145.477     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2383 TOTAL
                     EDM=   .79E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    14.451        .13216E-07** at limit **
   2  norm          24.543        12.158        .26233E-06    .37437E-04
   3  Prefactor     .10000E-03    88.733        .47508E-05** at limit **
   4  Prefactor     2.6202        138.14        .11542E-05   -.40694E-05
   5  Prefactor     .10000E-03    71.626       -.24914E-05** at limit **
   6  norm          14.969        26.741        .44865E-06   -.20989E-05
   7  norm          .10000E-03    137.78       -.17032E-05** at limit **
   8  Prefactor     8.3027        8.8697        .12601E-05   -.19025E-03
   9  Prefactor     .10000E-03    41.871        .57933E-07** at limit **
  10  norm          .10000E-03    .49112       -.98856E-07** at limit **
  11  Prefactor     69.639        61.567       -.11974E-05   -.61599E-04
  12  Prefactor     27.045        53.899       -.48903E-06   -.22244E-04
  13  Prefactor     .10000E-03    10.193       -.55945E-07** at limit **
  14  Prefactor     5.7404        47.537       -.26612E-05   -.38355E-04
  15  Prefactor     6.8337        5.2345       -.34989E-07    .51309E-05
  16  norm          .10000E-03    1.8931        .60914E-06** at limit **
  17  Prefactor     .10000E-03    18.121       -.34039E-07** at limit **
  18  Prefactor     .10000E-03    4.4859        .17984E-07** at limit **
  19  Prefactor     47.306        36.078        .13414E-06   -.10743E-04
  20  Prefactor     8.7862        7.1315        .20370E-06    .50095E-04
  21  Normalizat    .67402        .32625       -.10531E-05   -.47464E-04
  22  Prefactor     1.0871        .25597       -.30101E-06   -.67337E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 24.5434
  Prefactor  = 0.000100002
  Prefactor  = 2.62024
  Prefactor  = 0.000100001
  norm       = 14.9695
  norm       = 0.0001
  Prefactor  = 8.3027
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.6386
  Prefactor  = 27.0453
  Prefactor  = 0.0001
  Prefactor  = 5.74038
  Prefactor  = 6.83369
  norm       = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 47.3063
  Prefactor  = 8.78617
  Normalizat = 0.674015
  Prefactor  = 1.08707
 **********
 **   18 **HESSE 
 **********

 FCN=   2145.477     FROM HESSE     STATUS=OK           344 CALLS     2727 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    14.471        .17200E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          24.543        11.992        .80854E-04   -1.4717    
   3  Prefactor     .10000E-03    90.722        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.6202        134.58        .25182E-03   -1.5384    
   5  Prefactor     .10000E-03    72.736        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          14.969        26.746        .10351E-03   -1.4934    
   7  norm          .10000E-03    138.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.3027        8.8570        .67105E-03   -1.5132    
   9  Prefactor     .10000E-03    41.907        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .58519        .63125E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     69.639        62.236        .24049E-03   -1.4037    
  12  Prefactor     27.045        54.016        .77024E-04   -1.4667    
  13  Prefactor     .10000E-03    10.201        .14443E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.7404        42.856        .16816E-03   -1.5229    
  15  Prefactor     6.8337        5.2296        .88374E-04   -1.5185    
  16  norm          .10000E-03    9.0420        .10820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    18.126        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.4873        .95818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     47.306        36.196        .58298E-04   -1.4331    
  20  Prefactor     8.7862        7.1418        .10788E-03   -1.5115    
  21  Normalizat    .67402        .37030        .30972E-03   -1.0493    
  22  Prefactor     1.0871        .29261        .20593E-03   -.89881    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36222e-10
Minuit parameter uncertainties:
  1  4.27986e-06
  2  11.9935
  3  0.000769182
  4  37.6453
  5  0.000498074
  6  26.7669
  7  0.000400027
  8  8.8584
  9  5.90141e-05
  10  2.57696e-06
  11  62.2938
  12  54.1138
  13  6.5131e-06
  14  31.4007
  15  5.22997
  16  0.000377254
  17  2.36614e-06
  18  1.99652e-07
  19  36.2124
  20  7.14248
  21  0.371684
  22  0.293042
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.705e+01  5.411e+01  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:  1.087e+00  2.930e-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:  6.740e-01  3.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.31
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 1.78e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.35e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413725/likelihoodResults_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.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) = 2145.46399638
delta logL = 0.0132242942173

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2145.44168769
delta logL = 0.0355329813233

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.262       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5940       1.0000          .0000       10.000    
     3 'Normalizat'    .65155       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0993       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=   2145.442     FROM MIGRAD    STATUS=FAILED       106 CALLS      309 TOTAL
                     EDM=   .16E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.116        1627.7        .11440E-03   -.25839E-05
   2  Index         2.5994        5.3557        .46657E-02    .17255E-03
   3  Normalizat    .65130        .51513        .31468E-03   -.75868E-06
   4  Prefactor     1.0995        .38817        .20494E-03   -.10263E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   2145.442     FROM SIMPLEX   STATUS=UNCHANGED     97 CALLS      406 TOTAL
                     EDM=   .12E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.116        1627.7        .94620E-03   -.25839E-05
   2  Index         2.5994        5.3557        .22973E-02    .17255E-03
   3  Normalizat    .65130        .51513        .65303E-03   -.75868E-06
   4  Prefactor     1.0995        .38817        .39065E-03   -.10263E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   2145.442     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      434 TOTAL
                     EDM=   .74E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.116        105.41        .45758E-05   -.27330E-05
   2  Index         2.5994        2.3626        .93315E-03   -.58479E-06
   3  Normalizat    .65130        .36904        .12587E-04   -.81287E-06
   4  Prefactor     1.0995        .30017        .81974E-05   -.97080E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.116
  Index      = 2.59937
  Normalizat = 0.651302
  Prefactor  = 1.09953
 **********
 **   18 **HESSE 
 **********

 FCN=   2145.442     FROM HESSE     STATUS=OK            23 CALLS      457 TOTAL
                     EDM=   .24E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.116        79.615        .91517E-06   -1.5012    
   2  Index         2.5994        2.0830        .37326E-04   -.50080    
   3  Normalizat    .65130        .36573        .25175E-05   -1.0585    
   4  Prefactor     1.0995        .29822        .16395E-05   -.89482    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.38543e-14
Minuit parameter uncertainties:
  1  62.237
  2  2.17047
  3  0.367102
  4  0.298674
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413725': 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) = 2145.44168456
delta logL = 0.0355361096372

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.212e+01  6.224e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.599e+00  2.170e+00  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:  1.100e+00  2.987e-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:  6.513e-01  3.671e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.31
Ra Dec: 124.695 31.886

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/413725/cmap_HighResolution_630201601_630460801_4FGL_J0818.7+3153_daily_bin1508.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.35e-02', job_status='DONE', photon_flux_upper_limit='1.78e-07', time_completed='2021-08-29 17:32:40.643608', job_id='413725', GAL2='1.10', fit_tolerance='1e-08', EG2='0.65', EG='0.67', time_epoch_completed='1630283560.64', return_code2='0', ts='0.31', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='3.55e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1508' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:32:40 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0207>
Subject: Job 413725: <4FGL_J0818.7+3153_daily_bin1508> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1508> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:42 2021
Job was executed on host(s) <bullet0207>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:44 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:20:44 2021
Terminated at Sun Aug 29 17:32:41 2021
Results reported at Sun Aug 29 17:32:41 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1508 124.695 31.8862 630201601 630460801 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 :                                   480.52 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             234.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   717 sec.
    Turnaround time :                            719 sec.

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

