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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1027
RA = 124.695, Dec = 31.8862
tmin = 505526401, tmax = 505785601
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='411894', job_status='RUN', time_executed='2021-08-29 17:18:17.431798', time_epoch_executed='1630282697.43' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1027'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411894

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411894/ft1_4FGL_J0818.7+3153_daily_bin1027.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411894/ft1_4FGL_J0818.7+3153_daily_bin1027.fits outfile=/scratch/kocevski/411894/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1027.fits ra=124.695 dec=31.8862 rad=12.0 tmin=505526401.0 tmax=505785601.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.88
user 3.31
sys 0.53

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits" evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits sctable="SC_DATA" outfile=/scratch/kocevski/411894/ltcube_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.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/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits
.....................!
real 12.61
user 11.81
sys 0.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits sctable="SC_DATA" expcube=/scratch/kocevski/411894/ltcube_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.fits outfile=/scratch/kocevski/411894/expmap_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.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/411894/ltcube_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.fits
.....................!
real 190.12
user 184.92
sys 4.78

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/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits scfile=/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits outfile=/scratch/kocevski/411894/cmap_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.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 0.95
user 0.36
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits scfile=/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits outfile=/scratch/kocevski/411894/cmap_HighResolution_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.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 0.96
user 0.37
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits evtable="EVENTS" scfile=/scratch/kocevski/411894/ft2_4FGL_J0818.7+3153_daily_bin1027.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411894/Model_4FGL_J0818.7+3153_daily_bin1027.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/411894/ft1_filtered_4FGL_J0818.7+3153_daily_bin1027.fits.....................!
real 63.85
user 61.74
sys 1.68

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.739       1.0000         .10000E-03   10000.    
     2 'norm      '    7.7205       1.0000         .10000E-03   10000.    
     3 'Prefactor '    18.759       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.181       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10429E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    23.487       1.0000         .10000E-03   10000.    
     7 'norm      '    43.807       1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.1176       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.041       1.0000         .10000E-03   10000.    
    10 'norm      '    .73095       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .40661E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    22.245       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2307       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    33.266       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.5666       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .15684E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4769       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .56680       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=   6371.808     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2361 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.740        13.393       -.48447E-06   -.23072E-05
   2  norm          7.7225        8.2306        .80250E-05   -.33604E-05
   3  Prefactor     18.713        58.454       -.62521E-04    .15095E-03
   4  Prefactor     33.179        26.600       -.47782E-05    .30236E-04
   5  Prefactor     .10000E-03    40.512       -.61278E-05** at limit **
   6  norm          23.489        13.872        .24483E-06   -.27906E-04
   7  norm          43.809        69.108        .57812E-06   -.70925E-05
   8  Prefactor     3.1178        3.5175       -.33067E-06   -.29687E-03
   9  Prefactor     12.958        37.383       -.50249E-04   -.30706E-03
  10  norm          .73101        .51915        .40681E-07    .15377E-03
  11  Prefactor     .10000E-03    95.608        .11828E-03** at limit **
  12  Prefactor     22.239        34.717        .65489E-05   -.19247E-03
  13  Prefactor     3.2314        7.4602       -.45788E-05   -.98538E-04
  14  Prefactor     .10000E-03    29.386        .92131E-06** at limit **
  15  Prefactor     .10000E-03    .62382       -.61149E-07** at limit **
  16  norm          .10000E-03    .49746        .85018E-07** at limit **
  17  Prefactor     33.266        24.867       -.23624E-05    .86735E-04
  18  Prefactor     .10000E-03    2.8880        .19869E-06** at limit **
  19  Prefactor     4.5643        22.202       -.63217E-05   -.24375E-04
  20  Prefactor     .10000E-03    2.9805       -.68118E-06** at limit **
  21  Normalizat    1.4769        .19128        .31261E-05   -.52988E-03
  22  Prefactor     .56675        .13833        .24183E-05   -.27269E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.7397
  norm       = 7.72248
  Prefactor  = 18.7132
  Prefactor  = 33.1793
  Prefactor  = 0.000100004
  norm       = 23.4889
  norm       = 43.8086
  Prefactor  = 3.11776
  Prefactor  = 12.9583
  norm       = 0.731013
  Prefactor  = 0.000100003
  Prefactor  = 22.2388
  Prefactor  = 3.23141
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 33.2659
  Prefactor  = 0.0001
  Prefactor  = 4.56428
  Prefactor  = 0.0001
  Normalizat = 1.47686
  Prefactor  = 0.566748
 **********
 **   18 **HESSE 
 **********

 FCN=   6371.808     FROM HESSE     STATUS=OK           340 CALLS     2701 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.740        13.395        .97894E-04   -1.4889    
   2  norm          7.7225        8.1382        .14432E-03   -1.5152    
   3  Prefactor     18.713        57.761        .92474E-04   -1.4843    
   4  Prefactor     33.179        26.507        .69564E-04   -1.4555    
   5  Prefactor     .10000E-03    40.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          23.489        13.873        .82652E-04   -1.4738    
   7  norm          43.809        69.114        .60572E-04   -1.4383    
   8  Prefactor     3.1178        3.4994        .15223E-03   -1.5355    
   9  Prefactor     12.958        38.198        .11092E-03   -1.4988    
  10  norm          .73101        .50720        .45983E-04   -1.5537    
  11  Prefactor     .10000E-03    99.152        .21256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     22.239        34.756        .84926E-04   -1.4764    
  13  Prefactor     3.2314        7.4288        .22536E-03   -1.5348    
  14  Prefactor     .10000E-03    29.622        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .62561        .61548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .51199        .10979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     33.266        24.873        .69476E-04   -1.4554    
  18  Prefactor     .10000E-03    2.8934        .13248E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.5643        22.578        .18837E-03   -1.5281    
  20  Prefactor     .10000E-03    9.3299        .26695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.4769        .22386        .23485E-03   -.78431    
  22  Prefactor     .56675        .16014        .26913E-03   -1.0901    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.02022e-09
