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


Performing analysis on: 4FGL_J1813.5+3144_daily_bin678
RA = 273.387, Dec = 31.7497
tmin = 415065601, tmax = 415324801
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='684363', job_status='RUN', time_executed='2021-09-19 22:05:37.842191', time_epoch_executed='1632114337.84' WHERE source_name='4FGL J1813.5+3144' and cadence='daily' and bin_id='678'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/684363

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/684363/ft1_4FGL_J1813.5+3144_daily_bin678.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/684363/ft1_4FGL_J1813.5+3144_daily_bin678.fits outfile=/scratch/kocevski/684363/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin678.fits ra=273.387 dec=31.7497 rad=12.0 tmin=415065601.0 tmax=415324801.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.67
user 3.44
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.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/684363/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin678.fits evtable="EVENTS" outfile="/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.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.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits" evtable="EVENTS" scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits sctable="SC_DATA" outfile=/scratch/kocevski/684363/ltcube_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.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/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits
.....................!
real 11.92
user 11.56
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits sctable="SC_DATA" expcube=/scratch/kocevski/684363/ltcube_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits outfile=/scratch/kocevski/684363/expmap_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.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/684363/ltcube_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits
.....................!
real 190.37
user 185.13
sys 4.67

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 212 point sources and 0 extended sources

Setting source of interest to:
4FGL J1813.5+3144 @ 273.387 31.7497

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits outfile=/scratch/kocevski/684363/cmap_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.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=273.387 yref=31.7497 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.55
user 0.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits outfile=/scratch/kocevski/684363/cmap_HighResolution_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.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=273.387 yref=31.7497 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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits evtable="EVENTS" scfile=/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/684363/Model_4FGL_J1813.5+3144_daily_bin678.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/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits...................................!
real 17.01
user 15.69
sys 1.20

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits', '/scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits', expMap='/scratch/kocevski/684363/expmap_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits', expCube='/scratch/kocevski/684363/ltcube_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/684363/Model_4FGL_J1813.5+3144_daily_bin678.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1813.5+3144'

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.997e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/684363/ft1_filtered_4FGL_J1813.5+3144_daily_bin678.fits
Spacecraft file(s): /scratch/kocevski/684363/ft2_4FGL_J1813.5+3144_daily_bin678.fits
Exposure map: /scratch/kocevski/684363/expmap_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits
Exposure cube: /scratch/kocevski/684363/ltcube_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/684363/Model_4FGL_J1813.5+3144_daily_bin678.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) = 441.705850533

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17115E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .22168E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11948E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15768E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10497E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .35655E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    94.078       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.170       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .97869E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    10.440       1.0000         .10000E-03   10000.    
    20 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    33.202       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10791E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .10018E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .63930       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   441.5774     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     3301 TOTAL
                     EDM=   .19E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    872.77       -.12592E-06** at limit **
   2  norm          .10000E-03    109.60       -.78430E-07** at limit **
   3  Prefactor     .10000E-03    1370.1       -.38020E-06** at limit **
   4  Prefactor     .10000E-03    1150.5       -.83397E-06** at limit **
   5  Prefactor     .10000E-03    230.17       -.81984E-07** at limit **
   6  Prefactor     .10000E-03    230.39       -.37233E-07** at limit **
   7  Prefactor     .10000E-03    260.75        .12126E-07** at limit **
   8  Prefactor     .10000E-03    457.79        .21554E-07** at limit **
   9  Prefactor     .10000E-03    89.425        .23105E-06** at limit **
  10  norm          .10000E-03    30.866       -.30501E-07** at limit **
  11  norm          .10000E-03    1234.3       -.17858E-06** at limit **
  12  Prefactor     .10001E-03    291.89       -.99769E-06** at limit **
  13  norm          .10000E-03    77.031       -.45644E-07** at limit **
  14  Prefactor     93.967        119.59        .24612E-06   -.14982E-04
  15  Prefactor     26.269        744.56        .11761E-05    .13030E-05
  16  norm          .10000E-03    238.51       -.26423E-07** at limit **
  17  Prefactor     .10000E-03    34.391       -.16007E-07** at limit **
  18  norm          .10000E-03    630.81       -.13255E-07** at limit **
  19  norm          10.442        33.053       -.12821E-06    .48128E-05
  20  norm          .10000E-03    17.940       -.23392E-07** at limit **
  21  Prefactor     33.180        53.216       -.26642E-06    .14971E-04
  22  Prefactor     .10000E-03    384.22        .99209E-07** at limit **
  23  Prefactor     .10000E-03    319.22        .10843E-06** at limit **
  24  Normalizat    .10000E-01    1.6422       -.27214E-04** at limit **
  25  Prefactor     .63934        .12964        .24425E-05    .34245E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100008
  norm       = 0.0001
  Prefactor  = 93.9667
  Prefactor  = 26.2689
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 10.4425
  norm       = 0.0001
  Prefactor  = 33.1799
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 0.63934
 **********
 **   18 **HESSE 
 **********

 FCN=   441.5774     FROM HESSE     STATUS=OK           411 CALLS     3712 TOTAL
                     EDM=   .52E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    872.75        .20364E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    109.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1369.9        .20134E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    1149.7        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    230.16        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    230.39        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    260.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    457.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    89.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    30.866        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1234.3        .21315E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10001E-03    291.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    77.044        .18044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     93.967        119.48        .20718E-03   -1.3766    
  15  Prefactor     26.269        740.45        .78308E-04   -1.4682    
  16  norm          .10000E-03    238.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    34.391        .12048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    630.80        .20777E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          10.442        33.023        .12401E-03   -1.5062    
  20  norm          .10000E-03    17.944        .86852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     33.180        53.386        .69543E-04   -1.4555    
  22  Prefactor     .10000E-03    384.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    319.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10000E-01    7.7586        .14396E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .63934        .13576        .10563E-03   -1.0595    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.19635e-11
