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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin922
RA = 124.695, Dec = 31.8862
tmin = 478310401, tmax = 478569601
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='411736', job_status='RUN', time_executed='2021-08-29 17:15:58.859354', time_epoch_executed='1630282558.86' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='922'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/411736

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/411736/ft1_4FGL_J0818.7+3153_daily_bin922.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/411736/ft1_4FGL_J0818.7+3153_daily_bin922.fits outfile=/scratch/kocevski/411736/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin922.fits ra=124.695 dec=31.8862 rad=12.0 tmin=478310401.0 tmax=478569601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.69
user 3.28
sys 1.37

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits" evtable="EVENTS" scfile=/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits sctable="SC_DATA" outfile=/scratch/kocevski/411736/ltcube_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.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/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits
.....................!
real 14.20
user 12.51
sys 1.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits sctable="SC_DATA" expcube=/scratch/kocevski/411736/ltcube_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.fits outfile=/scratch/kocevski/411736/expmap_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.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/411736/ltcube_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.fits
.....................!
real 193.70
user 186.73
sys 5.97

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/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits scfile=/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits outfile=/scratch/kocevski/411736/cmap_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.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.70
user 0.39
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits scfile=/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits outfile=/scratch/kocevski/411736/cmap_HighResolution_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.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.68
user 0.39
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits evtable="EVENTS" scfile=/scratch/kocevski/411736/ft2_4FGL_J0818.7+3153_daily_bin922.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/411736/Model_4FGL_J0818.7+3153_daily_bin922.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/411736/ft1_filtered_4FGL_J0818.7+3153_daily_bin922.fits.....................!
real 65.10
user 61.86
sys 2.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.2153       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8496       1.0000         .10000E-03   10000.    
     3 'Prefactor '    77.737       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.7432       1.0000         .10000E-03   10000.    
     6 'norm      '    33.195       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25307E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.5952       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.868       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .51394       1.0000         .10000E-03   10000.    
    16 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    17.789       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .52629E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.9248       1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.9721       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1069       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .82564       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=   6434.363     FROM MIGRAD    STATUS=CONVERGED    494 CALLS     2484 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.2154        9.1900        .51377E-07   -.48639E-04
   2  norm          1.8489        3.5800       -.16984E-05   -.12976E-02
   3  Prefactor     77.709        53.319       -.30132E-04   -.49798E-03
   4  Prefactor     21.860        20.762       -.11841E-05   -.18589E-03
   5  Prefactor     2.7925        161.92        .19030E-03    .91451E-04
   6  norm          33.197        15.008        .28916E-06   -.40202E-04
   7  norm          .10000E-03    32.118        .24144E-04** at limit **
   8  Prefactor     .10000E-03    3.1071        .15259E-06** at limit **
   9  Prefactor     .10000E-03    25.492       -.24753E-04** at limit **
  10  norm          1.5951        .59852        .21649E-07    .16745E-03
  11  Prefactor     .10000E-03    12.442       -.44537E-05** at limit **
  12  Prefactor     14.869        16.097       -.45548E-07    .18037E-04
  13  Prefactor     .10000E-03    11.150        .19569E-05** at limit **
  14  Prefactor     .10000E-03    17.089        .89357E-05** at limit **
  15  Prefactor     .51256        2.0072       -.10299E-05   -.57736E-03
  16  norm          .10000E-03    .77821       -.21848E-08** at limit **
  17  Prefactor     17.792        17.670       -.10495E-06    .28416E-04
  18  Prefactor     .10008E-03    7.7313       -.72237E-06** at limit **
  19  Prefactor     6.9283        16.976       -.99302E-06   -.27448E-04
  20  Prefactor     3.9724        3.2053       -.20866E-06    .20824E-04
  21  Normalizat    1.1067        .18548        .32578E-05   -.26602E-03
  22  Prefactor     .82574        .13969       -.29110E-05    .71227E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.21542
  norm       = 1.84887
  Prefactor  = 77.7086
  Prefactor  = 21.8598
  Prefactor  = 2.79249
  norm       = 33.1967
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.59511
  Prefactor  = 0.0001
  Prefactor  = 14.869
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.512564
  norm       = 0.0001
  Prefactor  = 17.7917
  Prefactor  = 0.000100082
  Prefactor  = 6.92827
  Prefactor  = 3.97244
  Normalizat = 1.10665
  Prefactor  = 0.825738
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.363     FROM HESSE     STATUS=OK           352 CALLS     2836 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.2154        9.1830        .14933E-03   -1.5171    
   2  norm          1.8489        3.5185        .19188E-03   -1.5436    
   3  Prefactor     77.709        53.213        .45546E-04   -1.3943    
   4  Prefactor     21.860        20.654        .85670E-04   -1.4773    
   5  Prefactor     2.7925        160.37        .24581E-03   -1.5374    
   6  norm          33.197        14.995        .69550E-04   -1.4555    
   7  norm          .10000E-03    32.019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    6.8957        .26979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    25.450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.5951        .59536        .36477E-04   -1.5455    
  11  Prefactor     .10000E-03    12.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.869        16.095        .10387E-03   -1.4937    
  13  Prefactor     .10000E-03    11.261        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    17.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .51256        3.3367        .20691E-02   -1.5565    
  16  norm          .10000E-03    1.6055        .13346E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     17.792        17.650        .94960E-04   -1.4864    
  18  Prefactor     .10008E-03    83.269        .41617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.9283        17.033        .15246E-03   -1.5181    
  20  Prefactor     3.9724        3.2074        .12522E-03   -1.5309    
  21  Normalizat    1.1067        .21445        .25619E-03   -.89539    
  22  Prefactor     .82574        .16379        .22763E-03   -.98786    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.43614e-09
