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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin589
RA = 154.942, Dec = 5.1905
tmin = 391996801, tmax = 392256001
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='818760', job_status='RUN', time_executed='2021-09-01 18:19:17.355681', time_epoch_executed='1630545557.36' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='589'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818760

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818760/ft1_4FGL_J1019.7+0511_daily_bin589.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818760/ft1_4FGL_J1019.7+0511_daily_bin589.fits outfile=/scratch/kocevski/818760/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin589.fits ra=154.942 dec=5.1905 rad=12.0 tmin=391996801.0 tmax=392256001.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.36
user 5.08
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits" evtable="EVENTS" scfile=/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits sctable="SC_DATA" outfile=/scratch/kocevski/818760/ltcube_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.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/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits
.....................!
real 12.43
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits sctable="SC_DATA" expcube=/scratch/kocevski/818760/ltcube_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.fits outfile=/scratch/kocevski/818760/expmap_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.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/818760/ltcube_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.fits
.....................!
real 190.04
user 185.29
sys 4.39

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/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits scfile=/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits outfile=/scratch/kocevski/818760/cmap_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits scfile=/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits outfile=/scratch/kocevski/818760/cmap_HighResolution_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits evtable="EVENTS" scfile=/scratch/kocevski/818760/ft2_4FGL_J1019.7+0511_daily_bin589.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818760/Model_4FGL_J1019.7+0511_daily_bin589.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/818760/ft1_filtered_4FGL_J1019.7+0511_daily_bin589.fits.....................!
real 50.85
user 49.59
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10232E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .80791       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.3402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    54.956       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.1002       1.0000         .10000E-03   10000.    
     6 'norm      '    .10615E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10642E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.8472       1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2228       1.0000         .10000E-03   10000.    
    16 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.8613       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0672       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0262       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=   5138.899     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     2113 TOTAL
                     EDM=   .71E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .88104       -.28440E-06** at limit **
   2  norm          .80788        .76009        .35824E-07   -.90215E-04
   3  Prefactor     6.3507        12.076        .39000E-05    .85117E-05
   4  Prefactor     54.946        59.998        .48897E-05    .57943E-04
   5  Prefactor     2.1524        326.82       -.12209E-04    .21941E-04
   6  norm          .10000E-03    13.412       -.76662E-06** at limit **
   7  Prefactor     .10000E-03    2.3754       -.79314E-07** at limit **
   8  Prefactor     .10000E-03    30.322       -.36160E-06** at limit **
   9  Prefactor     .10000E-03    11.783       -.64755E-07** at limit **
  10  Prefactor     .10000E-03    4.2343       -.54610E-07** at limit **
  11  norm          .10000E-03    .33050       -.19978E-07** at limit **
  12  Prefactor     .10000E-03    2.7327        .27084E-06** at limit **
  13  Prefactor     5.5527        3.8453       -.14411E-07   -.19839E-04
  14  Prefactor     5.8477        6.7875        .10110E-05   -.97130E-05
  15  Prefactor     5.2268        8.2784        .21322E-06    .32327E-05
  16  norm          .10000E-03    .16008       -.59900E-07** at limit **
  17  Prefactor     .10000E-03    1.8952       -.33723E-07** at limit **
  18  Prefactor     5.8853        11.764        .57979E-07   -.73736E-05
  19  Normalizat    1.0661        .20551       -.35967E-06    .14564E-03
  20  Prefactor     1.0270        .17010        .56099E-06    .92020E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 0.807884
  Prefactor  = 6.35066
  Prefactor  = 54.9465
  Prefactor  = 2.15241
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.55274
  Prefactor  = 5.84769
  Prefactor  = 5.22677
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.88527
  Normalizat = 1.06605
  Prefactor  = 1.02704
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.899     FROM HESSE     STATUS=OK           295 CALLS     2408 TOTAL
                     EDM=   .84E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.9172        .12894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .80788        .73085        .56978E-03   -1.5528    
   3  Prefactor     6.3507        11.967        .79704E-03   -1.5204    
   4  Prefactor     54.946        59.280        .54109E-04   -1.4224    
   5  Prefactor     2.1524        303.57        .28477E-03   -1.5415    
   6  norm          .10000E-03    13.569        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    2.3771        .10792E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    30.376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    11.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.2355        .14407E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .33271        .40240E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.7427        .11566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.5527        3.8327        .10818E-03   -1.5237    
  14  Prefactor     5.8477        6.7654        .83041E-03   -1.5224    
  15  Prefactor     5.2268        8.2465        .17589E-03   -1.5251    
  16  norm          .10000E-03    .17742        .55940E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    1.8973        .96372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     5.8853        11.751        .16588E-03   -1.5223    
  19  Normalizat    1.0661        .24178        .25595E-03   -.90849    
  20  Prefactor     1.0270        .20072        .22303E-03   -.91833    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.39971e-10
