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


Performing analysis on: 4FGL_J1813.5+3144_daily_bin1158
RA = 273.387, Dec = 31.7497
tmin = 539481601, tmax = 539740801
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='688549', job_status='RUN', time_executed='2021-09-19 22:20:38.833390', time_epoch_executed='1632115238.83' WHERE source_name='4FGL J1813.5+3144' and cadence='daily' and bin_id='1158'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/688549

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/688549/ft1_4FGL_J1813.5+3144_daily_bin1158.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/688549/ft1_4FGL_J1813.5+3144_daily_bin1158.fits outfile=/scratch/kocevski/688549/ft1_filteredMKT_4FGL_J1813.5+3144_daily_bin1158.fits ra=273.387 dec=31.7497 rad=12.0 tmin=539481601.0 tmax=539740801.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 5.15
user 4.92
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits" evtable="EVENTS" scfile=/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits sctable="SC_DATA" outfile=/scratch/kocevski/688549/ltcube_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.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/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits
.....................!
real 11.67
user 11.29
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits sctable="SC_DATA" expcube=/scratch/kocevski/688549/ltcube_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.fits outfile=/scratch/kocevski/688549/expmap_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.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/688549/ltcube_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.fits
.....................!
real 189.52
user 185.26
sys 3.94

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/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits scfile=/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits outfile=/scratch/kocevski/688549/cmap_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.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.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits scfile=/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits outfile=/scratch/kocevski/688549/cmap_HighResolution_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.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/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits evtable="EVENTS" scfile=/scratch/kocevski/688549/ft2_4FGL_J1813.5+3144_daily_bin1158.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/688549/Model_4FGL_J1813.5+3144_daily_bin1158.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/688549/ft1_filtered_4FGL_J1813.5+3144_daily_bin1158.fits.....................!
real 74.47
user 73.15
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    84.437       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    109.91       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .52016       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .44951E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.8516       1.0000         .10000E-03   10000.    
    10 'norm      '    1.4827       1.0000         .10000E-03   10000.    
    11 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.422       1.0000         .10000E-03   10000.    
    13 'norm      '    1.7038       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6103       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10036E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.6776       1.0000         .10000E-03   10000.    
    22 'Prefactor '    119.66       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43181E-02   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .93274       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .99051       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=   7939.037     FROM MIGRAD    STATUS=CONVERGED    573 CALLS     2893 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 10.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.385       -.57664E-06** at limit **
   2  norm          84.441        15.225        .95276E-07    .40764E-03
   3  Prefactor     .10000E-03    44.788       -.11159E-05** at limit **
   4  Prefactor     109.97        119.65        .46227E-05    .46944E-04
   5  Prefactor     .44054        95.004       -.25220E-04    .38923E-04
   6  Prefactor     .10000E-03    178.38       -.13880E-05** at limit **
   7  Prefactor     .10000E-03    22.825        .43875E-06** at limit **
   8  Prefactor     .10000E-03    55.582        .80173E-06** at limit **
   9  Prefactor     2.8279        11.759       -.23877E-06    .43646E-04
  10  norm          1.4829        1.4392        .52079E-07    .11605E-03
  11  norm          .10000E-03    56.947        .10090E-05** at limit **
  12  Prefactor     14.424        8.6510        .12643E-06    .20944E-03
  13  norm          1.7032        6.3208       -.49693E-06    .18363E-04
  14  Prefactor     4.6097        5.1279       -.75135E-06    .19875E-03
  15  Prefactor     .10000E-03    8.8412        .15793E-08** at limit **
  16  norm          .10000E-03    13.594        .50867E-07** at limit **
  17  Prefactor     .10000E-03    5.2879        .99757E-07** at limit **
  18  norm          .10000E-03    16.096       -.13520E-06** at limit **
  19  norm          .10000E-03    .86454        .59455E-07** at limit **
  20  norm          .10000E-03    .81154        .13766E-06** at limit **
  21  Prefactor     9.6816        14.189       -.11932E-06   -.28911E-04
  22  Prefactor     119.65        98.042       -.13772E-05   -.25138E-04
  23  Prefactor     .10000E-03    59.155       -.19211E-04** at limit **
  24  Normalizat    .93294        .27271        .30331E-05    .20281E-03
  25  Prefactor     .99040        .93006E-01   -.55886E-06    .48243E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 84.4409
  Prefactor  = 0.0001
  Prefactor  = 109.974
  Prefactor  = 0.44054
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.82786
  norm       = 1.48287
  norm       = 0.0001
  Prefactor  = 14.4245
  norm       = 1.70324
  Prefactor  = 4.60968
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 9.68158
  Prefactor  = 119.655
  Prefactor  = 0.000100002
  Normalizat = 0.932942
  Prefactor  = 0.990397
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.037     FROM HESSE     STATUS=OK           425 CALLS     3318 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          84.441        15.260        .43716E-04   -1.3868    
   3  Prefactor     .10000E-03    44.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     109.97        120.84        .19183E-03   -1.3607    
   5  Prefactor     .44054        165.82        .63400E-02   -1.5575    
   6  Prefactor     .10000E-03    180.09        .21209E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.817        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    55.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.8279        11.728        .24076E-03   -1.5372    
  10  norm          1.4829        1.4621        .10248E-03   -1.5464    
  11  norm          .10000E-03    56.915        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     14.424        8.6625        .10547E-03   -1.4948    
  13  norm          1.7032        6.2898        .32220E-03   -1.5447    
  14  Prefactor     4.6097        5.1488        .93728E-03   -1.5279    
  15  Prefactor     .10000E-03    8.8547        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    13.598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.3194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    16.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .86610        .80881E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .81799        .78236E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     9.6816        14.239        .12882E-03   -1.5086    
  22  Prefactor     119.65        97.731        .36787E-04   -1.3516    
  23  Prefactor     .10000E-03    108.78        .56406E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .93294        .30791        .45363E-03   -.95312    
  25  Prefactor     .99040        .10678        .15916E-03   -.93050    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.36704e-10
