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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1225
RA = 124.695, Dec = 31.8862
tmin = 556848001, tmax = 557107201
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='412186', job_status='RUN', time_executed='2021-08-29 17:19:39.717491', time_epoch_executed='1630282779.72' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1225'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/412186

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/412186/ft1_4FGL_J0818.7+3153_daily_bin1225.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/412186/ft1_4FGL_J0818.7+3153_daily_bin1225.fits outfile=/scratch/kocevski/412186/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1225.fits ra=124.695 dec=31.8862 rad=12.0 tmin=556848001.0 tmax=557107201.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 8.58
user 3.36
sys 4.37

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.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/412186/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1225.fits evtable="EVENTS" outfile="/scratch/kocevski/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.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 4.45
user 0.32
sys 4.08

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits" evtable="EVENTS" scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits sctable="SC_DATA" outfile=/scratch/kocevski/412186/ltcube_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.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/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits
.....................!
real 16.81
user 12.05
sys 4.60

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits sctable="SC_DATA" expcube=/scratch/kocevski/412186/ltcube_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.fits outfile=/scratch/kocevski/412186/expmap_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.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/412186/ltcube_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.fits
.....................!
real 198.17
user 185.15
sys 10.55

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/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits outfile=/scratch/kocevski/412186/cmap_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.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 4.34
user 0.38
sys 3.94

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits outfile=/scratch/kocevski/412186/cmap_HighResolution_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.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 4.42
user 0.39
sys 3.96

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits evtable="EVENTS" scfile=/scratch/kocevski/412186/ft2_4FGL_J0818.7+3153_daily_bin1225.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/412186/Model_4FGL_J0818.7+3153_daily_bin1225.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/412186/ft1_filtered_4FGL_J0818.7+3153_daily_bin1225.fits....................!
real 52.54
user 45.99
sys 6.30

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

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 4332.03189802

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10091E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .41499E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10121E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    2.2906       1.0000         .10000E-03   10000.    
     7 'norm      '    .31765       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.3287       1.0000         .10000E-03   10000.    
    11 'Prefactor '    34.577       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.623       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .23219E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .50778       1.0000         .10000E-03   10000.    
    17 'Prefactor '    39.602       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .49238E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    9.5312       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .98868       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90243       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=   4331.939     FROM MIGRAD    STATUS=CONVERGED    883 CALLS     2479 TOTAL
                     EDM=   .96E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    15.237        .18142E-02** at limit **
   2  norm          .10004E-03    9.3634        .20482E-02** at limit **
   3  Prefactor     .10000E-03    107.17        .21247E-02** at limit **
   4  Prefactor     .10000E-03    16.347        .18142E-02** at limit **
   5  Prefactor     .10000E-03    18.582        .18142E-02** at limit **
   6  norm          2.2866        15.627        .27122E-03   -.97456E-04
   7  norm          .10167E-03    173.45        .24958    ** at limit **
   8  Prefactor     .10000E-03    1.7430        .84644E-03** at limit **
   9  Prefactor     .10000E-03    23.599        .18142E-02** at limit **
  10  norm          1.3288        .70997        .38623E-04    .32026E-03
  11  Prefactor     34.585        32.405        .34075E-03    .13028E-03
  12  Prefactor     .10000E-03    17.732        .18142E-02** at limit **
  13  Prefactor     14.629        14.636        .10474E-03    .40736E-03
  14  Prefactor     .11245E-03    38.618        .93337E-01** at limit **
  15  Prefactor     .10000E-03    1.0885        .66854E-03** at limit **
  16  norm          .50619        1.6728        .13335E-03    .10466E-02
  17  Prefactor     39.571        33.234        .31847E-03   -.15329E-03
  18  Prefactor     .10035E-03    91.173        .41585E-02** at limit **
  19  Prefactor     .10000E-03    11.930        .18142E-02** at limit **
  20  Prefactor     9.5329        8.1427        .12981E-03    .18392E-05
  21  Normalizat    .98865        .24647        .26036E-03    .26976E-03
  22  Prefactor     .90246        .18597        .20510E-03    .27198E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.000100039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.28664
  norm       = 0.000101666
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.32877
  Prefactor  = 34.5852
  Prefactor  = 0.0001
  Prefactor  = 14.6286
  Prefactor  = 0.000112454
  Prefactor  = 0.0001
  norm       = 0.506188
  Prefactor  = 39.5713
  Prefactor  = 0.000100348
  Prefactor  = 0.0001
  Prefactor  = 9.53293
  Normalizat = 0.988651
  Prefactor  = 0.902456
 **********
 **   18 **HESSE 
 **********

 FCN=   4331.939     FROM HESSE     STATUS=OK           340 CALLS     2819 TOTAL
                     EDM=   .97E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.246        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10004E-03    9.4001        .40963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    107.26        .42493E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    16.351        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    18.582        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          2.2866        15.618        .10849E-04   -1.5406    
   7  norm          .10167E-03    173.45        .24958       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.7431        .16929E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    23.600        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.3288        .70995        .15449E-05   -1.5477    
  11  Prefactor     34.585        32.404        .68150E-04   -1.4531    
  12  Prefactor     .10000E-03    17.734        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     14.629        14.636        .20948E-04   -1.4943    
  14  Prefactor     .11245E-03    35.846        .97807E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.0885        .13371E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .50619        1.6678        .53342E-05   -1.5566    
  17  Prefactor     39.571        33.233        .12739E-04   -1.4449    
  18  Prefactor     .10035E-03    92.680        .83170E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    11.931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     9.5329        8.1428        .51922E-05   -1.5090    
  21  Normalizat    .98865        .24664        .52072E-04   -.93412    
  22  Prefactor     .90246        .18612        .41020E-04   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.71315e-09
