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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1531
RA = 124.695, Dec = 31.8862
tmin = 636163201, tmax = 636422401
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='413758', job_status='RUN', time_executed='2021-08-29 17:23:06.422057', time_epoch_executed='1630282986.42' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1531'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413758/ft1_4FGL_J0818.7+3153_daily_bin1531.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413758/ft1_4FGL_J0818.7+3153_daily_bin1531.fits outfile=/scratch/kocevski/413758/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1531.fits ra=124.695 dec=31.8862 rad=12.0 tmin=636163201.0 tmax=636422401.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 10.99
user 3.42
sys 7.42

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits" evtable="EVENTS" scfile=/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits sctable="SC_DATA" outfile=/scratch/kocevski/413758/ltcube_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.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/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits
.....................!
real 20.26
user 11.83
sys 8.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits sctable="SC_DATA" expcube=/scratch/kocevski/413758/ltcube_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.fits outfile=/scratch/kocevski/413758/expmap_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.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/413758/ltcube_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.fits
.....................!
real 199.86
user 185.46
sys 13.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 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/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits scfile=/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits outfile=/scratch/kocevski/413758/cmap_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.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 7.97
user 0.37
sys 7.37

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits scfile=/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits outfile=/scratch/kocevski/413758/cmap_HighResolution_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.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 8.00
user 0.39
sys 7.36

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits evtable="EVENTS" scfile=/scratch/kocevski/413758/ft2_4FGL_J0818.7+3153_daily_bin1531.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413758/Model_4FGL_J0818.7+3153_daily_bin1531.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/413758/ft1_filtered_4FGL_J0818.7+3153_daily_bin1531.fits.....................!
real 73.20
user 61.56
sys 10.90

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.025       1.0000         .10000E-03   10000.    
     2 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.956       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6890       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    76.655       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.3978       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .94273       1.0000         .10000E-03   10000.    
    11 'Prefactor '    12.846       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .80841E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1940       1.0000         .10000E-03   10000.    
    16 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.3987       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7631       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1716       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .80647       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=   6510.896     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2412 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.024        13.194        .18749E-05   -.33303E-04
   2  norm          .10000E-03    2.1002       -.17541E-07** at limit **
   3  Prefactor     37.948        32.178       -.14698E-05   -.61014E-04
   4  Prefactor     1.6846        29.949        .81828E-05   -.17951E-03
   5  Prefactor     .10000E-03    11.899        .88271E-05** at limit **
   6  norm          .10000E-03    7.4792        .11522E-06** at limit **
   7  norm          76.657        70.887        .12251E-05   -.15188E-05
   8  Prefactor     1.3964        4.2311       -.12276E-05   -.11969E-02
   9  Prefactor     .10000E-03    11.283       -.10188E-04** at limit **
  10  norm          .94293        .55374        .82828E-07   -.28911E-03
  11  Prefactor     12.844        23.919        .80473E-06    .21053E-04
  12  Prefactor     .10000E-03    13.828       -.49549E-05** at limit **
  13  Prefactor     .10003E-03    14.893        .34540E-06** at limit **
  14  Prefactor     .10000E-03    5.7142       -.23674E-07** at limit **
  15  Prefactor     2.1967        3.3730       -.26731E-07   -.86500E-03
  16  norm          .10000E-03    .52831        .40240E-07** at limit **
  17  Prefactor     .10000E-03    11.628        .55546E-05** at limit **
  18  Prefactor     2.3976        7.9463       -.98445E-06   -.36097E-03
  19  Prefactor     .10000E-03    21.759        .75066E-06** at limit **
  20  Prefactor     1.7631        2.8994       -.24166E-06   -.58136E-03
  21  Normalizat    1.1718        .16880        .43948E-06   -.91164E-04
  22  Prefactor     .80636        .13374       -.60197E-06   -.26481E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.0238
  norm       = 0.0001
  Prefactor  = 37.948
  Prefactor  = 1.6846
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 76.6567
  Prefactor  = 1.39645
  Prefactor  = 0.0001
  norm       = 0.942928
  Prefactor  = 12.8441
  Prefactor  = 0.0001
  Prefactor  = 0.000100026
  Prefactor  = 0.0001
  Prefactor  = 2.19675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.39765
  Prefactor  = 0.0001
  Prefactor  = 1.76306
  Normalizat = 1.17178
  Prefactor  = 0.806356
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.896     FROM HESSE     STATUS=OK           354 CALLS     2766 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.024        13.136        .10695E-03   -1.4959    
   2  norm          .10000E-03    2.1301        .11374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.948        32.170        .65056E-04   -1.4475    
   4  Prefactor     1.6846        28.615        .32394E-03   -1.5448    
   5  Prefactor     .10000E-03    11.727        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.5604        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          76.657        70.882        .22932E-03   -1.3955    
   8  Prefactor     1.3964        4.3103        .26573E-03   -1.5472    
   9  Prefactor     .10000E-03    11.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .94293        .54893        .42163E-04   -1.5514    
  11  Prefactor     12.844        23.912        .11176E-03   -1.4991    
  12  Prefactor     .10000E-03    13.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    27.395        .66591E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.7204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1967        3.4330        .14027E-03   -1.5412    
  16  norm          .10000E-03    1.5965        .11314E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    11.574        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     2.3976        7.9734        .26439E-03   -1.5398    
  19  Prefactor     .10000E-03    22.091        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7631        2.8879        .17144E-03   -1.5442    
  21  Normalizat    1.1718        .19808        .23374E-03   -.87480    
  22  Prefactor     .80636        .15629        .22253E-03   -.99494    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.39829e-09
