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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin470
RA = 154.942, Dec = 5.1905
tmin = 361152001, tmax = 361411201
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='818571', job_status='RUN', time_executed='2021-09-01 18:18:03.519283', time_epoch_executed='1630545483.52' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='470'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818571

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818571/ft1_4FGL_J1019.7+0511_daily_bin470.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818571/ft1_4FGL_J1019.7+0511_daily_bin470.fits outfile=/scratch/kocevski/818571/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin470.fits ra=154.942 dec=5.1905 rad=12.0 tmin=361152001.0 tmax=361411201.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.60
user 3.35
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818571/ft1_filtered_4FGL_J1019.7+0511_daily_bin470.fits" evtable="EVENTS" scfile=/scratch/kocevski/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits sctable="SC_DATA" outfile=/scratch/kocevski/818571/ltcube_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.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/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits
.....................!
real 14.82
user 14.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818571/ft1_filtered_4FGL_J1019.7+0511_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits sctable="SC_DATA" expcube=/scratch/kocevski/818571/ltcube_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.fits outfile=/scratch/kocevski/818571/expmap_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.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/818571/ltcube_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.fits
.....................!
real 191.89
user 186.37
sys 4.84

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/818571/ft1_filtered_4FGL_J1019.7+0511_daily_bin470.fits scfile=/scratch/kocevski/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits outfile=/scratch/kocevski/818571/cmap_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.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.54
user 0.39
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818571/ft1_filtered_4FGL_J1019.7+0511_daily_bin470.fits evtable="EVENTS" scfile=/scratch/kocevski/818571/ft2_4FGL_J1019.7+0511_daily_bin470.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818571/Model_4FGL_J1019.7+0511_daily_bin470.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/818571/ft1_filtered_4FGL_J1019.7+0511_daily_bin470.fits.....................!
real 57.23
user 55.78
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.2533       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1371       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    28.596       1.0000         .10000E-03   10000.    
     9 'Prefactor '    82.142       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10378E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .53165       1.0000         .10000E-03   10000.    
    12 'Prefactor '    11.794       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5908       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.937       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0191       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .16870E-02   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10180E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .36273       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6018       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=   5939.062     FROM MIGRAD    STATUS=CONVERGED    416 CALLS     2109 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.2534        1.9715        .62826E-07    .25229E-04
   2  norm          2.1372        .87622       -.62288E-07   -.10553E-03
   3  Prefactor     .10000E-03    11.528        .38686E-06** at limit **
   4  Prefactor     .10000E-03    75.413       -.13165E-04** at limit **
   5  Prefactor     .10000E-03    22.833        .12706E-04** at limit **
   6  norm          .10000E-03    32.853       -.20947E-04** at limit **
   7  Prefactor     .10000E-03    5.6176        .49206E-07** at limit **
   8  Prefactor     28.605        47.494        .14422E-04    .98379E-04
   9  Prefactor     82.129        58.144       -.10407E-04    .25926E-03
  10  Prefactor     .10000E-03    24.286       -.98166E-05** at limit **
  11  norm          .53170        1.3038       -.13513E-06   -.12391E-02
  12  Prefactor     11.795        9.7666       -.47753E-06   -.13838E-05
  13  Prefactor     9.5909        5.0611       -.28678E-06    .17086E-04
  14  Prefactor     .10000E-03    4.8729       -.77105E-06** at limit **
  15  Prefactor     11.936        12.139        .10259E-07    .17559E-03
  16  norm          3.0186        .94072        .60495E-07    .50085E-02
  17  Prefactor     .13381E-02    8.4850       -.27444E-05** at limit **
  18  Prefactor     .10000E-03    40.079        .30905E-04** at limit **
  19  Normalizat    .36278        .25009       -.13460E-05    .91180E-04
  20  Prefactor     1.6017        .20845        .15921E-06    .30874E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.2534
  norm       = 2.13719
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 28.6054
  Prefactor  = 82.1292
  Prefactor  = 0.000100004
  norm       = 0.531703
  Prefactor  = 11.7953
  Prefactor  = 9.5909
  Prefactor  = 0.0001
  Prefactor  = 11.9357
  norm       = 3.01864
  Prefactor  = 0.00133814
  Prefactor  = 0.0001
  Normalizat = 0.362785
  Prefactor  = 1.60167
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.062     FROM HESSE     STATUS=OK           295 CALLS     2404 TOTAL
                     EDM=   .80E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.2534        1.9635        .57584E-04   -1.5208    
   2  norm          2.1372        .87087        .43645E-04   -1.5416    
   3  Prefactor     .10000E-03    11.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    76.101        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    22.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    33.540        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.6337        .17820E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     28.605        47.659        .74920E-04   -1.4638    
   9  Prefactor     82.129        57.174        .44318E-04   -1.3893    
  10  Prefactor     .10000E-03    24.069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .53170        1.2796        .13042E-03   -1.5562    
  12  Prefactor     11.795        9.6847        .11665E-03   -1.5021    
  13  Prefactor     9.5909        5.0322        .11253E-03   -1.5088    
  14  Prefactor     .10000E-03    4.9060        .16609E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.936        12.056        .11595E-03   -1.5017    
  16  norm          3.0186        1.0007        .35773E-04   -1.5360    
  17  Prefactor     .13381E-02    21.630        .58883E-01   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    40.495        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .36278        .24730        .47507E-03   -1.1927    
  20  Prefactor     1.6017        .21434        .21396E-03   -.74731    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.03836e-09