Minuit parameter uncertainties:
  1  9.18479
  2  3.51891
  3  53.2452
  4  20.6607
  5  42.4433
  6  14.9972
  7  1.54388e-06
  8  2.6119e-05
  9  3.28899e-06
  10  0.595359
  11  3.1306e-06
  12  16.1001
  13  4.38536e-05
  14  2.42091e-05
  15  2.61549
  16  3.24424e-06
  17  17.6547
  18  0.00523454
  19  17.0445
  20  3.20753
  21  0.214617
  22  0.163882
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.487e+01  1.610e+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:  8.257e-01  1.639e-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.107e+00  2.146e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.33
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 1.60e-08 +/- 1.73e-08
Energy Flux (Fixed Index): 8.17e-06 +/- 8.85e-06

TS (Fixed Index): 2.33
Ra Dec: 124.695 31.886
Photon Flux Upper Limit: 6.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/411736/likelihoodResults_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.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) = 6434.24664297
delta logL = 0.116498222438

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6434.24214329
delta logL = 0.12099791071

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.927       1.0000         .10000E-03   10000.    
     2 'Index     '    1.7934       1.0000          .0000       10.000    
     3 'Normalizat'    1.1105       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82467       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=   6434.242     FROM MIGRAD    STATUS=CONVERGED     64 CALLS      275 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.963        805.73        .20913E-02    .29137E-05
   2  Index         1.7957        5.8033        .22824        .53879E-04
   3  Normalizat    1.1104        .75829E-01    .57845E-01    .91018E-05
   4  Prefactor     .82455        .50450E-01    .44037E-01    .10779E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.9635
  Index      = 1.79571
  Normalizat = 1.11043
  Prefactor  = 0.824553
 **********
 **   18 **HESSE 
 **********

 FCN=   6434.242     FROM HESSE     STATUS=OK            33 CALLS      308 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.963        28.630        .83654E-04   -1.4749    
   2  Index         1.7957        .68276        .80839E-02   -.69562    
   3  Normalizat    1.1104        .20616        .25581E-03   -.89418    
   4  Prefactor     .82455        .16151        .22777E-03   -.98830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.258e-12
Minuit parameter uncertainties:
  1  28.6468
  2  0.686418
  3  0.20631
  4  0.161605
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/411736': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6434.24213097
delta logL = 0.121010223484

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.296e+01  2.865e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  1.796e+00  6.864e-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.246e-01  1.616e-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.110e+00  2.063e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.58
Ra Dec: 124.695 31.886
Photon Index (Free Index): 1.80 +/- 0.69
Photon Flux (Free Index): 1.14e-08 +/- 1.55e-08
Energy Flux (Free Index): 1.38e-05 +/- 2.27e-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/411736/cmap_HighResolution_478310401_478569601_4FGL_J0818.7+3153_daily_bin922.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', comment='SUCCESS', photon_flux='1.60e-08', energy_flux2='1.38e-05', photon_flux_error='1.73e-08', dlogl='1.21e-01', energy_flux='8.17e-06', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-08-29 17:27:37.069311', photon_index_error2='0.69', photon_index2='1.80', ts='2.33', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='6.86e-08', energy_flux_error2='2.27e-05', EG='1.11', time_epoch_completed='1630283257.07', return_code='0', job_id='411736', GAL2='0.82', EG2='1.11', return_code2='0', energy_flux_error='8.85e-06', photon_flux_error2='1.55e-08', ts2='2.58', photon_index='2.13' WHERE bin_id='922' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:27:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0216>
Subject: Job 411736: <4FGL_J0818.7+3153_daily_bin922> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin922 124.695 31.8862 478310401 478569601 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 :                                   712.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             291.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   729 sec.
    Turnaround time :                            732 sec.

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

