/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 231 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0818.7+3153_daily_bin15
RA = 124.695, Dec = 31.8862
tmin = 243216001, tmax = 243475201
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='405165', job_status='RUN', time_executed='2021-08-29 17:00:16.220384', time_epoch_executed='1630281616.22' WHERE source_name='4FGL J0818.7+3153' and cadence='daily' and bin_id='15'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/405165

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/405165/ft1_4FGL_J0818.7+3153_daily_bin15.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/405165/ft1_4FGL_J0818.7+3153_daily_bin15.fits outfile=/scratch/kocevski/405165/ft1_filteredMKT_4FGL_J0818.7+3153_daily_bin15.fits ra=124.695 dec=31.8862 rad=12.0 tmin=243216001.0 tmax=243475201.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 1.38
user 1.20
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits" evtable="EVENTS" scfile=/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits sctable="SC_DATA" outfile=/scratch/kocevski/405165/ltcube_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.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/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits
.....................!
real 13.48
user 12.96
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits sctable="SC_DATA" expcube=/scratch/kocevski/405165/ltcube_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.fits outfile=/scratch/kocevski/405165/expmap_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.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/405165/ltcube_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.fits
.....................!
real 192.83
user 185.80
sys 5.14

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/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits scfile=/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits outfile=/scratch/kocevski/405165/cmap_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.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.53
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits scfile=/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits outfile=/scratch/kocevski/405165/cmap_HighResolution_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.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.54
user 0.36
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits evtable="EVENTS" scfile=/scratch/kocevski/405165/ft2_4FGL_J0818.7+3153_daily_bin15.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/405165/Model_4FGL_J0818.7+3153_daily_bin15.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/405165/ft1_filtered_4FGL_J0818.7+3153_daily_bin15.fits.....................!
real 78.53
user 76.25
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.7039       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8742       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10832E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.0273       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.0829       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.4222       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    20.642       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11014E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10546E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .86990       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10448E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.4667       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .99438       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .93411       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=   8745.690     FROM MIGRAD    STATUS=CONVERGED    495 CALLS     2058 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.7050        8.7937        .46385E-02    .16301E-03
   2  norm          1.8734        2.8501        .76045E-02    .10282E-02
   3  Prefactor     .10000E-03    13.289        .90712E-02** at limit **
   4  Prefactor     5.0276        9.8450        .44836E-02    .11635E-03
   5  Prefactor     .10000E-03    10.359        .90712E-02** at limit **
   6  norm          .10000E-03    3.2573        .90712E-02** at limit **
   7  norm          .10020E-03    28.319        .90712E-02** at limit **
   8  Prefactor     4.0821        3.9236        .49882E-02    .40709E-03
   9  Prefactor     .10000E-03    5.9048        .90712E-02** at limit **
  10  norm          2.4216        .71849        .65745E-02    .10071E-02
  11  Prefactor     .10000E-03    6.7273        .90712E-02** at limit **
  12  Prefactor     20.639        17.844        .22040E-02   -.98183E-04
  13  Prefactor     .10001E-03    12.770        .90780E-01** at limit **
  14  Prefactor     .10007E-03    24.258        .90712E-02** at limit **
  15  Prefactor     .10000E-03    1.4095        .58284E-01** at limit **
  16  norm          .87045        .95473        .12698E-01    .18457E-02
  17  Prefactor     .10006E-03    36.906        .90712E-02** at limit **
  18  Prefactor     .10000E-03    4.9348        .90712E-02** at limit **
  19  Prefactor     9.4737        12.174        .32562E-02    .12824E-02
  20  Prefactor     .10000E-03    .85089        .90712E-02** at limit **
  21  Normalizat    .99439        .15024        .46096E-01    .19464E-05
  22  Prefactor     .93407        .11635        .45438E-01    .64381E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.70503
  norm       = 1.87341
  Prefactor  = 0.000100001
  Prefactor  = 5.02762
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100205
  Prefactor  = 4.0821
  Prefactor  = 0.0001
  norm       = 2.42157
  Prefactor  = 0.0001
  Prefactor  = 20.639
  Prefactor  = 0.000100013
  Prefactor  = 0.000100071
  Prefactor  = 0.0001
  norm       = 0.870454
  Prefactor  = 0.000100058
  Prefactor  = 0.0001
  Prefactor  = 9.47374
  Prefactor  = 0.0001
  Normalizat = 0.994387
  Prefactor  = 0.934074
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.690     FROM HESSE     STATUS=OK           344 CALLS     2402 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.7050        8.7825        .18554E-03   -1.5274    
   2  norm          1.8734        2.8168        .18156E-03   -1.5434    
   3  Prefactor     .10000E-03    13.309        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.0276        9.7927        .17934E-03   -1.5259    
   5  Prefactor     .10000E-03    10.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.2777        .16481E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10020E-03    28.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.0821        3.8623        .16951E-03   -1.5304    
   9  Prefactor     .10000E-03    5.9068        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.4216        .69674        .39829E-04   -1.5397    
  11  Prefactor     .10000E-03    6.7293        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     20.639        17.854        .88159E-04   -1.4799    
  13  Prefactor     .10001E-03    81.749        .56675E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10007E-03    24.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.9237        .19548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .87045        .92211        .90251E-04   -1.5521    
  17  Prefactor     .10006E-03    37.086        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.9956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     9.4737        12.194        .65125E-03   -1.5092    
  20  Prefactor     .10000E-03    .85619        .84239E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .99439        .17194        .25653E-03   -.93219    
  22  Prefactor     .93407        .13542        .21077E-03   -.94960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19433e-08
