/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 155 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 = 7416
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1019.7+0511_daily_bin234
RA = 154.942, Dec = 5.1905
tmin = 299980801, tmax = 300240001
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='817258', job_status='RUN', time_executed='2021-09-01 18:13:36.195857', time_epoch_executed='1630545216.2' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='234'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817258/ft1_4FGL_J1019.7+0511_daily_bin234.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817258/ft1_4FGL_J1019.7+0511_daily_bin234.fits outfile=/scratch/kocevski/817258/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin234.fits ra=154.942 dec=5.1905 rad=12.0 tmin=299980801.0 tmax=300240001.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 2.87
user 2.66
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.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/817258/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin234.fits evtable="EVENTS" outfile="/scratch/kocevski/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.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.44
user 0.29
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits" evtable="EVENTS" scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits sctable="SC_DATA" outfile=/scratch/kocevski/817258/ltcube_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.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/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits
.....................!
real 11.56
user 11.24
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits sctable="SC_DATA" expcube=/scratch/kocevski/817258/ltcube_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.fits outfile=/scratch/kocevski/817258/expmap_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.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/817258/ltcube_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.fits
.....................!
real 156.19
user 151.70
sys 3.93

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/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits outfile=/scratch/kocevski/817258/cmap_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.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.47
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits outfile=/scratch/kocevski/817258/cmap_HighResolution_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.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.49
user 0.34
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits evtable="EVENTS" scfile=/scratch/kocevski/817258/ft2_4FGL_J1019.7+0511_daily_bin234.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817258/Model_4FGL_J1019.7+0511_daily_bin234.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/817258/ft1_filtered_4FGL_J1019.7+0511_daily_bin234.fits.....................!
real 49.44
user 48.25
sys 1.03

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1365       1.0000         .10000E-03   10000.    
     2 'norm      '    5.2052       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24906E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.491       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .29282E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10833E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10386E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    7.1107       1.0000         .10000E-03   10000.    
    11 'norm      '    1.6915       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.1473       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.6018       1.0000         .10000E-03   10000.    
    15 'Prefactor '    26.951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.341       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1342       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1166       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=   6020.092     FROM MIGRAD    STATUS=CONVERGED    432 CALLS     1822 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1360        1.3199        .22822E-06    .26243E-03
   2  norm          5.2051        1.0965        .20109E-07   -.36815E-03
   3  Prefactor     .10123E-03    9.8848        .19491E-05** at limit **
   4  Prefactor     19.480        47.414        .17231E-06   -.95828E-04
   5  Prefactor     .10000E-03    22.180       -.25305E-06** at limit **
   6  norm          .10049E-03    17.596        .46467E-05** at limit **
   7  Prefactor     .10000E-03    6.0238       -.12480E-07** at limit **
   8  Prefactor     .10001E-03    96.453       -.29826E-06** at limit **
   9  Prefactor     .10000E-03    20.050       -.42194E-07** at limit **
  10  Prefactor     7.1105        10.504        .95431E-07   -.94604E-04
  11  norm          1.6915        1.5002        .69888E-07   -.25708E-04
  12  Prefactor     .10000E-03    11.476       -.44859E-06** at limit **
  13  Prefactor     5.1467        3.7672        .16891E-05    .14164E-02
  14  Prefactor     1.5967        8.3228        .25250E-05    .43614E-03
  15  Prefactor     26.950        11.823       -.37556E-06   -.91759E-04
  16  norm          .10000E-03    .21097        .89274E-08** at limit **
  17  Prefactor     .10000E-03    5.4778        .97677E-08** at limit **
  18  Prefactor     14.343        18.334        .73738E-07   -.95105E-05
  19  Normalizat    1.1345        .21380       -.12578E-05   -.26112E-03
  20  Prefactor     1.1165        .17617        .12803E-06   -.31120E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.13601
  norm       = 5.2051
  Prefactor  = 0.000101229
  Prefactor  = 19.4799
  Prefactor  = 0.000100003
  norm       = 0.000100488
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 7.11048
  norm       = 1.69146
  Prefactor  = 0.0001
  Prefactor  = 5.14674
  Prefactor  = 1.59674
  Prefactor  = 26.9498
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 14.3434
  Normalizat = 1.13446
  Prefactor  = 1.11655
 **********
 **   18 **HESSE 
 **********

 FCN=   6020.092     FROM HESSE     STATUS=OK           295 CALLS     2117 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1360        1.2935        .91688E-04   -1.5495    
   2  norm          5.2051        1.0973        .35605E-04   -1.5252    
   3  Prefactor     .10123E-03    96.354        .42325E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.480        47.335        .90722E-04   -1.4825    
   5  Prefactor     .10000E-03    22.128        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10049E-03    56.294        .48876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    6.0469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    97.014        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.000        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     7.1105        10.478        .15043E-03   -1.5175    
  11  norm          1.6915        1.4846        .85561E-04   -1.5448    
  12  Prefactor     .10000E-03    11.936        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.1467        3.8595        .61738E-03   -1.5254    
  14  Prefactor     1.5967        8.3231        .33494E-03   -1.5455    
  15  Prefactor     26.950        11.809        .77168E-04   -1.4669    
  16  norm          .10000E-03    .39004        .68957E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.5238        .17713E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.343        18.329        .10577E-03   -1.4950    
  19  Normalizat    1.1345        .25113        .28668E-03   -.88653    
  20  Prefactor     1.1165        .20880        .24732E-03   -.88939    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17277e-08