Minuit parameter uncertainties:
  1  6.17453e-05
  2  15.2603
  3  0.000233594
  4  121.116
  5  17.1402
  6  0.000827167
  7  0.000162045
  8  0.000297322
  9  11.5216
  10  1.46215
  11  0.000294607
  12  8.66327
  13  6.29229
  14  5.14925
  15  1.27399e-05
  16  9.09181e-07
  17  1.36453e-05
  18  2.04949e-05
  19  3.36763e-06
  20  7.41369e-06
  21  14.2443
  22  97.8633
  23  0.000934634
  24  0.308496
  25  0.1068
Done.

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

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  4.610e+00  5.149e+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:  9.904e-01  1.068e-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:  9.329e-01  3.085e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.21
Ra Dec: 273.387 31.750
Photon Index (Fixed Index): 2.17 +/- 0.00
Photon Flux (Fixed Index): 3.43e-08 +/- 3.83e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/688549/likelihoodResults_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.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) = 7939.03260243
delta logL = 0.00478845240286

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7939.02930597
delta logL = 0.00808491235239

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    5.1548       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0830       1.0000          .0000       10.000    
     3 'Normalizat'    .93559       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98990       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=   7939.029     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      232 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     5.1517        193.34        .44267E-02    .34673E-03
   2  Index         2.0835        6.0047        .16145        .14987E-03
   3  Normalizat    .93560        .11190        .10223       -.30431E-04
   4  Prefactor     .98990        .33497E-01    .46141E-01   -.24106E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.15174
  Index      = 2.08347
  Normalizat = 0.935604
  Prefactor  = 0.989897
 **********
 **   18 **HESSE 
 **********

 FCN=   7939.029     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     5.1517        7.4238        .17707E-03   -1.5254    
   2  Index         2.0835        .69867        .87190E-02   -.62279    
   3  Normalizat    .93560        .28300        .45305E-03   -.95220    
   4  Prefactor     .98990        .10262        .15920E-03   -.93067    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.53855e-11
Minuit parameter uncertainties:
  1  7.42511
  2  0.702163
  3  0.283449
  4  0.102639
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/688549': 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) = 7939.0293057
delta logL = 0.00808517871428

Extracting fit parameters...

4FGL J1813.5+3144
   Spectrum: PowerLaw
345    Prefactor:  5.152e+00  7.425e+00  1.000e-04  1.000e+04 ( 1.000e-13)
346        Index:  2.083e+00  7.022e-01  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:  9.899e-01  1.026e-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:  9.356e-01  2.834e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.23
Ra Dec: 273.387 31.750
Photon Index (Free Index): 2.08 +/- 0.70
Photon Flux (Free Index): 3.17e-08 +/- 4.05e-08
Energy Flux (Free Index): 1.80e-05 +/- 2.60e-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/688549/cmap_HighResolution_539481601_539740801_4FGL_J1813.5+3144_daily_bin1158.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.75e-03', comment='SUCCESS', photon_flux='3.43e-08', energy_flux2='1.80e-05', photon_flux_error='3.83e-08', dlogl='8.09e-03', energy_flux='1.64e-05', photon_flux2='3.17e-08', job_status='DONE', time_completed='2021-09-19 22:35:56.131419', photon_index_error2='0.70', photon_index2='2.08', ts='1.21', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.28e-07', energy_flux_error2='2.60e-05', EG='0.93', time_epoch_completed='1632116156.13', return_code='0', job_id='688549', GAL2='0.99', EG2='0.94', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='4.05e-08', ts2='1.23', photon_index='2.17' WHERE bin_id='1158' AND source_name='4FGL J1813.5+3144' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Sep 19 22:35:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0219>
Subject: Job 688549: <4FGL_J1813.5+3144_daily_bin1158> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1813.5+3144_daily_bin1158 273.387 31.7497 539481601 539740801 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 :                                   912.06 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             363.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