Minuit parameter uncertainties:
  1  0.000183819
  2  0.00120665
  3  0.000238929
  4  4.89456e-05
  5  0.000101687
  6  11.9562
  7  0.0341004
  8  5.81114e-06
  9  9.86486e-05
  10  0.709959
  11  32.4208
  12  7.84148e-05
  13  14.6394
  14  0.0422826
  15  9.44578e-06
  16  1.66797
  17  33.2482
  18  0.0113727
  19  5.77531e-06
  20  8.14375
  21  0.246922
  22  0.186249
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  7.841e-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:  9.025e-01  1.862e-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:  9.887e-01  2.469e-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: 6.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.03e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/412186/likelihoodResults_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.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) = 4331.93949573
delta logL = -0.000268676699307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4331.93923208
delta logL = -5.02948751091e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19933E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4302       1.0000          .0000       10.000    
     3 'Normalizat'    .98865       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90246       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=   4331.939     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      268 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10733E-03    .66920        .18142E-01** at limit **
   2  Index         2.2643        5.9291        .50000        .16059E-04
   3  Normalizat    .98865        .11239E-02    .26036E-03   -.71260E-04
   4  Prefactor     .90246        .85429E-03    .20509E-03    .83482E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000107329
  Index      = 2.26428
  Normalizat = 0.988647
  Prefactor  = 0.902458
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10733E-03    44.181        .25131E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2643        7.3052        .50000       -.57895    
   3  Normalizat    .98865        .90785E-02    .10415E-04   -.93412    
   4  Prefactor     .90246        .69006E-02    .82036E-05   -.96055    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.86035e-08
Minuit parameter uncertainties:
  1  0.0360168
  2  258.932
  3  0.00907853
  4  0.00690063
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/412186': 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) = 4331.93922768
delta logL = -6.26123437542e-07

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.073e-04  3.602e-02  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.264e+00  2.589e+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:  9.025e-01  6.901e-03  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:  9.886e-01  9.079e-03  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/412186/cmap_HighResolution_556848001_557107201_4FGL_J0818.7+3153_daily_bin1225.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.03e-03', job_status='DONE', photon_flux_upper_limit='6.63e-08', time_completed='2021-08-29 17:30:13.113429', job_id='412186', GAL2='0.90', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630283413.11', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='-6.26e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1225' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:30:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0163>
Subject: Job 412186: <4FGL_J0818.7+3153_daily_bin1225> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin1225> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Sun Aug 29 17:15:57 2021
Job was executed on host(s) <bullet0163>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 17:15:58 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:58 2021
Terminated at Sun Aug 29 17:30:14 2021
Results reported at Sun Aug 29 17:30:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1225 124.695 31.8862 556848001 557107201 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 :                                   687.06 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             255.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   855 sec.
    Turnaround time :                            857 sec.

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

