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


Performing analysis on: 4FGL_J0818.7+3153_daily_bin1332
RA = 124.695, Dec = 31.8862
tmin = 584582401, tmax = 584841601
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='413460', job_status='RUN', time_executed='2021-08-29 17:25:26.749324', time_epoch_executed='1630283126.75' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='1332'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/413460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/413460/ft1_4FGL_J0818.7+3153_daily_bin1332.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/413460/ft1_4FGL_J0818.7+3153_daily_bin1332.fits outfile=/scratch/kocevski/413460/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin1332.fits ra=124.695 dec=31.8862 rad=12.0 tmin=584582401.0 tmax=584841601.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 7.03
user 2.63
sys 4.35

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits" evtable="EVENTS" scfile=/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits sctable="SC_DATA" outfile=/scratch/kocevski/413460/ltcube_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.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/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits
.....................!
real 16.92
user 11.80
sys 5.07

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits sctable="SC_DATA" expcube=/scratch/kocevski/413460/ltcube_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.fits outfile=/scratch/kocevski/413460/expmap_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.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/413460/ltcube_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.fits
.....................!
real 195.79
user 185.74
sys 9.53

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/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits scfile=/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits outfile=/scratch/kocevski/413460/cmap_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.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.80
user 0.40
sys 4.34

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits scfile=/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits outfile=/scratch/kocevski/413460/cmap_HighResolution_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.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.87
user 0.39
sys 4.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits evtable="EVENTS" scfile=/scratch/kocevski/413460/ft2_4FGL_J0818.7+3153_daily_bin1332.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/413460/Model_4FGL_J0818.7+3153_daily_bin1332.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/413460/ft1_filtered_4FGL_J0818.7+3153_daily_bin1332.fits........................!
real 22.27
user 14.10
sys 7.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63461E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    10000.       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     4 'Prefactor '    9999.9       1.0000         .10000E-03   10000.    
     5 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     6 'norm      '    9999.8       1.0000         .10000E-03   10000.    
     7 'norm      '    .35302E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .99036E-03   1.0000         .10000E-03   10000.    
    10 'norm      '   10000.0       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .24451E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .63471E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '   10000.0       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10437E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    577.07       1.0000         .10000E-03   10000.    
    16 'norm      '    .10059E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .27214E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    121.31       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    22 'Prefactor '    .76846       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=   254.6856     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2669 TOTAL
                     EDM=   .68E-12  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    241.43       -.21571E-03** at limit **
   2  norm         10000.0        6230.4        .75932E-03** at limit **
   3  Prefactor    10000.0        9998.5        .48655E-02** at limit **
   4  Prefactor    10000.0        9567.9        .51606E-02** at limit **
   5  Prefactor    10000.0        9993.5        .38470E-02** at limit **
   6  norm         10000.0        8683.0        .73536E-02** at limit **
   7  norm          .10000E-03    1436.9        .73524E-04** at limit **
   8  Prefactor    10000.0        7211.3        .10672E-02** at limit **
   9  Prefactor     .10000E-03    1566.6        .70017E-04** at limit **
  10  norm         10000.0        754.11       -.58990E-03** at limit **
  11  Prefactor     .10000E-03    847.59        .53532E-03** at limit **
  12  Prefactor     .10000E-03    644.60        .32871E-03** at limit **
  13  Prefactor    10000.0        7469.5        .10500E-02** at limit **
  14  Prefactor     .10000E-03    132.47        .10217E-04** at limit **
  15  Prefactor     576.39        8038.5       -.28800E-03    .59174E-07
  16  norm          .10000E-03    5.5860       -.33086E-07** at limit **
  17  Prefactor     .10000E-03    7917.5       -.24986E-02** at limit **
  18  Prefactor     .10000E-03    19.063       -.32194E-06** at limit **
  19  Prefactor     121.24        84.737        .55836E-05    .10044E-05
  20  Prefactor     .10000E-03    6.0717        .27203E-07** at limit **
  21  Normalizat    .10000E-01    .24751       -.30228E-06** at limit **
  22  Prefactor     .76840        .37914       -.12434E-05   -.31801E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10000
  Prefactor  = 0.0001
  Prefactor  = 576.394
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 121.242
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.768398
 **********
 **   18 **HESSE 
 **********

 FCN=   254.6856     FROM HESSE     STATUS=OK           324 CALLS     2993 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    241.43        .21034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm         10000.0        6230.4        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor    10000.0        9998.5        .18732E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor    10000.0        9567.9        .18894E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor    10000.0        9993.5        .18481E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm         10000.0        8682.9        .20095E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1436.9        .21320E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor    10000.0        7211.2        .18728E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    1566.6        .20769E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm         10000.0        754.10        .20095E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    847.61        .20040E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    644.60        .21034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor    10000.0        7469.4        .18941E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    132.48        .17995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     576.39        8043.1        .85768E-04   -1.0859    
  16  norm          .10000E-03    5.6406        .36864E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7917.5        .18317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    19.066        .68133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     121.24        84.846        .36539E-04   -1.3501    
  20  Prefactor     .10000E-03    6.0802        .38439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .10000E-01    .24759        .24642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .76840        .37936        .21261E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.34433e-12