Minuit parameter uncertainties:
  1  1.29355
  2  1.09735
  3  0.0218002
  4  47.4267
  5  0.000498059
  6  0.0104878
  7  2.4843e-05
  8  0.00179083
  9  0.000342776
  10  10.4808
  11  1.48461
  12  4.94436e-05
  13  3.85964
  14  7.29242
  15  11.8098
  16  1.3654e-06
  17  4.03915e-06
  18  18.3364
  19  0.251396
  20  0.20895
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  7.110e+00  1.048e+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.117e+00  2.090e-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.134e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/817258/likelihoodResults_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.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): 0
logL (Free Index) = 6019.74707448
delta logL = 0.345168044428

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6019.7349329
delta logL = 0.357309625469

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.010       1.0000         .10000E-03   10000.    
     2 'Index     '    1.3421       1.0000          .0000       10.000    
     3 'Normalizat'    1.1411       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1129       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=   6019.735     FROM MIGRAD    STATUS=CONVERGED     95 CALLS      289 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.017        20.323        .10010E-03    .10790E-04
   2  Index         1.3418        .70091        .12871E-01    .11778E-03
   3  Normalizat    1.1412        .24091        .28589E-03   -.11731E-04
   4  Prefactor     1.1128        .20743        .24760E-03    .11020E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.0166
  Index      = 1.34177
  Normalizat = 1.14119
  Prefactor  = 1.11281
 **********
 **   18 **HESSE 
 **********

 FCN=   6019.735     FROM HESSE     STATUS=OK            25 CALLS      314 TOTAL
                     EDM=   .29E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.017        20.218        .40039E-05   -1.4907    
   2  Index         1.3418        .69764        .25743E-02   -.82073    
   3  Normalizat    1.1412        .24114        .11435E-04   -.88440    
   4  Prefactor     1.1128        .20763        .99039E-05   -.89058    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.9477e-12
Minuit parameter uncertainties:
  1  20.227
  2  0.702603
  3  0.241375
  4  0.207783
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817258': 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) = 6019.73493264
delta logL = 0.357309880913

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.602e+01  2.023e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.342e+00  7.026e-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.113e+00  2.078e-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.141e+00  2.414e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.59
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.34 +/- 0.70
Photon Flux (Free Index): 5.84e-09 +/- 8.87e-09
Energy Flux (Free Index): 3.12e-05 +/- 5.93e-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/817258/cmap_HighResolution_299980801_300240001_4FGL_J1019.7+0511_daily_bin234.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.93e-03', comment='SUCCESS', energy_flux2='3.12e-05', dlogl='3.57e-01', photon_flux2='5.84e-09', job_status='DONE', time_completed='2021-09-01 18:21:11.941460', photon_index_error2='0.70', photon_index2='1.34', ts='0.88', fit_tolerance='1e-08', GAL='1.12', photon_index_error='0.00', photon_flux_upper_limit='6.58e-08', energy_flux_error2='5.93e-05', EG='1.13', time_epoch_completed='1630545671.94', return_code='0', job_id='817258', GAL2='1.11', EG2='1.14', return_code2='0', photon_flux_error2='8.87e-09', ts2='1.59', photon_index='2.00' WHERE bin_id='234' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:21:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 817258: <4FGL_J1019.7+0511_daily_bin234> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin234> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:52 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:53 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:10:53 2021
Terminated at Wed Sep  1 18:21:12 2021
Results reported at Wed Sep  1 18:21:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin234 154.942 5.1905 299980801 300240001 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 :                                   452.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             250.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   619 sec.
    Turnaround time :                            620 sec.

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