Minuit parameter uncertainties:
  1  8.78492
  2  2.81702
  3  0.000190101
  4  9.79585
  5  5.46137e-05
  6  1.46988e-05
  7  0.0048171
  8  3.86251
  9  7.33678e-06
  10  0.696741
  11  2.36051e-05
  12  17.8587
  13  0.00202638
  14  0.00263866
  15  1.35184e-05
  16  0.922127
  17  0.0029334
  18  3.02607e-05
  19  12.1972
  20  2.13172e-06
  21  0.172038
  22  0.135466
Done.

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

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.064e+01  1.786e+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:  9.341e-01  1.355e-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.944e-01  1.720e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.51
Ra Dec: 124.695 31.886
Photon Index (Fixed Index): 2.13 +/- 0.00
Photon Flux (Fixed Index): 2.22e-08 +/- 1.92e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 9.81e-06

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) = 8745.68608959
delta logL = 0.0036262715621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8745.68326703
delta logL = 0.00644883122368

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.363       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0176       1.0000          .0000       10.000    
     3 'Normalizat'    .99894       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93258       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8745.683     FROM MIGRAD    STATUS=FAILED        96 CALLS      260 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.376        26.903        .42351E-03    .91968E-04
   2  Index         2.0176        1.1422        .14617E-01    .62951E-03
   3  Normalizat    .99884        .17296        .25602E-03   -.13419E-03
   4  Prefactor     .93260        .13501        .21093E-03   -.10392E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8745.683     FROM SIMPLEX   STATUS=UNCHANGED     76 CALLS      336 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.376        26.903        .22338E-03   -1.4762    
   2  Index         2.0176        1.1422        .13495E-02   -.63911    
   3  Normalizat    .99884        .17296        .22666E-03   -.93069    
   4  Prefactor     .93260        .13501        .17031E-03   -.95011    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8745.683     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      374 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.375        24.527        .16940E-04   -.24160E-05
   2  Index         2.0176        1.0420        .29235E-02    .15477E-05
   3  Normalizat    .99884        .17171        .10241E-04   -.32860E-04
   4  Prefactor     .93260        .13491        .84371E-05   -.25871E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.3755
  Index      = 2.01758
  Normalizat = 0.998844
  Prefactor  = 0.932596
 **********
 **   18 **HESSE 
 **********

 FCN=   8745.683     FROM HESSE     STATUS=OK            25 CALLS      399 TOTAL
                     EDM=   .14E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.375        24.145        .33881E-05   -1.4762    
   2  Index         2.0176        1.0247        .11694E-03   -.63911    
   3  Normalizat    .99884        .17174        .20482E-05   -.93069    
   4  Prefactor     .93260        .13511        .16874E-05   -.95011    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.40635e-12
Minuit parameter uncertainties:
  1  24.1554
  2  1.03613
  3  0.171831
  4  0.135162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/405165': 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) = 8745.68326645
delta logL = 0.00644941009705

Extracting fit parameters...

4FGL J0818.7+3153
   Spectrum: PowerLaw
301    Prefactor:  2.238e+01  2.416e+01  1.000e-04  1.000e+04 ( 1.000e-14)
302        Index:  2.018e+00  1.036e+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:  9.326e-01  1.352e-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.988e-01  1.718e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.52
Ra Dec: 124.695 31.886
Photon Index (Free Index): 2.02 +/- 1.04
Photon Flux (Free Index): 1.82e-08 +/- 3.72e-08
Energy Flux (Free Index): 1.20e-05 +/- 1.34e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/405165/cmap_HighResolution_243216001_243475201_4FGL_J0818.7+3153_daily_bin15.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.22e-08', energy_flux2='1.20e-05', photon_flux_error='1.92e-08', dlogl='6.45e-03', energy_flux='1.13e-05', photon_flux2='1.82e-08', job_status='DONE', time_completed='2021-08-29 17:11:29.691588', photon_index_error2='1.04', photon_index2='2.02', ts='5.51', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', energy_flux_error2='1.34e-05', EG='0.99', time_epoch_completed='1630282289.69', return_code='0', job_id='405165', GAL2='0.93', EG2='1.00', return_code2='0', energy_flux_error='9.81e-06', photon_flux_error2='3.72e-08', ts2='5.52', photon_index='2.13' WHERE bin_id='15' AND source_name='4FGL J0818.7+3153' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 17:11:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0085>
Subject: Job 405165: <4FGL_J0818.7+3153_daily_bin15> in cluster <slac> Done

Job <4FGL_J0818.7+3153_daily_bin15> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Aug 29 16:56:09 2021
Job was executed on host(s) <bullet0085>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 16:56:11 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 16:56:11 2021
Terminated at Sun Aug 29 17:11:30 2021
Results reported at Sun Aug 29 17:11:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0818.7+3153_daily_bin15 124.695 31.8862 243216001 243475201 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 :                                   669.57 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             271.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            921 sec.

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