Minuit parameter uncertainties:
  1  2.33023e-06
  2  0.000247488
  3  0.00112511
  4  0.000997327
  5  0.000501632
  6  0.00218218
  7  6.30004e-06
  8  0.0006153
  9  0.000199761
  10  0.000480843
  11  0.000105503
  12  4.7357e-05
  13  0.000872746
  14  3.25076e-05
  15  5581.06
  16  1.03174e-05
  17  0.00144196
  18  7.81316e-06
  19  84.9315
  20  3.04781e-06
  21  3.70129e-09
  22  0.380659
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  4.736e-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:  7.684e-01  3.807e-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.000e-02  3.701e-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: 4.19e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.18e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/413460/likelihoodResults_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.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) = 254.685651225
delta logL = -7.24102520167e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 254.685651211
delta logL = -7.22686081644e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96246E-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 '    .76840       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=   254.6856     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      198 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    876.32        .90724E-02** at limit **
   2  Index         2.0958        6.0095        .50000        .45195E-06
   3  Normalizat    .10000E-01    .64356E-03    .32094E-01** at limit **
   4  Prefactor     .76840        .18445E-01    .43305E-01   -.65034E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.09577
  Normalizat = 0.01
  Prefactor  = 0.768398
 **********
 **   18 **HESSE 
 **********

 FCN=   254.6856     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      229 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6925.7        .18145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0958        8.9520        .50000       -.61977    
   3  Normalizat    .10000E-01    .32320E-02    .24642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .76840        .41307E-01    .21261E-03   -1.0090    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.26185e-08
Minuit parameter uncertainties:
  1  0.00377397
  2  1602.22
  3  6.07822e-09
  4  0.0413087
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/413460': 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) = 254.68564398
delta logL = 4.48608261649e-09

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  1.000e-04  3.774e-03  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.096e+00  1.602e+03  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:  7.684e-01  4.131e-02  0.000e+00  1.000e+01 ( 1.000e+00)
584        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
585        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
582   Normalization:  1.000e-02  6.078e-09  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/413460/cmap_HighResolution_584582401_584841601_4FGL_J0818.7+3153_daily_bin1332.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.18e-01', job_status='DONE', photon_flux_upper_limit='4.19e-06', time_completed='2021-08-29 17:32:11.792625', job_id='413460', GAL2='0.77', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1630283531.79', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.77', dlogl='4.49e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.13' WHERE bin_id='1332' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:32:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0241>
Subject: Job 413460: <4FGL_J0818.7+3153_daily_bin1332> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin1332 124.695 31.8862 584582401 584841601 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 :                                   464.29 sec.
    Max Memory :                                 1188 MB
    Average Memory :                             178.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            706 sec.

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