Minuit parameter uncertainties:
  1  13.397
  2  8.13935
  3  57.9346
  4  26.5161
  5  0.000836961
  6  13.8753
  7  69.241
  8  3.49966
  9  38.2697
  10  0.507207
  11  0.00103916
  12  34.7877
  13  7.43088
  14  4.76029e-06
  15  1.10182e-06
  16  3.3309e-06
  17  24.8807
  18  7.98137e-06
  19  20.3149
  20  7.24494e-05
  21  0.224012
  22  0.160264
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.224e+01  3.479e+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:  5.667e-01  1.603e-01  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.477e+00  2.240e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.54
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 1.09e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411894/likelihoodResults_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.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) = 6370.29280007
delta logL = 1.51531866868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6370.19971483
delta logL = 1.60840390516

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.0391       1.0000         .10000E-03   10000.    
     2 'Index     '    3.8414       1.0000          .0000       10.000    
     3 'Normalizat'    1.3520       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .62458       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=   6370.200     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      271 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.0314        7.8204        .99854E-02    .30971E-03
   2  Index         3.8437        1.5754        .68107E-01    .17268E-03
   3  Normalizat    1.3524        .53316E-01    .54982E-01   -.60597E-04
   4  Prefactor     .62454        .39586E-01    .41388E-01    .53730E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.03138
  Index      = 3.84372
  Normalizat = 1.35242
  Prefactor  = 0.624537
 **********
 **   18 **HESSE 
 **********

 FCN=   6370.200     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      302 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.0314        16.102        .44941E-04   -1.5505    
   2  Index         3.8437        2.5705        .26479E-02   -.23337    
   3  Normalizat    1.3524        .20159        .24311E-03   -.82015    
   4  Prefactor     .62454        .14824        .25694E-03   -1.0656    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.11682e-10
Minuit parameter uncertainties:
  1  8.15262
  2  2.70827
  3  0.20171
  4  0.148335
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411894': 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) = 6370.19970818
delta logL = 1.60841056178

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.031e+00  8.153e+00  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  3.844e+00  2.708e+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:  6.245e-01  1.483e-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.352e+00  2.017e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.99
Ra Dec: 124.695 31.886
Photon Index (Free Index): 3.84 +/- 2.71
Photon Flux (Free Index): 1.32e-07 +/- 8.01e-08
Energy Flux (Free Index): 2.03e-05 +/- 1.36e-05

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/411894/cmap_HighResolution_505526401_505785601_4FGL_J0818.7+3153_daily_bin1027.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.27e-03', comment='SUCCESS', energy_flux2='2.03e-05', dlogl='1.61e+00', photon_flux2='1.32e-07', job_status='DONE', time_completed='2021-08-29 17:29:17.004471', photon_index_error2='2.71', photon_index2='3.84', ts='0.54', fit_tolerance='1e-08', GAL='0.57', photon_index_error='0.00', photon_flux_upper_limit='1.09e-07', energy_flux_error2='1.36e-05', EG='1.48', time_epoch_completed='1630283357.0', return_code='0', job_id='411894', GAL2='0.62', EG2='1.35', return_code2='102', photon_flux_error2='8.01e-08', ts2='3.99', photon_index='2.13' WHERE bin_id='1027' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:29:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 411894: <4FGL_J0818.7+3153_daily_bin1027> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1027 124.695 31.8862 505526401 505785601 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 :                                   661.19 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             249.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            820 sec.

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

