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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin868
RA = 154.942, Dec = 5.1905
tmin = 464313601, tmax = 464572801
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='820197', job_status='RUN', time_executed='2021-09-01 18:24:15.370484', time_epoch_executed='1630545855.37' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='868'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820197

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820197/ft1_4FGL_J1019.7+0511_daily_bin868.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits


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

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

Done.
real 3.44
user 3.23
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits" evtable="EVENTS" scfile=/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits sctable="SC_DATA" outfile=/scratch/kocevski/820197/ltcube_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.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/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits
.....................!
real 13.48
user 13.10
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits sctable="SC_DATA" expcube=/scratch/kocevski/820197/ltcube_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.fits outfile=/scratch/kocevski/820197/expmap_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.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/820197/ltcube_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.fits
.....................!
real 190.90
user 185.77
sys 4.56

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/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits scfile=/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits outfile=/scratch/kocevski/820197/cmap_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.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.75
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits scfile=/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits outfile=/scratch/kocevski/820197/cmap_HighResolution_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.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.75
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits evtable="EVENTS" scfile=/scratch/kocevski/820197/ft2_4FGL_J1019.7+0511_daily_bin868.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820197/Model_4FGL_J1019.7+0511_daily_bin868.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/820197/ft1_filtered_4FGL_J1019.7+0511_daily_bin868.fits.....................!
real 61.26
user 59.24
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8348       1.0000         .10000E-03   10000.    
     2 'norm      '    .27882E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.7919       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.070       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.7072       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10503E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .21248E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    10.609       1.0000         .10000E-03   10000.    
    11 'norm      '    6.1448       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.1405       1.0000         .10000E-03   10000.    
    14 'Prefactor '    9.0271       1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.632       1.0000         .10000E-03   10000.    
    16 'norm      '    .12048E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.967       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.271       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0654       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75181       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=   6073.020     FROM MIGRAD    STATUS=CONVERGED    442 CALLS     2200 TOTAL
                     EDM=   .30E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8346        1.0996        .10928E-07   -.57547E-04
   2  norm          .10007E-03    .25372       -.46280E-07** at limit **
   3  Prefactor     4.7866        7.6673        .83944E-06   -.53125E-03
   4  Prefactor     18.073        42.733        .25012E-05    .25157E-05
   5  Prefactor     .10000E-03    18.884        .26594E-05** at limit **
   6  norm          .10000E-03    21.374       -.14089E-05** at limit **
   7  Prefactor     7.6988        13.150       -.55199E-07    .66920E-06
   8  Prefactor     .10000E-03    38.359        .49216E-06** at limit **
   9  Prefactor     .10000E-03    136.29       -.66242E-06** at limit **
  10  Prefactor     10.606        16.105       -.48928E-06    .37888E-05
  11  norm          6.1444        1.8924       -.58304E-08    .30798E-04
  12  Prefactor     .10000E-03    5.2646        .12898E-07** at limit **
  13  Prefactor     6.1397        4.0384        .14397E-06    .11047E-04
  14  Prefactor     9.0260        7.2020        .16145E-06    .76345E-05
  15  Prefactor     22.628        12.218       -.76711E-06    .13045E-03
  16  norm          .10000E-03    .35316       -.19203E-06** at limit **
  17  Prefactor     10.980        10.416        .12750E-05    .43074E-03
  18  Prefactor     20.265        20.842        .14449E-05    .24554E-04
  19  Normalizat    1.0655        .18743       -.28722E-06    .13146E-03
  20  Prefactor     .75187        .14476       -.13366E-06    .11729E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.83457
  norm       = 0.000100066
  Prefactor  = 4.78658
  Prefactor  = 18.0732
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.69881
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.6064
  norm       = 6.14441
  Prefactor  = 0.0001
  Prefactor  = 6.13972
  Prefactor  = 9.02604
  Prefactor  = 22.6279
  norm       = 0.0001
  Prefactor  = 10.98
  Prefactor  = 20.2654
  Normalizat = 1.06546
  Prefactor  = 0.751866
 **********
 **   18 **HESSE 
 **********

 FCN=   6073.020     FROM HESSE     STATUS=OK           309 CALLS     2509 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8346        1.0970        .60744E-04   -1.5437    
   2  norm          .10007E-03    1.0730        .12157E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     4.7866        14.859        .91895E-03   -1.5270    
   4  Prefactor     18.073        42.411        .94220E-04   -1.4857    
   5  Prefactor     .10000E-03    18.545        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    21.867        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6988        13.326        .14444E-03   -1.5153    
   8  Prefactor     .10000E-03    38.435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    136.29        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     10.606        16.038        .12301E-03   -1.5057    
  11  norm          6.1444        1.8926        .56511E-04   -1.5212    
  12  Prefactor     .10000E-03    5.4246        .34895E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     6.1397        4.0329        .11642E-03   -1.5212    
  14  Prefactor     9.0260        7.2057        .13340E-03   -1.5107    
  15  Prefactor     22.628        12.148        .84198E-04   -1.4756    
  16  norm          .10000E-03    3.0432        .77625E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.980        9.8099        .12098E-03   -1.5045    
  18  Prefactor     20.265        20.652        .88960E-04   -1.4807    
  19  Normalizat    1.0655        .22460        .25050E-03   -.90869    
  20  Prefactor     .75187        .16995        .23868E-03   -1.0153    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65058e-09
