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


Performing analysis on: 4FGL_J0814.2-1013_daily_bin504
RA = 123.551, Dec = -10.2172
tmin = 369964801, tmax = 370224001
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='330792', job_status='RUN', time_executed='2021-08-29 13:24:01.401766', time_epoch_executed='1630268641.4' WHERE source_name='4FGL J0814.2-1013' and cadence='daily' and bin_id='504'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/330792

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/330792/ft1_4FGL_J0814.2-1013_daily_bin504.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/330792/ft1_4FGL_J0814.2-1013_daily_bin504.fits outfile=/scratch/kocevski/330792/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin504.fits ra=123.551 dec=-10.2172 rad=12.0 tmin=369964801.0 tmax=370224001.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 9.37
user 7.38
sys 0.86

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.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/330792/ft1_filteredMKT_4FGL_J0814.2-1013_daily_bin504.fits evtable="EVENTS" outfile="/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.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.58
user 0.35
sys 0.76

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits" evtable="EVENTS" scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits sctable="SC_DATA" outfile=/scratch/kocevski/330792/ltcube_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.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/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits
.....................!
real 12.57
user 11.50
sys 1.01

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits sctable="SC_DATA" expcube=/scratch/kocevski/330792/ltcube_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits outfile=/scratch/kocevski/330792/expmap_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.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/330792/ltcube_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits
.....................!
real 191.76
user 185.28
sys 6.15

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/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits outfile=/scratch/kocevski/330792/cmap_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.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.17
user 0.38
sys 0.77

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits outfile=/scratch/kocevski/330792/cmap_HighResolution_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.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.14
user 0.38
sys 0.75

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits evtable="EVENTS" scfile=/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/330792/Model_4FGL_J0814.2-1013_daily_bin504.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/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits.....................!
real 87.25
user 85.02
sys 1.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits', '/scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits', expMap='/scratch/kocevski/330792/expmap_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits', expCube='/scratch/kocevski/330792/ltcube_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/330792/Model_4FGL_J0814.2-1013_daily_bin504.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/330792/ft1_filtered_4FGL_J0814.2-1013_daily_bin504.fits
Spacecraft file(s): /scratch/kocevski/330792/ft2_4FGL_J0814.2-1013_daily_bin504.fits
Exposure map: /scratch/kocevski/330792/expmap_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits
Exposure cube: /scratch/kocevski/330792/ltcube_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/330792/Model_4FGL_J0814.2-1013_daily_bin504.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) = 6571.99431931

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2148       1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.4424       1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.819       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    13.457       1.0000         .10000E-03   10000.    
     6 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    22.242       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    8.1047       1.0000         .10000E-03   10000.    
    10 'Prefactor '    23.104       1.0000         .10000E-03   10000.    
    11 'norm      '    .15021       1.0000         .10000E-03   10000.    
    12 'Prefactor '    19.141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    37.121       1.0000         .10000E-03   10000.    
    15 'norm      '    20.678       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    3.1095       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .75723       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0321       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=   6571.978     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     1852 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2147        1.9660       -.74102E-07   -.15371E-03
   2  Prefactor     2.4412        13.398       -.30405E-05   -.15513E-03
   3  Prefactor     31.819        25.240       -.25183E-06    .47773E-05
   4  norm          .10000E-03    4.4195       -.21640E-05** at limit **
   5  norm          13.457        11.692       -.36098E-06    .39467E-05
   6  norm          .10000E-03    2.8512       -.10167E-05** at limit **
   7  Prefactor     22.242        11.939        .16531E-06   -.48359E-05
   8  norm          .10000E-03    3.5542        .23658E-05** at limit **
   9  norm          8.1044        3.7474       -.21657E-06   -.14899E-02
  10  Prefactor     23.103        13.158       -.67210E-06    .51390E-04
  11  norm          .15114        .91329       -.26359E-06   -.81549E-03
  12  Prefactor     19.142        14.672        .26674E-05    .43270E-04
  13  Prefactor     .10000E-03    2.5532        .34805E-06** at limit **
  14  norm          37.110        31.632       -.16263E-04    .15014E-04
  15  norm          20.678        13.564       -.15559E-06   -.88093E-05
  16  Prefactor     .10000E-03    11.214       -.22422E-06** at limit **
  17  norm          .10000E-03    4.5158       -.20049E-05** at limit **
  18  norm          3.1097        2.8565        .77524E-07    .36142E-04
  19  Prefactor     .10000E-03    5.1208        .27489E-05** at limit **
  20  Normalizat    .75720        .23373        .10613E-05    .34673E-04
  21  Prefactor     1.0321        .98643E-01    .54521E-06    .79580E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2147
  Prefactor  = 2.44123
  Prefactor  = 31.8185
  norm       = 0.0001
  norm       = 13.4571
  norm       = 0.0001
  Prefactor  = 22.2419
  norm       = 0.0001
  norm       = 8.10443
  Prefactor  = 23.103
  norm       = 0.151143
  Prefactor  = 19.1416
  Prefactor  = 0.0001
  norm       = 37.1099
  norm       = 20.6783
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.10973
  Prefactor  = 0.0001
  Normalizat = 0.757203
  Prefactor  = 1.03207
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.978     FROM HESSE     STATUS=OK           323 CALLS     2175 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2147        1.9768        .73697E-04   -1.5297    
   2  Prefactor     2.4412        13.502        .26179E-03   -1.5395    
   3  Prefactor     31.819        25.240        .71034E-04   -1.4579    
   4  norm          .10000E-03    4.4188        .16642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          13.457        11.730        .10919E-03   -1.4974    
   6  norm          .10000E-03    2.9268        .26717E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     22.242        11.942        .84932E-04   -1.4764    
   8  norm          .10000E-03    3.5553        .14919E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          8.1044        3.7314        .49795E-03   -1.5139    
  10  Prefactor     23.103        13.125        .83333E-04   -1.4746    
  11  norm          .15114        1.8587        .14219E-02   -1.5630    
  12  Prefactor     19.142        14.638        .91546E-04   -1.4833    
  13  Prefactor     .10000E-03    2.5643        .12649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          37.110        31.412        .65780E-04   -1.4489    
  15  norm          20.678        13.564        .88081E-04   -1.4798    
  16  Prefactor     .10000E-03    11.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.5403        .16821E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          3.1097        2.8573        .12764E-03   -1.5355    
  19  Prefactor     .10000E-03    5.1192        .17911E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .75720        .24766        .44814E-03   -1.0168    
  21  Prefactor     1.0321        .10634        .16588E-03   -.91668    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.75074e-10
