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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin1439
RA = 123.551, Dec = -10.2172
tmin = 612316801, tmax = 612576001
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='336895', job_status='RUN', time_executed='2021-08-29 13:42:13.180822', time_epoch_executed='1630269733.18' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='1439'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/336895

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/336895/ft1_4FGL_J0814.2-1013_daily_bin1439.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/336895/ft1_4FGL_J0814.2-1013_daily_bin1439.fits outfile=/scratch/kocevski/336895/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1439.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=612316801.0 tmax=612576001.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 4.00
user 3.06
sys 0.90

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.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/336895/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin1439.fits evtable="EVENTS" outfile="/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.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 1.28
user 0.33
sys 0.84

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits" evtable="EVENTS" scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits sctable="SC_DATA" outfile=/scratch/kocevski/336895/ltcube_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.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/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits
.....................!
real 13.25
user 12.09
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits sctable="SC_DATA" expcube=/scratch/kocevski/336895/ltcube_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits outfile=/scratch/kocevski/336895/expmap_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.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/336895/ltcube_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits
.....................!
real 191.92
user 185.50
sys 5.76

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

Setting source of interest to:
4FGL J0814.2-1013 @ 123.551 -10.2172

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits outfile=/scratch/kocevski/336895/cmap_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.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=123.551 yref=-10.2172 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 1.20
user 0.40
sys 0.80

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits outfile=/scratch/kocevski/336895/cmap_HighResolution_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.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=123.551 yref=-10.2172 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 1.22
user 0.38
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits evtable="EVENTS" scfile=/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/336895/Model_4FGL_J0814.2-1013_daily_bin1439.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/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits.....................!
real 104.88
user 100.67
sys 2.06

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits', '/scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits', expMap='/scratch/kocevski/336895/expmap_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits', expCube='/scratch/kocevski/336895/ltcube_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/336895/Model_4FGL_J0814.2-1013_daily_bin1439.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0814.2-1013'

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  3.187e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/336895/ft1_filtered_4FGL_J0814.2-1013_daily_bin1439.fits
Spacecraft file(s): /scratch/kocevski/336895/ft2_4FGL_J0814.2-1013_daily_bin1439.fits
Exposure map: /scratch/kocevski/336895/expmap_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits
Exposure cube: /scratch/kocevski/336895/ltcube_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/336895/Model_4FGL_J0814.2-1013_daily_bin1439.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) = 8059.14583282

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8471       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    32.557       1.0000         .10000E-03   10000.    
     4 'norm      '    13.316       1.0000         .10000E-03   10000.    
     5 'norm      '    8.2740       1.0000         .10000E-03   10000.    
     6 'norm      '    1.7400       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .18960       1.0000         .10000E-03   10000.    
     9 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.3844       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9275       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.2740       1.0000         .10000E-03   10000.    
    14 'norm      '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10362E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    23.591       1.0000         .10000E-03   10000.    
    17 'norm      '    .10167E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.2023       1.0000         .10000E-03   10000.    
    19 'Prefactor '    32.584       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.0874       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .93065       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8059.144     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2211 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8474        1.7989       -.26280E-06   -.34906E-03
   2  Prefactor     .10000E-03    10.049        .34848E-06** at limit **
   3  Prefactor     32.540        27.136       -.15775E-05    .20948E-04
   4  norm          13.313        14.319       -.27533E-06    .46009E-05
   5  norm          8.2631        12.089       -.81745E-05   -.82770E-04
   6  norm          1.7397        2.1166       -.68592E-07   -.70431E-04
   7  Prefactor     .10000E-03    2.1204        .64845E-06** at limit **
   8  norm          .30051E-01    4.9987       -.14408E-05    .80003E-04
   9  norm          .10000E-03    1.3505       -.40169E-06** at limit **
  10  Prefactor     6.3814        6.8168       -.15393E-05   -.89736E-04
  11  norm          5.9263        1.6678       -.10493E-06    .52334E-03
  12  Prefactor     .10000E-03    2.7450        .33045E-06** at limit **
  13  Prefactor     8.2724        4.9997       -.14005E-06   -.21658E-04
  14  norm          .10000E-03    7.4269        .23399E-06** at limit **
  15  norm          .10000E-03    5.7738       -.16010E-05** at limit **
  16  Prefactor     23.574        33.616       -.31186E-04    .38987E-04
  17  norm          .10000E-03    5.8278        .14450E-05** at limit **
  18  norm          5.2015        3.4561        .64363E-06   -.59573E-05
  19  Prefactor     32.588        18.841       -.31165E-05    .19181E-04
  20  Normalizat    1.0881        .20743        .90840E-05    .96108E-05
  21  Prefactor     .93052        .84375E-01    .34437E-06    .50677E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.8474
  Prefactor  = 0.0001
  Prefactor  = 32.5399
  norm       = 13.3134
  norm       = 8.26311
  norm       = 1.73974
  Prefactor  = 0.0001
  norm       = 0.0300507
  norm       = 0.0001
  Prefactor  = 6.38143
  norm       = 5.92631
  Prefactor  = 0.0001
  Prefactor  = 8.27236
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 23.5739
  norm       = 0.0001
  norm       = 5.20151
  Prefactor  = 32.5883
  Normalizat = 1.08808
  Prefactor  = 0.930524
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.144     FROM HESSE     STATUS=OK           329 CALLS     2540 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8474        1.8145        .77765E-04   -1.5316    
   2  Prefactor     .10000E-03    10.090        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     32.540        27.136        .70226E-04   -1.4566    
   4  norm          13.313        14.325        .10976E-03   -1.4978    
   5  norm          8.2631        12.246        .13937E-03   -1.5133    
   6  norm          1.7397        2.1074        .14010E-03   -1.5444    
   7  Prefactor     .10000E-03    2.1215        .12765E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .30051E-01    7.5442        .69928E-01   -1.5673    
   9  norm          .10000E-03    3.2166        .20160E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.3814        6.8139        .15885E-03   -1.5203    
  11  norm          5.9263        1.6583        .58349E-04   -1.5221    
  12  Prefactor     .10000E-03    2.7501        .14524E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.2724        4.9978        .13937E-03   -1.5133    
  14  norm          .10000E-03    7.4448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.8322        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     23.574        33.711        .82470E-04   -1.4737    
  17  norm          .10000E-03    5.9173        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.2015        3.4528        .12941E-03   -1.5252    
  19  Prefactor     32.588        18.843        .70197E-04   -1.4566    
  20  Normalizat    1.0881        .22592        .38558E-03   -.90135    
  21  Prefactor     .93052        .93223E-01    .17022E-03   -.95083    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.44678e-10
