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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin473
RA = 154.942, Dec = 5.1905
tmin = 361929601, tmax = 362188801
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='818575', job_status='RUN', time_executed='2021-09-01 18:17:31.932821', time_epoch_executed='1630545451.93' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='473'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818575

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

Retrieving the FT1 file...

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

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

Retrieving 51 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818575/ft1_4FGL_J1019.7+0511_daily_bin473.fits


Retrieving the FT1 file...

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

Retrieving 51 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818575/ft1_4FGL_J1019.7+0511_daily_bin473.fits outfile=/scratch/kocevski/818575/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin473.fits ra=154.942 dec=5.1905 rad=12.0 tmin=361929601.0 tmax=362188801.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.47
user 5.22
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.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/818575/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin473.fits evtable="EVENTS" outfile="/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits" evtable="EVENTS" scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits sctable="SC_DATA" outfile=/scratch/kocevski/818575/ltcube_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.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/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits
.....................!
real 13.95
user 13.56
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits sctable="SC_DATA" expcube=/scratch/kocevski/818575/ltcube_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits outfile=/scratch/kocevski/818575/expmap_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.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/818575/ltcube_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits
.....................!
real 191.66
user 186.16
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/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits outfile=/scratch/kocevski/818575/cmap_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits outfile=/scratch/kocevski/818575/cmap_HighResolution_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits evtable="EVENTS" scfile=/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818575/Model_4FGL_J1019.7+0511_daily_bin473.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/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits.....................!
real 61.35
user 59.90
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits', '/scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits', expMap='/scratch/kocevski/818575/expmap_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits', expCube='/scratch/kocevski/818575/ltcube_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/818575/Model_4FGL_J1019.7+0511_daily_bin473.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/818575/ft1_filtered_4FGL_J1019.7+0511_daily_bin473.fits
Spacecraft file(s): /scratch/kocevski/818575/ft2_4FGL_J1019.7+0511_daily_bin473.fits
Exposure map: /scratch/kocevski/818575/expmap_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits
Exposure cube: /scratch/kocevski/818575/ltcube_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/818575/Model_4FGL_J1019.7+0511_daily_bin473.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) = 6194.09613407

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6653       1.0000         .10000E-03   10000.    
     2 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.240       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14465E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .66904       1.0000         .10000E-03   10000.    
     6 'norm      '    1.1636       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10562E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10066E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.0496       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1053       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.8603       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.9053       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10099E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.0003       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.521       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.5560       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70101       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=   6194.043     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     1802 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6649        1.7930       -.83254E-08   -.39546E-03
   2  norm          .10000E-03    .41887        .29686E-07** at limit **
   3  Prefactor     28.223        15.772       -.24225E-06    .37101E-03
   4  Prefactor     .10000E-03    54.671        .13296E-05** at limit **
   5  Prefactor     .46689        23.873       -.10564E-05    .15078E-04
   6  norm          1.1698        16.533       -.53957E-05   -.29569E-03
   7  Prefactor     .10000E-03    2.9408        .10474E-06** at limit **
   8  Prefactor     .10000E-03    32.512       -.44247E-06** at limit **
   9  Prefactor     .10000E-03    12.613        .27644E-06** at limit **
  10  Prefactor     9.0491        9.3519       -.30632E-07    .65065E-04
  11  norm          1.1054        1.0235        .15609E-07    .31575E-04
  12  Prefactor     .10000E-03    4.8951       -.57603E-08** at limit **
  13  Prefactor     6.8589        3.6878       -.57509E-07   -.75224E-04
  14  Prefactor     5.9016        11.248       -.12625E-05    .42537E-04
  15  Prefactor     .10000E-03    10.643       -.23928E-06** at limit **
  16  norm          .10000E-03    .15968       -.25182E-06** at limit **
  17  Prefactor     8.0084        7.9139        .37296E-05   -.99692E-03
  18  Prefactor     11.527        15.821        .10963E-05   -.14545E-03
  19  Normalizat    1.5560        .20446        .27731E-07    .11910E-03
  20  Prefactor     .70110        .15638       -.34167E-06    .90404E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.66491
  norm       = 0.0001
  Prefactor  = 28.2227
  Prefactor  = 0.0001
  Prefactor  = 0.466895
  norm       = 1.16984
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.04907
  norm       = 1.10537
  Prefactor  = 0.0001
  Prefactor  = 6.85887
  Prefactor  = 5.90158
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.00837
  Prefactor  = 11.5268
  Normalizat = 1.55603
  Prefactor  = 0.701099
 **********
 **   18 **HESSE 
 **********

 FCN=   6194.043     FROM HESSE     STATUS=OK           303 CALLS     2105 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6649        1.7966        .81575E-04   -1.5381    
   2  norm          .10000E-03    .85357        .97425E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     28.223        15.573        .75390E-04   -1.4645    
   4  Prefactor     .10000E-03    54.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .46689        30.402        .11822       -1.5571    
   6  norm          1.1698        19.637        .42664E-03   -1.5492    
   7  Prefactor     .10000E-03    2.9442        .13180E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.649        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.613        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.0491        9.3544        .13323E-03   -1.5106    
  11  norm          1.1054        1.0350        .73873E-04   -1.5498    
  12  Prefactor     .10000E-03    4.9555        .16993E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.8589        3.6920        .10584E-03   -1.5184    
  14  Prefactor     5.9016        11.299        .16525E-03   -1.5222    
  15  Prefactor     .10000E-03    11.059        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .18418        .61918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.0084        7.5444        .14175E-03   -1.5142    
  18  Prefactor     11.527        15.774        .11803E-03   -1.5029    
  19  Normalizat    1.5560        .24354        .24089E-03   -.76216    
  20  Prefactor     .70110        .18485        .27320E-03   -1.0348    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.0057e-09