Minuit parameter uncertainties:
  1  0.000357393
  2  7.52283e-05
  3  0.00140286
  4  0.00279413
  5  2.01706e-05
  6  8.2008e-05
  7  0.000100629
  8  0.000120054
  9  0.000126614
  10  2.56711e-05
  11  0.000129605
  12  0.00297696
  13  2.19802e-05
  14  119.786
  15  282.886
  16  2.16764e-05
  17  8.19344e-06
  18  2.04808e-06
  19  33.0811
  20  4.44933e-06
  21  53.4628
  22  0.00020671
  23  0.000192759
  24  5.51649e-05
  25  0.135831
Done.

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

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  9.397e+01  1.198e+02  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.169e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  6.393e-01  1.358e-01  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.000e-02  5.516e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.23
Ra Dec: 273.387 31.750
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 6.99e-07 +/- 8.91e-07
Energy Flux (Fixed Index): 3.33e-04 +/- 4.25e-04

TS (Fixed Index): 3.23
Ra Dec: 273.387 31.750
Photon Flux Upper Limit: 2.68e-06 ph cm-2 s-1
Energy Flux Upper Limit: 2.04e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/684363/likelihoodResults_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.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) = 440.509824614
delta logL = 1.06755341746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 439.917792938
delta logL = 1.65958509429

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .99478E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    5.0653       1.0000          .0000       10.000    
     3 'Normalizat'    .10024E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .63602       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7200E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   439.9178     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      332 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10195        3.3583        .95088E-03    .10418E-01
   2  Index         5.0554        3.6597        .20138E-01    .39497E-03
   3  Normalizat    .10000E-01    .99358        .32094    ** at limit **
   4  Prefactor     .63571        .12962        .23783E-01   -.52593E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.101947
  Index      = 5.05537
  Normalizat = 0.01
  Prefactor  = 0.635713
 **********
 **   18 **HESSE 
 **********

 FCN=   439.9178     FROM HESSE     STATUS=OK            25 CALLS      357 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10195        1.2376        .50673E-05   -1.5644    
   2  Index         5.0554        2.3957        .11353E-03    .11075E-01
   3  Normalizat    .10000E-01    6.2140        .12686E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .63571        .12529        .10512E-03   -1.0610    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.4103e-09
Minuit parameter uncertainties:
  1  0.710077
  2  2.49844
  3  5.94635e-05
  4  0.125342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/684363': 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) = 439.917767982
delta logL = 1.65961004974

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.019e-01  7.101e-01  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  5.055e+00  2.498e+00  0.000e+00  1.000e+01 (-1.000e+00)
347        Scale:  2.267e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  6.357e-01  1.253e-01  0.000e+00  1.000e+01 ( 1.000e+00)
718        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
719        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
716   Normalization:  1.000e-02  5.946e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.58
Ra Dec: 273.387 31.750
Photon Index (Free Index): 5.06 +/- 2.50
Photon Flux (Free Index): 1.80e-06 +/- 1.46e-06
Energy Flux (Free Index): 2.38e-04 +/- 1.84e-04

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/684363/cmap_HighResolution_415065601_415324801_4FGL_J1813.5+3144_daily_bin678.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.04e-01', comment='SUCCESS', photon_flux='6.99e-07', energy_flux2='2.38e-04', photon_flux_error='8.91e-07', dlogl='1.66e+00', energy_flux='3.33e-04', photon_flux2='1.80e-06', job_status='DONE', time_completed='2021-09-19 22:11:42.171398', photon_index_error2='2.50', photon_index2='5.06', ts='3.23', fit_tolerance='1e-08', GAL='0.64', photon_index_error='0.00', photon_flux_upper_limit='2.68e-06', energy_flux_error2='1.84e-04', EG='0.01', time_epoch_completed='1632114702.17', return_code='0', job_id='684363', GAL2='0.64', EG2='0.01', return_code2='0', energy_flux_error='4.25e-04', photon_flux_error2='1.46e-06', ts2='6.58', photon_index='2.17' WHERE bin_id='678' AND source_name='4FGL J1813.5+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 22:11:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 684363: <4FGL_J1813.5+3144_daily_bin678> in cluster <slac> Done

Job <4FGL_J1813.5+3144_daily_bin678> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Sep 19 22:05:19 2021
Job was executed on host(s) <bullet0101>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 22:05:20 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Sep 19 22:05:20 2021
Terminated at Sun Sep 19 22:11:42 2021
Results reported at Sun Sep 19 22:11:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1813.5+3144_daily_bin678 273.387 31.7497 415065601 415324801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1813.5+3144 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   362.24 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             329.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   382 sec.
    Turnaround time :                            383 sec.

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

