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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin541
RA = 154.942, Dec = 5.1905
tmin = 379555201, tmax = 379814401
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='818684', job_status='RUN', time_executed='2021-09-01 18:16:02.666218', time_epoch_executed='1630545362.67' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='541'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818684

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818684/ft1_4FGL_J1019.7+0511_daily_bin541.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818684/ft1_4FGL_J1019.7+0511_daily_bin541.fits outfile=/scratch/kocevski/818684/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin541.fits ra=154.942 dec=5.1905 rad=12.0 tmin=379555201.0 tmax=379814401.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.53
user 3.25
sys 0.24

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.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/818684/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin541.fits evtable="EVENTS" outfile="/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits" evtable="EVENTS" scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits sctable="SC_DATA" outfile=/scratch/kocevski/818684/ltcube_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.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/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits
.....................!
real 14.69
user 14.30
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits sctable="SC_DATA" expcube=/scratch/kocevski/818684/ltcube_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits outfile=/scratch/kocevski/818684/expmap_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.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/818684/ltcube_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits
.....................!
real 192.87
user 187.73
sys 4.74

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

Setting source of interest to:
4FGL J1019.7+0511 @ 154.942 5.1905

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits outfile=/scratch/kocevski/818684/cmap_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.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=154.942 yref=5.1905 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.57
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits outfile=/scratch/kocevski/818684/cmap_HighResolution_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.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=154.942 yref=5.1905 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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits evtable="EVENTS" scfile=/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818684/Model_4FGL_J1019.7+0511_daily_bin541.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/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits.....................!
real 55.82
user 54.49
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits', '/scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits', expMap='/scratch/kocevski/818684/expmap_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits', expCube='/scratch/kocevski/818684/ltcube_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818684/Model_4FGL_J1019.7+0511_daily_bin541.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1019.7+0511'

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.246e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.997e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/818684/ft1_filtered_4FGL_J1019.7+0511_daily_bin541.fits
Spacecraft file(s): /scratch/kocevski/818684/ft2_4FGL_J1019.7+0511_daily_bin541.fits
Exposure map: /scratch/kocevski/818684/expmap_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits
Exposure cube: /scratch/kocevski/818684/ltcube_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818684/Model_4FGL_J1019.7+0511_daily_bin541.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) = 5736.94882577

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1730       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3880       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.3601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    41.590       1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11593E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11144E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10650E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    47.858       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5428       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9612       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.729       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.444       1.0000         .10000E-03   10000.    
    16 'norm      '    .73889       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .79823       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0109       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   5736.947     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2031 TOTAL
                     EDM=   .80E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1730        1.3573        .34336E-07   -.45914E-04
   2  norm          2.3880        .85521        .20489E-07   -.34328E-03
   3  Prefactor     1.3532        28.048        .22491E-04    .21969E-04
   4  Prefactor     .10001E-03    20.107        .72651E-07** at limit **
   5  Prefactor     41.577        42.391        .54935E-06   -.23144E-03
   6  norm          .10000E-03    9.2399       -.27009E-07** at limit **
   7  Prefactor     .10000E-03    15.016       -.11810E-05** at limit **
   8  Prefactor     .10002E-03    55.207        .38125E-06** at limit **
   9  Prefactor     .10001E-03    37.614       -.16469E-05** at limit **
  10  Prefactor     47.845        23.498        .11594E-06    .22977E-03
  11  norm          1.5427        1.3228        .31432E-07   -.13200E-03
  12  Prefactor     .10000E-03    3.6100       -.17398E-06** at limit **
  13  Prefactor     6.9609        4.0619        .10091E-06    .28196E-04
  14  Prefactor     15.728        10.077        .30048E-06   -.15130E-04
  15  Prefactor     17.446        9.9383        .18967E-06    .29310E-05
  16  norm          .73916        .46913        .27290E-07   -.72350E-04
  17  Prefactor     .10000E-03    5.7127        .59507E-07** at limit **
  18  Prefactor     .10000E-03    7.7038        .19278E-07** at limit **
  19  Normalizat    .79828        .20265       -.15891E-05    .63924E-04
  20  Prefactor     1.0108        .16016       -.50681E-06   -.87233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.17296
  norm       = 2.38799
  Prefactor  = 1.35315
  Prefactor  = 0.000100006
  Prefactor  = 41.5775
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100022
  Prefactor  = 0.000100012
  Prefactor  = 47.8454
  norm       = 1.54269
  Prefactor  = 0.0001
  Prefactor  = 6.96087
  Prefactor  = 15.7284
  Prefactor  = 17.4459
  norm       = 0.73916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.798281
  Prefactor  = 1.01083
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.947     FROM HESSE     STATUS=OK           291 CALLS     2322 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1730        1.3550        .66492E-04   -1.5413    
   2  norm          2.3880        .85461        .39807E-04   -1.5399    
   3  Prefactor     1.3532        28.168        .18726E-02   -1.5475    
   4  Prefactor     .10001E-03    20.227        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     41.577        42.505        .62158E-04   -1.4417    
   6  norm          .10000E-03    9.2776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10002E-03    55.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    38.167        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     47.845        23.604        .57963E-04   -1.4323    
  11  norm          1.5427        1.3094        .77224E-04   -1.5460    
  12  Prefactor     .10000E-03    3.6478        .14048E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.9609        4.0619        .10748E-03   -1.5180    
  14  Prefactor     15.728        10.109        .50495E-03   -1.4915    
  15  Prefactor     17.446        9.9353        .95894E-04   -1.4872    
  16  norm          .73916        .46771        .39589E-04   -1.5536    
  17  Prefactor     .10000E-03    5.8394        .35292E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    7.7113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .79828        .23630        .29439E-03   -1.0013    
  20  Prefactor     1.0108        .18713        .22257E-03   -.92369    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.44171e-09