Minuit parameter uncertainties:
  1  1.96347
  2  0.870874
  3  5.62371e-05
  4  0.000215287
  5  2.53307e-06
  6  0.000592091
  7  8.07719e-05
  8  47.7228
  9  57.212
  10  0.000593359
  11  1.27971
  12  9.68595
  13  5.03247
  14  4.24832e-06
  15  12.0587
  16  1.00066
  17  0.327414
  18  6.83287e-05
  19  0.248045
  20  0.21446
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  5.934e-04  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.602e+00  2.145e-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:  3.628e-01  2.480e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.58e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818571/likelihoodResults_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.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) = 5939.06262814
delta logL = -0.000197918845515

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5939.06243067
delta logL = -4.48410901299e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10348E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0571       1.0000          .0000       10.000    
     3 'Normalizat'    .36278       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6017       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=   5939.062     FROM MIGRAD    STATUS=CONVERGED     58 CALLS      247 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    5.0358        .90712E-02** at limit **
   2  Index         1.9873        8.6822        .50000        .20509E-04
   3  Normalizat    .36279        .23599E-02    .10722        .49457E-04
   4  Prefactor     1.6017        .21141E-02    .48406E-01   -.20737E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100007
  Index      = 1.98733
  Normalizat = 0.362786
  Prefactor  = 1.60167
 **********
 **   18 **HESSE 
 **********

 FCN=   5939.062     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      280 TOTAL
                     EDM=   .53E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    40.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9873        8.9213        .50000       -.64667    
   3  Normalizat    .36279        .66938E-02    .47507E-03   -1.1927    
   4  Prefactor     1.6017        .60131E-02    .21396E-03   -.74731    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.25483e-08
Minuit parameter uncertainties:
  1  0.00110535
  2  40.2533
  3  0.00669386
  4  0.00601314
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818571': 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) = 5939.06243017
delta logL = 5.11345206178e-08

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.105e-03  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.987e+00  4.025e+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.602e+00  6.013e-03  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:  3.628e-01  6.694e-03  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/818571/cmap_HighResolution_361152001_361411201_4FGL_J1019.7+0511_daily_bin470.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.58e-03', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-01 18:27:23.038732', job_id='818571', GAL2='1.60', fit_tolerance='1e-08', EG2='0.36', EG='0.36', time_epoch_completed='1630546043.04', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.60', dlogl='5.11e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='470' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 818571: <4FGL_J1019.7+0511_daily_bin470> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin470> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:30 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:15:32 2021
Terminated at Wed Sep  1 18:27:23 2021
Results reported at Wed Sep  1 18:27:23 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin470 154.942 5.1905 361152001 361411201 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 :                                   558.51 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.32 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   711 sec.
    Turnaround time :                            713 sec.

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

