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


Performing analysis on: 4FGL_J1813.5+3144_daily_bin1239
RA = 273.387, Dec = 31.7497
tmin = 560476801, tmax = 560736001
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='688680', job_status='RUN', time_executed='2021-09-19 22:23:20.561570', time_epoch_executed='1632115400.56' WHERE source_name='4FGL J1813.5+3144' and cadence='daily' and bin_id='1239'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688680

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688680/ft1_4FGL_J1813.5+3144_daily_bin1239.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688680/ft1_4FGL_J1813.5+3144_daily_bin1239.fits outfile=/scratch/kocevski/688680/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin1239.fits ra=273.387 dec=31.7497 rad=12.0 tmin=560476801.0 tmax=560736001.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.79
user 3.52
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.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/688680/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin1239.fits evtable="EVENTS" outfile="/scratch/kocevski/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.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.50
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits" evtable="EVENTS" scfile=/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits sctable="SC_DATA" outfile=/scratch/kocevski/688680/ltcube_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.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/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits
.....................!
real 12.11
user 11.72
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits evtable="EVENTS" scfile=/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits sctable="SC_DATA" expcube=/scratch/kocevski/688680/ltcube_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits outfile=/scratch/kocevski/688680/expmap_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.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/688680/ltcube_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits
.....................!
real 190.61
user 184.99
sys 4.68

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/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits scfile=/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits outfile=/scratch/kocevski/688680/cmap_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.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.53
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits scfile=/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits outfile=/scratch/kocevski/688680/cmap_HighResolution_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.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.39
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits', '/scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits', expMap='/scratch/kocevski/688680/expmap_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits', expCube='/scratch/kocevski/688680/ltcube_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/688680/Model_4FGL_J1813.5+3144_daily_bin1239.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/688680/ft1_filtered_4FGL_J1813.5+3144_daily_bin1239.fits
Spacecraft file(s): /scratch/kocevski/688680/ft2_4FGL_J1813.5+3144_daily_bin1239.fits
Exposure map: /scratch/kocevski/688680/expmap_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits
Exposure cube: /scratch/kocevski/688680/ltcube_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/688680/Model_4FGL_J1813.5+3144_daily_bin1239.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) = 5156.7948588

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .35567       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.497       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.3864       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.3651       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    17.265       1.0000         .10000E-03   10000.    
    13 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.7806       1.0000         .10000E-03   10000.    
    15 'Prefactor '    83.662       1.0000         .10000E-03   10000.    
    16 'norm      '    32.929       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .28449E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10136       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    59.910       1.0000         .10000E-03   10000.    
    23 'Prefactor '    6.0916       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .66574       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0530       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=   5156.782     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2930 TOTAL
                     EDM=   .17E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.223       -.70527E-05** at limit **
   2  norm          .35660        5.4220       -.10020E-05   -.10010E-03
   3  Prefactor     .10000E-03    31.919        .11746E-04** at limit **
   4  Prefactor     .10000E-03    60.139        .14569E-04** at limit **
   5  Prefactor     13.497        18.293        .44676E-06   -.11974E-04
   6  Prefactor     .10001E-03    40.735       -.19250E-04** at limit **
   7  Prefactor     3.3987        76.036        .14848E-04   -.16731E-04
   8  Prefactor     .10000E-03    129.68       -.15464E-04** at limit **
   9  Prefactor     6.3656        7.7786       -.80675E-06    .32495E-04
  10  norm          .10000E-03    .81105       -.24799E-08** at limit **
  11  norm          .10000E-03    123.32        .58839E-05** at limit **
  12  Prefactor     17.264        11.160       -.22782E-06   -.77617E-03
  13  norm          .10000E-03    8.3284        .82656E-07** at limit **
  14  Prefactor     1.7817        5.5557       -.81176E-06   -.55854E-03
  15  Prefactor     83.662        36.420        .23680E-06    .14566E-03
  16  norm          32.920        31.372       -.21758E-05    .88235E-04
  17  Prefactor     .10000E-03    2.7645       -.12368E-07** at limit **
  18  norm          .10000E-03    27.293        .50737E-05** at limit **
  19  norm          .10000E-03    2.3067       -.77125E-06** at limit **
  20  norm          .95441E-01    1.6883       -.32322E-05    .13552E-02
  21  Prefactor     .10000E-03    6.3080        .31349E-07** at limit **
  22  Prefactor     59.952        98.491        .48224E-04    .17639E-03
  23  Prefactor     6.0923        51.935       -.27695E-05    .26423E-04
  24  Normalizat    .66574        .30193       -.48481E-05    .39645E-03
  25  Prefactor     1.0530        .11222        .15961E-06    .13097E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  norm       = 0.356602
  Prefactor  = 0.000100003
  Prefactor  = 0.000100004
  Prefactor  = 13.4971
  Prefactor  = 0.000100008
  Prefactor  = 3.39874
  Prefactor  = 0.0001
  Prefactor  = 6.36555
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 17.2645
  norm       = 0.0001
  Prefactor  = 1.78175
  Prefactor  = 83.6615
  norm       = 32.9203
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100002
  norm       = 0.0954406
  Prefactor  = 0.0001
  Prefactor  = 59.9525
  Prefactor  = 6.09225
  Normalizat = 0.665738
  Prefactor  = 1.05299
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.782     FROM HESSE     STATUS=OK           425 CALLS     3355 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .35660        17.362        .32093E-02   -1.5589    
   3  Prefactor     .10000E-03    31.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    59.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.497        18.285        .10903E-03   -1.4973    
   6  Prefactor     .10001E-03    40.402        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     3.3987        75.193        .21987E-03   -1.5339    
   8  Prefactor     .10000E-03    129.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.3656        7.7764        .15909E-03   -1.5203    
  10  norm          .10000E-03    .81265        .63148E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    123.55        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     17.264        11.186        .48195E-03   -1.4877    
  13  norm          .10000E-03    8.3651        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.7817        5.5173        .28058E-03   -1.5441    
  15  Prefactor     83.662        36.177        .43917E-04   -1.3876    
  16  norm          32.920        31.362        .69829E-04   -1.4560    
  17  Prefactor     .10000E-03    2.7690        .11659E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    27.269        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.763        .19347E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .95441E-01    14.493        .15109E-02   -1.5646    
  21  Prefactor     .10000E-03    6.3202        .17614E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     59.952        104.61        .51836E-04   -1.4158    
  23  Prefactor     6.0923        52.015        .16267E-03   -1.5214    
  24  Normalizat    .66574        .32668        .45761E-03   -1.0526    
  25  Prefactor     1.0530        .12416        .14663E-03   -.90983    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.57732e-08