Minuit parameter uncertainties:
  1  3.38817e-05
  2  0.730857
  3  11.9714
  4  59.3434
  5  51.3902
  6  0.000139545
  7  4.39046e-06
  8  5.4441e-05
  9  4.43193e-06
  10  3.38617e-06
  11  9.72819e-07
  12  2.54914e-06
  13  3.83289
  14  6.76624
  15  8.24834
  16  2.66859e-09
  17  3.74104e-07
  18  11.7558
  19  0.24203
  20  0.200867
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  3.386e-06  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.027e+00  2.009e-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.066e+00  2.420e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 154.942 5.191
Photon Flux Upper Limit: 3.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.79e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818760/likelihoodResults_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.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) = 5138.90035344
delta logL = -0.00109337180584

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5138.89925992
delta logL = 1.44008481584e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10463E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9570       1.0000          .0000       10.000    
     3 'Normalizat'    1.0659       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0271       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=   5138.899     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10148E-03    25.070        .15419E-02** at limit **
   2  Index         1.8955        5.4465        .50000        .62867E-04
   3  Normalizat    1.0661        .11274E-01    .25595E-03   -.64804E-04
   4  Prefactor     1.0270        .97155E-02    .22303E-03    .17739E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101476
  Index      = 1.89546
  Normalizat = 1.06605
  Prefactor  = 1.02705
 **********
 **   18 **HESSE 
 **********

 FCN=   5138.899     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .57E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10148E-03    112.62        .30838E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8955        5.5128        .50000       -.66990    
   3  Normalizat    1.0661        .24387E-01    .10238E-04   -.90849    
   4  Prefactor     1.0270        .21015E-01    .89212E-05   -.91833    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.71906e-08
Minuit parameter uncertainties:
  1  0.0258381
  2  173.569
  3  0.0243876
  4  0.0210148
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818760': 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) = 5138.89925839
delta logL = 1.67589314515e-06

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.015e-04  2.584e-02  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.895e+00  1.736e+02  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.027e+00  2.101e-02  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.066e+00  2.439e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.942 5.191

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/818760/cmap_HighResolution_391996801_392256001_4FGL_J1019.7+0511_daily_bin589.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.79e-03', job_status='DONE', photon_flux_upper_limit='3.72e-08', time_completed='2021-09-01 18:28:12.677428', job_id='818760', GAL2='1.03', fit_tolerance='1e-08', EG2='1.07', EG='1.07', time_epoch_completed='1630546092.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='1.68e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='589' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:28:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0122>
Subject: Job 818760: <4FGL_J1019.7+0511_daily_bin589> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin589> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:49 2021
Job was executed on host(s) <bullet0122>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:51 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:51 2021
Terminated at Wed Sep  1 18:28:13 2021
Results reported at Wed Sep  1 18:28:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin589 154.942 5.1905 391996801 392256001 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 :                                   535.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             254.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