Minuit parameter uncertainties:
  1  1.35502
  2  0.854613
  3  12.3537
  4  0.000701491
  5  42.5357
  6  9.69461e-05
  7  1.86564e-05
  8  0.00219463
  9  0.00133696
  10  23.6085
  11  1.3094
  12  1.73049e-05
  13  4.06207
  14  10.1098
  15  9.93627
  16  0.467709
  17  1.83418e-06
  18  2.57358e-05
  19  0.236601
  20  0.18725
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  4.785e+01  2.361e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.997e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.011e+00  1.873e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  7.983e-01  2.366e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.42
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 7.31e-08 +/- 3.60e-08
Energy Flux (Fixed Index): 5.08e-05 +/- 2.51e-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) = 5736.94242061
delta logL = 0.00410854872553

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5736.93542447
delta logL = 0.0111046951843

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    44.054       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0516       1.0000          .0000       10.000    
     3 'Normalizat'    .79366       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0125       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+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=   5736.935     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      261 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     44.061        35.426        .60402E-04   -.29437E-03
   2  Index         2.0517        .39068        .35154E-02   -.20354E-03
   3  Normalizat    .79329        .22278        .29520E-03    .33271E-03
   4  Prefactor     1.0128        .18607        .22235E-03    .65934E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 44.0607
  Index      = 2.05171
  Normalizat = 0.793293
  Prefactor  = 1.01278
 **********
 **   18 **HESSE 
 **********

 FCN=   5736.935     FROM HESSE     STATUS=OK            25 CALLS      286 TOTAL
                     EDM=   .71E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     44.061        33.217        .12080E-04   -1.4379    
   2  Index         2.0517        .36604        .14062E-03   -.63064    
   3  Normalizat    .79329        .22261        .11808E-04   -1.0032    
   4  Prefactor     1.0128        .18613        .44471E-04   -.92305    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.12617e-10
Minuit parameter uncertainties:
  1  33.2308
  2  0.366546
  3  0.222863
  4  0.186246
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818684': 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) = 5736.93542273
delta logL = 0.0111064334524

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  4.406e+01  3.323e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.052e+00  3.665e-01  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.013e+00  1.862e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  7.933e-01  2.229e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.39
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.05 +/- 0.37
Photon Flux (Free Index): 7.79e-08 +/- 4.97e-08
Energy Flux (Free Index): 4.76e-05 +/- 3.06e-05

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/818684/cmap_HighResolution_379555201_379814401_4FGL_J1019.7+0511_daily_bin541.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.31e-08', energy_flux2='4.76e-05', photon_flux_error='3.60e-08', dlogl='1.11e-02', energy_flux='5.08e-05', photon_flux2='7.79e-08', job_status='DONE', time_completed='2021-09-01 18:24:35.369072', photon_index_error2='0.37', photon_index2='2.05', ts='13.42', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='3.06e-05', EG='0.80', time_epoch_completed='1630545875.37', return_code='0', job_id='818684', GAL2='1.01', EG2='0.79', return_code2='0', energy_flux_error='2.51e-05', photon_flux_error2='4.97e-08', ts2='13.39', photon_index='2.00' WHERE bin_id='541' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0109>
Subject: Job 818684: <4FGL_J1019.7+0511_daily_bin541> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin541> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:43 2021
Job was executed on host(s) <bullet0109>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:15:44 2021
Terminated at Wed Sep  1 18:24:36 2021
Results reported at Wed Sep  1 18:24:36 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin541 154.942 5.1905 379555201 379814401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1019.7+0511 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   511.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             317.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   531 sec.
    Turnaround time :                            533 sec.

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

