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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1282
RA = 124.695, Dec = 31.8862
tmin = 571622401, tmax = 571881601
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='413371', job_status='RUN', time_executed='2021-08-29 17:23:44.111433', time_epoch_executed='1630283024.11' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1282'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413371/ft1_4FGL_J0818.7+3153_daily_bin1282.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413371/ft1_4FGL_J0818.7+3153_daily_bin1282.fits outfile=/scratch/kocevski/413371/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1282.fits ra=124.695 dec=31.8862 rad=12.0 tmin=571622401.0 tmax=571881601.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 3.55
user 2.47
sys 0.80

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.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/413371/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1282.fits evtable="EVENTS" outfile="/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.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 1.07
user 0.33
sys 0.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits" evtable="EVENTS" scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits sctable="SC_DATA" outfile=/scratch/kocevski/413371/ltcube_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.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/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits
.....................!
real 13.37
user 12.36
sys 0.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits sctable="SC_DATA" expcube=/scratch/kocevski/413371/ltcube_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits outfile=/scratch/kocevski/413371/expmap_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.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/413371/ltcube_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits
.....................!
real 192.03
user 185.51
sys 5.91

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/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits outfile=/scratch/kocevski/413371/cmap_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.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.16
user 0.38
sys 0.69

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits outfile=/scratch/kocevski/413371/cmap_HighResolution_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.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 1.20
user 0.39
sys 0.69

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits evtable="EVENTS" scfile=/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413371/Model_4FGL_J0818.7+3153_daily_bin1282.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/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits....!
real 16.07
user 12.50
sys 2.03

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits', '/scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits', expMap='/scratch/kocevski/413371/expmap_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits', expCube='/scratch/kocevski/413371/ltcube_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/413371/Model_4FGL_J0818.7+3153_daily_bin1282.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/413371/ft1_filtered_4FGL_J0818.7+3153_daily_bin1282.fits
Spacecraft file(s): /scratch/kocevski/413371/ft2_4FGL_J0818.7+3153_daily_bin1282.fits
Exposure map: /scratch/kocevski/413371/expmap_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits
Exposure cube: /scratch/kocevski/413371/ltcube_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/413371/Model_4FGL_J0818.7+3153_daily_bin1282.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 54.9203462196

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 51.7050211715

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.088       1.0000         .10000E-03   10000.    
     2 'norm      '    28.986       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .25576       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12933       1.0000         .10000E-03   10000.    
     5 'Prefactor '    145.67       1.0000         .10000E-03   10000.    
     6 'norm      '    .44639E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    5.4936       1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.1627       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10824       1.0000         .10000E-03   10000.    
    10 'norm      '    .49111       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.1746       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .13710       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7434       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.8696       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.7133       1.0000         .10000E-03   10000.    
    16 'norm      '    .31805E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.9276       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95456       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.1178       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9002       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .44593E-09   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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   51.10028     FROM MIGRAD    STATUS=CONVERGED    485 CALLS      885 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     27.860        41.493        .16913E-02    .16521E-03
   2  norm          22.260        22.737        .18604E-02    .95014E-03
   3  Prefactor     .10000E-03    169.95        .10229E-01** at limit **
   4  Prefactor     .10000E-03    56.142        .96502E-02** at limit **
   5  Prefactor     167.27        256.95        .83466E-03    .24789E-04
   6  norm          .10000E-03    38.680        .96773E-02** at limit **
   7  norm          .10000E-03    521.11        .42856E-02** at limit **
   8  Prefactor     .10000E-03    269.00        .10674E-01** at limit **
   9  Prefactor     .10000E-03    431.40        .95505E-02** at limit **
  10  norm          .10000E-03    6820.5        .11234E-01** at limit **
  11  Prefactor     .10000E-03    850.24        .10570E-01** at limit **
  12  Prefactor     .10000E-03    1267.1        .96867E-02** at limit **
  13  Prefactor    10000.0        7806.5        .61450E-02** at limit **
  14  Prefactor     .10000E-03    454.26        .51283E-02** at limit **
  15  Prefactor    10000.0        8876.2        .80272E-02** at limit **
  16  norm          .10000E-03    112.14        .91809E-02** at limit **
  17  Prefactor    10000.0        5564.4        .33536E-01** at limit **
  18  Prefactor     .10001E-03    1552.4        .13004E-01** at limit **
  19  Prefactor     4.1178        1.0076         .0000         .0000    
  20  Prefactor     1.9002        1.0396         .0000         .0000    
  21  Normalizat    .10000E-01    .25505        .15083E-04** at limit **
  22  Prefactor     .26645E-13    .25504        .14059E-05** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 27.8595
  norm       = 22.2598
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 167.265
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100004
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.000100009
  Prefactor  = 4.11779
  Prefactor  = 1.9002
  Normalizat = 0.01
  Prefactor  = 2.66454e-14
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   51.10028     FROM HESSE     STATUS=FAILED        47 CALLS      932 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     27.860        41.493        .16913E-02   -1.4652    
   2  norm          22.260        22.737        .18604E-02   -1.4764    
   3  Prefactor     .10000E-03    169.95        .10229E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    56.142        .96502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     167.27        256.95        .83466E-03   -1.3114    
   6  norm          .10000E-03    38.680        .96773E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    521.11        .42856E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    269.00        .10674E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    431.40        .95505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    6820.5        .11234E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    850.24        .10570E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1267.1        .96867E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7806.5        .61450E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    454.26        .51283E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor    10000.0        8876.2        .80272E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    112.14        .91809E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor    10000.0        5564.4        .33536E-01    26.703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    1552.4        .13004E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     540.83        536.65         .0000       -1.5302    
  20  Prefactor     1.9002        1.0396         .0000       -1.5432    
  21  Normalizat    .10000E-01    .25505        .15083E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .26645E-13    .25504        .14059E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.31978e-10