Minuit parameter uncertainties:
  1  13.1388
  2  1.93597e-05
  3  32.1847
  4  13.8932
  5  7.75857e-07
  6  2.33084e-06
  7  70.9599
  8  4.31126
  9  2.55708e-07
  10  0.548935
  11  23.9303
  12  1.36408e-05
  13  0.00168729
  14  5.24672e-07
  15  3.43331
  16  4.46811e-06
  17  3.64804e-06
  18  7.9769
  19  1.73109e-06
  20  2.88816
  21  0.198202
  22  0.156376
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.364e-05  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.064e-01  1.564e-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.172e+00  1.982e-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: 4.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.34e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413758/likelihoodResults_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.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) = 6510.89633658
delta logL = -0.000343807344507

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6510.89599287
delta logL = -9.46884028963e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10226E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1248       1.0000          .0000       10.000    
     3 'Normalizat'    1.1717       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80639       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.

 FCN=   6510.896     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      207 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    114.03        .90712E-02** at limit **
   2  Index         2.1151        7.3072        .50000        .56014E-05
   3  Normalizat    1.1718        .12323E-01    .52864E-01    .13057E-04
   4  Prefactor     .80636        .99748E-02    .43800E-01    .19364E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.11512
  Normalizat = 1.17178
  Prefactor  = 0.806355
 **********
 **   18 **HESSE 
 **********

 FCN=   6510.896     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      240 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1266.4        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1151        8.4779        .50000       -.61502    
   3  Normalizat    1.1718        .46974E-01    .23374E-03   -.87480    
   4  Prefactor     .80636        .38024E-01    .22253E-03   -.99494    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.12935e-09
Minuit parameter uncertainties:
  1  3.54404e-05
  2  39.8624
  3  0.0469758
  4  0.0380254
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413758': 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) = 6510.89599275
delta logL = 2.74612830253e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.544e-05  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.115e+00  3.986e+01  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.064e-01  3.803e-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.172e+00  4.698e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/413758/cmap_HighResolution_636163201_636422401_4FGL_J0818.7+3153_daily_bin1531.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.34e-03', job_status='DONE', photon_flux_upper_limit='4.41e-08', time_completed='2021-08-29 17:36:20.420418', job_id='413758', GAL2='0.81', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630283780.42', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='2.75e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1531' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:36:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0193>
Subject: Job 413758: <4FGL_J0818.7+3153_daily_bin1531> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1531> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Aug 29 17:20:45 2021
Job was executed on host(s) <bullet0193>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:20:47 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:47 2021
Terminated at Sun Aug 29 17:36:22 2021
Results reported at Sun Aug 29 17:36:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1531 124.695 31.8862 636163201 636422401 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 :                                   901.24 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             260.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            937 sec.

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

