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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin540
RA = 154.942, Dec = 5.1905
tmin = 379296001, tmax = 379555201
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='818683', job_status='RUN', time_executed='2021-09-01 18:19:07.518280', time_epoch_executed='1630545547.52' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='540'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818683/ft1_4FGL_J1019.7+0511_daily_bin540.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818683/ft1_4FGL_J1019.7+0511_daily_bin540.fits outfile=/scratch/kocevski/818683/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin540.fits ra=154.942 dec=5.1905 rad=12.0 tmin=379296001.0 tmax=379555201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.66
user 4.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits" evtable="EVENTS" scfile=/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits sctable="SC_DATA" outfile=/scratch/kocevski/818683/ltcube_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.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/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits
.....................!
real 12.01
user 11.61
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits sctable="SC_DATA" expcube=/scratch/kocevski/818683/ltcube_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.fits outfile=/scratch/kocevski/818683/expmap_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.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/818683/ltcube_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.fits
.....................!
real 189.58
user 184.18
sys 5.02

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/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits scfile=/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits outfile=/scratch/kocevski/818683/cmap_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.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.53
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits scfile=/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits outfile=/scratch/kocevski/818683/cmap_HighResolution_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits evtable="EVENTS" scfile=/scratch/kocevski/818683/ft2_4FGL_J1019.7+0511_daily_bin540.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818683/Model_4FGL_J1019.7+0511_daily_bin540.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/818683/ft1_filtered_4FGL_J1019.7+0511_daily_bin540.fits.....................!
real 54.60
user 53.25
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.3314       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .17300E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    12.450       1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.3959       1.0000         .10000E-03   10000.    
     8 'Prefactor '    14.951       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3207       1.0000         .10000E-03   10000.    
    10 'Prefactor '    12.599       1.0000         .10000E-03   10000.    
    11 'norm      '    .10141E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.9266       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.1453       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .96383       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1620       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=   5525.723     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     1783 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .36912       -.39674E-07** at limit **
   2  norm          1.3313        .67992       -.68088E-09    .23791E-03
   3  Prefactor     .10000E-03    3.2438        .10837E-06** at limit **
   4  Prefactor     .10000E-03    21.220       -.16043E-06** at limit **
   5  Prefactor     .10252E-03    150.25       -.12259E-04** at limit **
   6  norm          12.453        11.586       -.44183E-07   -.55597E-04
   7  Prefactor     5.4043        8.3800       -.11712E-05   -.18481E-03
   8  Prefactor     14.883        51.673       -.18303E-05   -.23621E-04
   9  Prefactor     1.1516        378.99        .11265E-04    .15606E-04
  10  Prefactor     12.610        12.781       -.13777E-05   -.37858E-03
  11  norm          .10000E-03    1.1433       -.36007E-07** at limit **
  12  Prefactor     .10000E-03    5.8864       -.18629E-06** at limit **
  13  Prefactor     3.9272        2.8337       -.42098E-07   -.64139E-04
  14  Prefactor     .10002E-03    13.831       -.24731E-05** at limit **
  15  Prefactor     .10000E-03    3.3534       -.51178E-07** at limit **
  16  norm          2.1454        .70947       -.19968E-06   -.12509E-02
  17  Prefactor     .10000E-03    15.320       -.89380E-06** at limit **
  18  Prefactor     .10000E-03    11.916       -.83115E-07** at limit **
  19  Normalizat    .96411        .21224       -.74814E-06    .50418E-04
  20  Prefactor     1.1619        .17982        .70277E-06    .66666E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.33134
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000102518
  norm       = 12.4526
  Prefactor  = 5.40434
  Prefactor  = 14.8834
  Prefactor  = 1.15156
  Prefactor  = 12.6095
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.92717
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 2.14537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.964111
  Prefactor  = 1.16188
 **********
 **   18 **HESSE 
 **********

 FCN=   5525.723     FROM HESSE     STATUS=OK           293 CALLS     2076 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .37457        .44079E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.3313        .67724        .42039E-04   -1.5477    
   3  Prefactor     .10000E-03    3.2458        .13076E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    21.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10252E-03    395.09        .96123E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          12.453        11.579        .11353E-03   -1.5002    
   7  Prefactor     5.4043        8.3506        .17300E-03   -1.5243    
   8  Prefactor     14.883        51.592        .10358E-03   -1.4936    
   9  Prefactor     1.1516        367.27        .38288E-03   -1.5493    
  10  Prefactor     12.610        12.867        .11285E-03   -1.4998    
  11  norm          .10000E-03    2.4465        .15234E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.9611        .17598E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.9272        2.8318        .10241E-03   -1.5312    
  14  Prefactor     .10002E-03    16.074        .33996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    3.3700        .13288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.1454        .69754        .34219E-04   -1.5415    
  17  Prefactor     .10000E-03    15.498        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    11.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .96411        .24100        .27910E-03   -.94243    
  20  Prefactor     1.1619        .20477        .22227E-03   -.87513    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41345e-09