Minuit parameter uncertainties:
  1  1.79665
  2  2.5998e-06
  3  15.5748
  4  0.000183546
  5  7.53828
  6  9.58913
  7  2.66695e-07
  8  9.64404e-05
  9  1.74267e-05
  10  9.35586
  11  1.03501
  12  2.6309e-06
  13  3.69216
  14  11.3033
  15  9.70522e-05
  16  1.09779e-05
  17  7.54531
  18  15.7795
  19  0.243722
  20  0.185014
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  9.049e+00  9.356e+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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  7.011e-01  1.850e-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:  1.556e+00  2.437e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.10
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.38e-08 +/- 1.43e-08
Energy Flux (Fixed Index): 9.62e-06 +/- 9.94e-06

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) = 6191.59175485
delta logL = 2.45116543816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6191.59068577
delta logL = 2.45223451456

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4443       1.0000         .10000E-03   10000.    
     2 'Index     '    .48551       1.0000          .0000       10.000    
     3 'Normalizat'    1.5629       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70039       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.

 FCN=   6191.591     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      216 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4298        8.8507        .34488E-02   -.11380E-03
   2  Index         .48475        .55909        .37984        .20155E-04
   3  Normalizat    1.5629        .19447        .54371E-01   -.14447E-04
   4  Prefactor     .70034        .15586        .61786E-01    .13843E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.4298
  Index      = 0.48475
  Normalizat = 1.5629
  Prefactor  = 0.700342
 **********
 **   18 **HESSE 
 **********

 FCN=   6191.591     FROM HESSE     STATUS=OK            31 CALLS      247 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4298        13.678        .13795E-03   -1.5127    
   2  Index         .48475        .74185        .19341E-01   -1.1268    
   3  Normalizat    1.5629        .22964        .24039E-03   -.76026    
   4  Prefactor     .70034        .18384        .27331E-03   -1.0351    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.5125e-12
Minuit parameter uncertainties:
  1  13.683
  2  0.757461
  3  0.229796
  4  0.183995
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818575': 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) = 6191.59068515
delta logL = 2.45223513626

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  8.430e+00  1.368e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  4.847e-01  7.575e-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:  7.003e-01  1.840e-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:  1.563e+00  2.298e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.00
Ra Dec: 154.942 5.191
Photon Index (Free Index): 0.48 +/- 0.76
Photon Flux (Free Index): 3.31e-09 +/- 3.35e-09
Energy Flux (Free Index): 1.16e-04 +/- 1.40e-04

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/818575/cmap_HighResolution_361929601_362188801_4FGL_J1019.7+0511_daily_bin473.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.38e-08', energy_flux2='1.16e-04', photon_flux_error='1.43e-08', dlogl='2.45e+00', energy_flux='9.62e-06', photon_flux2='3.31e-09', job_status='DONE', time_completed='2021-09-01 18:26:16.480344', photon_index_error2='0.76', photon_index2='0.48', ts='4.10', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.40e-04', EG='1.56', time_epoch_completed='1630545976.48', return_code='0', job_id='818575', GAL2='0.70', EG2='1.56', return_code2='0', energy_flux_error='9.94e-06', photon_flux_error2='3.35e-09', ts2='9.00', photon_index='2.00' WHERE bin_id='473' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:26:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 818575: <4FGL_J1019.7+0511_daily_bin473> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin473> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:30 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:32 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:32 2021
Terminated at Wed Sep  1 18:26:17 2021
Results reported at Wed Sep  1 18:26:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin473 154.942 5.1905 361929601 362188801 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 :                                   523.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   644 sec.
    Turnaround time :                            647 sec.

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