Minuit parameter uncertainties:
  1  1.81453
  2  2.67792e-05
  3  27.1464
  4  14.3286
  5  12.2493
  6  2.10746
  7  4.27054e-06
  8  0.950816
  9  3.36536e-05
  10  6.81474
  11  1.65827
  12  1.81602e-06
  13  4.99802
  14  5.05418e-06
  15  4.84353e-05
  16  33.7383
  17  3.86429e-05
  18  3.4529
  19  18.8466
  20  0.226123
  21  0.093239
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.000e-04  1.816e-06  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.113e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.305e-01  9.324e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.088e+00  2.261e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 123.551 -10.217
Photon Flux Upper Limit: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.32e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/336895/likelihoodResults_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8059.14572593
delta logL = -0.00172608516277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8059.14399979
delta logL = 6.22248990112e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0917       1.0000          .0000       10.000    
     3 'Normalizat'    1.0881       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93049       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5460E+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.

 FCN=   8059.144     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      239 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10102E-03    27.084        .14774E-02** at limit **
   2  Index         2.0436        7.9765        .50000        .51934E-04
   3  Normalizat    1.0881        .18736E-01    .38558E-03    .14949E-04
   4  Prefactor     .93052        .77685E-02    .17022E-03    .30588E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101024
  Index      = 2.04364
  Normalizat = 1.08809
  Prefactor  = 0.930523
 **********
 **   18 **HESSE 
 **********

 FCN=   8059.144     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      268 TOTAL
                     EDM=   .59E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10102E-03    115.65        .29548E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0436        5.0432        .50000       -.63264    
   3  Normalizat    1.0881        .40122E-01    .15423E-04   -.90135    
   4  Prefactor     .93052        .16635E-01    .34045E-04   -.95083    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.86958e-08
Minuit parameter uncertainties:
  1  0.0218021
  2  303.947
  3  0.0401235
  4  0.0166355
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/336895': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8059.14399905
delta logL = 7.98597284302e-07

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.010e-04  2.180e-02  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.044e+00  3.039e+02  0.000e+00  1.000e+01 (-1.000e+00)
281        Scale:  1.815e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
543    Prefactor:  9.305e-01  1.664e-02  0.000e+00  1.000e+01 ( 1.000e+00)
544        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
545        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
542   Normalization:  1.088e+00  4.012e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 123.551 -10.217

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/336895/cmap_HighResolution_612316801_612576001_4FGL_J0814.2-1013_daily_bin1439.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.32e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-08-29 13:54:18.209190', job_id='336895', GAL2='0.93', fit_tolerance='1e-08', EG2='1.09', EG='1.09', time_epoch_completed='1630270458.21', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.93', dlogl='7.99e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.11' WHERE bin_id='1439' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:54:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 336895: <4FGL_J0814.2-1013_daily_bin1439> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin1439> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Aug 29 13:40:30 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:40:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Aug 29 13:40:31 2021
Terminated at Sun Aug 29 13:54:19 2021
Results reported at Sun Aug 29 13:54:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin1439 123.551 -10.2172 612316801 612576001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0814.2-1013 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             330.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