Minuit parameter uncertainties:
  1  3.62821e-07
  2  0.677248
  3  5.54072e-06
  4  1.21897e-05
  5  0.0635017
  6  11.5811
  7  8.35243
  8  51.7477
  9  41.3875
  10  12.8697
  11  3.05219e-05
  12  5.87028e-07
  13  2.83189
  14  0.00115584
  15  2.42715e-06
  16  0.697541
  17  5.24584e-06
  18  2.44433e-06
  19  0.24127
  20  0.204909
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.261e+01  1.287e+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.162e+00  2.049e-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:  9.641e-01  2.413e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.97
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.93e-08 +/- 1.96e-08
Energy Flux (Fixed Index): 1.34e-05 +/- 1.37e-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) = 5524.86636481
delta logL = 0.856379793501

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5524.86610505
delta logL = 0.856639553351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    21.002       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1438       1.0000          .0000       10.000    
     3 'Normalizat'    .97421       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1596       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=   5524.866     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      244 TOTAL
                     EDM=   .93E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     21.021        27.921        .21850E-02   -.14922E-03
   2  Index         1.1440        .73297        .24321        .32178E-05
   3  Normalizat    .97420        .20429        .45843E-01    .15100E-04
   4  Prefactor     1.1595        .17721        .35665E-01   -.84812E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 21.0211
  Index      = 1.14399
  Normalizat = 0.974203
  Prefactor  = 1.15955
 **********
 **   18 **HESSE 
 **********

 FCN=   5524.866     FROM HESSE     STATUS=OK            33 CALLS      277 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     21.021        21.874        .43700E-03   -1.4791    
   2  Index         1.1440        .65428        .12644E-01   -.88073    
   3  Normalizat    .97420        .23455        .27786E-03   -.93900    
   4  Prefactor     1.1595        .20402        .22252E-03   -.87585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.69784e-13
Minuit parameter uncertainties:
  1  21.8827
  2  0.65898
  3  0.234794
  4  0.204162
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818683': 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) = 5524.86610467
delta logL = 0.856639930376

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.102e+01  2.188e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.144e+00  6.590e-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.160e+00  2.042e-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:  9.742e-01  2.348e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.69
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.14 +/- 0.66
Photon Flux (Free Index): 6.12e-09 +/- 7.85e-09
Energy Flux (Free Index): 6.03e-05 +/- 8.91e-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/818683/cmap_HighResolution_379296001_379555201_4FGL_J1019.7+0511_daily_bin540.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.93e-08', energy_flux2='6.03e-05', photon_flux_error='1.96e-08', dlogl='8.57e-01', energy_flux='1.34e-05', photon_flux2='6.12e-09', job_status='DONE', time_completed='2021-09-01 18:27:15.702071', photon_index_error2='0.66', photon_index2='1.14', ts='5.97', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='8.91e-05', EG='0.96', time_epoch_completed='1630546035.7', return_code='0', job_id='818683', GAL2='1.16', EG2='0.97', return_code2='0', energy_flux_error='1.37e-05', photon_flux_error2='7.85e-09', ts2='7.69', photon_index='2.00' WHERE bin_id='540' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0101>
Subject: Job 818683: <4FGL_J1019.7+0511_daily_bin540> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin540> 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) <bullet0101>, 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:27:16 2021
Results reported at Wed Sep  1 18:27:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin540 154.942 5.1905 379296001 379555201 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 :                                   487.40 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