Minuit parameter uncertainties:
  1  1.09704
  2  0.000533409
  3  14.8701
  4  42.4816
  5  2.41406e-06
  6  1.94089e-05
  7  13.3307
  8  2.12591e-05
  9  0.000315942
  10  16.044
  11  1.89257
  12  1.77434e-06
  13  4.03309
  14  7.20643
  15  12.1493
  16  4.69428e-05
  17  9.81135
  18  20.6595
  19  0.224804
  20  0.170071
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.061e+01  1.604e+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:  7.519e-01  1.701e-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.065e+00  2.248e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.01
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.62e-08 +/- 2.45e-08
Energy Flux (Fixed Index): 1.13e-05 +/- 1.70e-05

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

Saving results to:
/scratch/kocevski/820197/likelihoodResults_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.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) = 6072.9034733
delta logL = 0.116391235185

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6072.89287402
delta logL = 0.126990514375

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2584       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5445       1.0000          .0000       10.000    
     3 'Normalizat'    1.0486       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75968       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=   6072.893     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      262 TOTAL
                     EDM=   .37E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2709        146.26        .48813E-02    .25154E-03
   2  Index         2.5441        3.1532        .10843        .15002E-03
   3  Normalizat    1.0486        .66693E-01    .40654E-01    .28093E-05
   4  Prefactor     .75972        .46184E-01    .43190E-01    .62551E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.27093
  Index      = 2.5441
  Normalizat = 1.04864
  Prefactor  = 0.759718
 **********
 **   18 **HESSE 
 **********

 FCN=   6072.893     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2709        32.530        .17830E-03   -1.5295    
   2  Index         2.5441        2.1697        .59309E-02   -.51344    
   3  Normalizat    1.0486        .21951        .25204E-03   -.91418    
   4  Prefactor     .75972        .17388        .23751E-03   -1.0123    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43839e-10
Minuit parameter uncertainties:
  1  23.5915
  2  2.27131
  3  0.219702
  4  0.174001
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820197': 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) = 6072.8928709
delta logL = 0.126993633618

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  4.271e+00  2.359e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.544e+00  2.271e+00  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.597e-01  1.740e-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.049e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.28
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.54 +/- 2.27
Photon Flux (Free Index): 3.14e-08 +/- 5.85e-08
Energy Flux (Free Index): 8.69e-06 +/- 1.26e-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/820197/cmap_HighResolution_464313601_464572801_4FGL_J1019.7+0511_daily_bin868.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-03', comment='SUCCESS', photon_flux='1.62e-08', energy_flux2='8.69e-06', photon_flux_error='2.45e-08', dlogl='1.27e-01', energy_flux='1.13e-05', photon_flux2='3.14e-08', job_status='DONE', time_completed='2021-09-01 18:34:03.947519', photon_index_error2='2.27', photon_index2='2.54', ts='1.01', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', photon_flux_upper_limit='7.78e-08', energy_flux_error2='1.26e-05', EG='1.07', time_epoch_completed='1630546443.95', return_code='0', job_id='820197', GAL2='0.76', EG2='1.05', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.85e-08', ts2='1.28', photon_index='2.00' WHERE bin_id='868' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:34:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0040>
Subject: Job 820197: <4FGL_J1019.7+0511_daily_bin868> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin868> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 18:20:37 2021
Job was executed on host(s) <bullet0040>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:20:38 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:20:38 2021
Terminated at Wed Sep  1 18:34:04 2021
Results reported at Wed Sep  1 18:34:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin868 154.942 5.1905 464313601 464572801 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 :                                   585.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