Minuit parameter uncertainties:
  1  41.5356
  2  22.7458
  3  0.000770759
  4  1.22432e-05
  5  258.704
  6  2.24573e-05
  7  0.00107181
  8  0.000742373
  9  0.000148391
  10  0.000978164
  11  0.00238728
  12  0.00475941
  13  0.104888
  14  0.000544016
  15  0.0566914
  16  6.31596e-05
  17  6.53578
  18  0.00775209
  19  1.00757
  20  1.03966
  21  4.69169e-09
  22  1.66315e-07
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 51.1002772666

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.759e-03  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:  2.665e-14  1.663e-07  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.000e-02  4.692e-09  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 7.51e-06 ph cm-2 s-1
Energy Flux Upper Limit: 5.69e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413371/likelihoodResults_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.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) = 51.1002819472
delta logL = -4.680582677e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 51.1002809026
delta logL = -3.63596632269e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96337E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1347       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .10943E-09   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.

 FCN=   51.10028     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      209 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10003E-03    396.31        .18143E-01** at limit **
   2  Index         2.3176        6.1563        .50000        .41077E-06
   3  Normalizat    .10000E-01    .13719E-03    .89822E-03** at limit **
   4  Prefactor     .55511E-14    .10531E-03    .78604E-03** at limit **
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100028
  Index      = 2.31759
  Normalizat = 0.01
  Prefactor  = 5.55112e-15
 **********
 **   18 **HESSE 
 **********

 FCN=   51.10028     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      238 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10003E-03    6486.9        .21722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3176        5.3484        .50000       -.56626    
   3  Normalizat    .10000E-01    .11432E-02    .17964E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .55511E-14    .87754E-03    .15721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.43071e-09
Minuit parameter uncertainties:
  1  0.019347
  2  927.264
  3  1.11848e-08
  4  4.40763e-09
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413371': 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) = 51.100277281
delta logL = -1.44111425016e-08

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  1.935e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.318e+00  9.273e+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:  5.551e-15  4.408e-09  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.000e-02  1.118e-08  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/413371/cmap_HighResolution_571622401_571881601_4FGL_J0818.7+3153_daily_bin1282.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.69e-01', job_status='DONE', photon_flux_upper_limit='7.51e-06', time_completed='2021-08-29 17:29:21.430584', job_id='413371', GAL2='0.00', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630283361.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.00', dlogl='-1.44e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1282' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:29:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 413371: <4FGL_J0818.7+3153_daily_bin1282> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1282 124.695 31.8862 571622401 571881601 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 :                                   337.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             407.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   538 sec.
    Turnaround time :                            540 sec.

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