Minuit parameter uncertainties:
  1  1.97685
  2  11.4863
  3  25.2485
  4  1.53036e-07
  5  11.732
  6  3.71022e-06
  7  11.9429
  8  2.45289e-06
  9  3.73148
  10  13.1263
  11  1.05974
  12  14.6412
  13  3.35728e-06
  14  31.4265
  15  13.5663
  16  6.62201e-07
  17  2.04367e-06
  18  2.85746
  19  1.29884e-06
  20  0.248031
  21  0.106359
Done.

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

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.914e+01  1.464e+01  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:  1.032e+00  1.064e-01  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:  7.572e-01  2.480e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.28
Ra Dec: 123.551 -10.217
Photon Index (Fixed Index): 2.11 +/- 0.00
Photon Flux (Fixed Index): 7.86e-08 +/- 6.01e-08
Energy Flux (Fixed Index): 4.20e-05 +/- 3.21e-05

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) = 6571.96961509
delta logL = 0.00872266317219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6571.96565698
delta logL = 0.0126807747874

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    17.924       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1895       1.0000          .0000       10.000    
     3 'Normalizat'    .75224       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0326       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=   6571.966     FROM MIGRAD    STATUS=CONVERGED     98 CALLS      255 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.922        15.550        .94602E-04    .67778E-04
   2  Index         2.1907        .51046        .61651E-02    .38102E-04
   3  Normalizat    .75193        .23952        .44947E-03    .50005E-04
   4  Prefactor     1.0327        .10160        .16581E-03    .15350E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9224
  Index      = 2.19067
  Normalizat = 0.751935
  Prefactor  = 1.03275
 **********
 **   18 **HESSE 
 **********

 FCN=   6571.966     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.922        14.873        .37841E-05   -1.4861    
   2  Index         2.1907        .48786        .24660E-03   -.59664    
   3  Normalizat    .75193        .23936        .17979E-04   -1.0188    
   4  Prefactor     1.0327        .10160        .33162E-04   -.91646    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25989e-11
Minuit parameter uncertainties:
  1  14.8756
  2  0.489001
  3  0.239694
  4  0.101621
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/330792': 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) = 6571.96565259
delta logL = 0.0126851585474

Extracting fit parameters...

4FGL J0814.2-1013
   Spectrum: PowerLaw
279    Prefactor:  1.792e+01  1.488e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        Index:  2.191e+00  4.890e-01  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:  1.033e+00  1.016e-01  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:  7.519e-01  2.397e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 123.551 -10.217
Photon Index (Free Index): 2.19 +/- 0.49
Photon Flux (Free Index): 8.62e-08 +/- 7.48e-08
Energy Flux (Free Index): 3.94e-05 +/- 3.08e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/330792/cmap_HighResolution_369964801_370224001_4FGL_J0814.2-1013_daily_bin504.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.86e-08', energy_flux2='3.94e-05', photon_flux_error='6.01e-08', dlogl='1.27e-02', energy_flux='4.20e-05', photon_flux2='8.62e-08', job_status='DONE', time_completed='2021-08-29 13:33:51.870470', photon_index_error2='0.49', photon_index2='2.19', ts='4.28', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', energy_flux_error2='3.08e-05', EG='0.76', time_epoch_completed='1630269231.87', return_code='0', job_id='330792', GAL2='1.03', EG2='0.75', return_code2='0', energy_flux_error='3.21e-05', photon_flux_error2='7.48e-08', ts2='4.34', photon_index='2.11' WHERE bin_id='504' AND source_name='4FGL J0814.2-1013' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Aug 29 13:33:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 330792: <4FGL_J0814.2-1013_daily_bin504> in cluster <slac> Done

Job <4FGL_J0814.2-1013_daily_bin504> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Sun Aug 29 13:20:29 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Aug 29 13:20: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:20:31 2021
Terminated at Sun Aug 29 13:33:52 2021
Results reported at Sun Aug 29 13:33:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0814.2-1013_daily_bin504 123.551 -10.2172 369964801 370224001 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 :                                   595.05 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             278.37 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   801 sec.
    Turnaround time :                            803 sec.

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