Minuit parameter uncertainties:
  1  0.000359242
  2  4.97727
  3  0.000570026
  4  0.00100624
  5  18.2927
  6  0.00113749
  7  32.0178
  8  0.00028667
  9  7.7776
  10  1.03112e-07
  11  0.000442682
  12  11.1875
  13  1.60249e-06
  14  5.51886
  15  36.1861
  16  31.378
  17  2.05431e-06
  18  0.000228136
  19  0.000302415
  20  2.35152
  21  6.35377e-06
  22  104.929
  23  35.6443
  24  0.327634
  25  0.124189
Done.

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

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.782e+00  5.519e+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

GAL_V02
   Spectrum: PowerLaw
717    Prefactor:  1.053e+00  1.242e-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:  6.657e-01  3.276e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.13
Ra Dec: 273.387 31.750
Photon Flux Upper Limit: 1.26e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/688680/likelihoodResults_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.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) = 5156.78115712
delta logL = 0.000976627031378

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5156.78072684
delta logL = 0.0014069017152

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.6176       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2514       1.0000          .0000       10.000    
     3 'Normalizat'    .66458       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0532       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=   5156.781     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      210 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.6207        142.75        .83211E-02    .67817E-03
   2  Index         2.2490        3.1636        .24518        .24805E-04
   3  Normalizat    .66469        .50092E-01    .10331        .31098E-04
   4  Prefactor     1.0532        .19284E-01    .39726E-01   -.23122E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.6207
  Index      = 2.24896
  Normalizat = 0.66469
  Prefactor  = 1.05316
 **********
 **   18 **HESSE 
 **********

 FCN=   5156.781     FROM HESSE     STATUS=OK            33 CALLS      243 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.6207        6.6501        .26357E-03   -1.5453    
   2  Index         2.2490        1.6580        .94561E-02   -.58261    
   3  Normalizat    .66469        .30584        .45793E-03   -1.0530    
   4  Prefactor     1.0532        .12180        .14662E-03   -.90978    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.5268e-09
Minuit parameter uncertainties:
  1  6.56697
  2  1.70497
  3  0.306625
  4  0.121836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688680': 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) = 5156.78072541
delta logL = 0.00140833112346

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  1.621e+00  6.567e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.249e+00  1.705e+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:  1.053e+00  1.218e-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:  6.647e-01  3.066e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.13
Ra Dec: 273.387 31.750

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/688680/cmap_HighResolution_560476801_560736001_4FGL_J1813.5+3144_daily_bin1239.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.58e-03', job_status='DONE', photon_flux_upper_limit='1.26e-07', time_completed='2021-09-19 22:35:47.144387', job_id='688680', GAL2='1.05', fit_tolerance='1e-08', EG2='0.66', EG='0.67', time_epoch_completed='1632116147.14', return_code2='0', ts='0.13', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='1.41e-03', ts2='0.13', photon_index_error='0.00', photon_index='2.17' WHERE bin_id='1239' AND source_name='4FGL J1813.5+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 22:35:47 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0218>
Subject: Job 688680: <4FGL_J1813.5+3144_daily_bin1239> in cluster <slac> Done

Job <4FGL_J1813.5+3144_daily_bin1239> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Sep 19 22:20:32 2021
Job was executed on host(s) <bullet0218>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Sep 19 22:20:33 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:20:33 2021
Terminated at Sun Sep 19 22:35:47 2021
Results reported at Sun Sep 19 22:35:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1813.5+3144_daily_bin1239 273.387 31.7497 560476801 560736001 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 :                                   744.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             295.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   914 sec.
    Turnaround time :                            915 sec.

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

