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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin786
RA = 154.942, Dec = 5.1905
tmin = 443059201, tmax = 443318401
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='820063', job_status='RUN', time_executed='2021-09-01 18:24:05.203416', time_epoch_executed='1630545845.2' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='786'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820063

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820063/ft1_4FGL_J1019.7+0511_daily_bin786.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820063/ft1_4FGL_J1019.7+0511_daily_bin786.fits outfile=/scratch/kocevski/820063/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin786.fits ra=154.942 dec=5.1905 rad=12.0 tmin=443059201.0 tmax=443318401.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.78
user 3.57
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits" evtable="EVENTS" scfile=/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits sctable="SC_DATA" outfile=/scratch/kocevski/820063/ltcube_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.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/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits
.....................!
real 12.24
user 11.86
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits sctable="SC_DATA" expcube=/scratch/kocevski/820063/ltcube_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.fits outfile=/scratch/kocevski/820063/expmap_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.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/820063/ltcube_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.fits
.....................!
real 191.06
user 186.41
sys 4.28

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/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits scfile=/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits outfile=/scratch/kocevski/820063/cmap_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.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.60
user 0.35
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits scfile=/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits outfile=/scratch/kocevski/820063/cmap_HighResolution_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.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.65
user 0.44
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits evtable="EVENTS" scfile=/scratch/kocevski/820063/ft2_4FGL_J1019.7+0511_daily_bin786.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820063/Model_4FGL_J1019.7+0511_daily_bin786.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/820063/ft1_filtered_4FGL_J1019.7+0511_daily_bin786.fits.....................!
real 50.68
user 48.02
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8135       1.0000         .10000E-03   10000.    
     2 'norm      '    .52249       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.7588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .42070E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .29834E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    43.049       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .15883E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10206E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .89242       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.3335       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.5221       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .95723       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.156       1.0000         .10000E-03   10000.    
    16 'norm      '    .68574       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11036E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .78331       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2398       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=   5052.357     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2084 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8131        1.6210       -.25350E-09    .15112E-03
   2  norm          .52238        .59870       -.26339E-06   -.16477E-02
   3  Prefactor     1.7661        15.528        .23432E-05    .10175E-03
   4  Prefactor     .10001E-03    76.441       -.27638E-05** at limit **
   5  Prefactor     .10000E-03    21.409       -.60252E-06** at limit **
   6  norm          .10003E-03    56.147        .98504E-05** at limit **
   7  Prefactor     .10000E-03    20.705       -.58259E-05** at limit **
   8  Prefactor     43.144        56.383       -.42953E-05   -.16530E-03
   9  Prefactor     .10000E-03    75.314        .21491E-05** at limit **
  10  Prefactor     .10000E-03    9.4925        .52052E-06** at limit **
  11  norm          .89261        1.0425       -.90898E-07   -.31847E-03
  12  Prefactor     1.3307        9.9470        .46357E-06    .77123E-04
  13  Prefactor     5.5214        3.1207        .41602E-07    .58874E-04
  14  Prefactor     .94710        9.6311        .68461E-06    .13263E-03
  15  Prefactor     10.155        6.7658        .96695E-07    .84181E-04
  16  norm          .68566        .48118        .98386E-07    .61551E-03
  17  Prefactor     .10040E-03    18.477        .58833E-05** at limit **
  18  Prefactor     .10000E-03    8.8888       -.30659E-06** at limit **
  19  Normalizat    .78389        .23651       -.61396E-07    .15332E-03
  20  Prefactor     1.2393        .19567        .84273E-06   -.17558E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.81315
  norm       = 0.52238
  Prefactor  = 1.76609
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.000100035
  Prefactor  = 0.000100001
  Prefactor  = 43.1441
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.89261
  Prefactor  = 1.33072
  Prefactor  = 5.5214
  Prefactor  = 0.947102
  Prefactor  = 10.1548
  norm       = 0.685659
  Prefactor  = 0.000100398
  Prefactor  = 0.0001
  Normalizat = 0.78389
  Prefactor  = 1.23933
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.357     FROM HESSE     STATUS=OK           309 CALLS     2393 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8131        1.6226        .56529E-04   -1.5317    
   2  norm          .52238        .58288        .57166E-03   -1.5563    
   3  Prefactor     1.7661        14.702        .31598E-03   -1.5442    
   4  Prefactor     .10001E-03    77.221        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    21.455        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10003E-03    69.633        .46149E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.147        .36344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     43.144        57.847        .61101E-04   -1.4393    
   9  Prefactor     .10000E-03    75.994        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    9.5350        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .89261        1.0122        .75386E-04   -1.5519    
  12  Prefactor     1.3307        9.9781        .38008E-03   -1.5477    
  13  Prefactor     5.5214        3.1190        .90588E-04   -1.5238    
  14  Prefactor     .94710        44.537        .36507E-02   -1.5513    
  15  Prefactor     10.155        6.7622        .12573E-03   -1.5071    
  16  norm          .68566        .48436        .38626E-04   -1.5542    
  17  Prefactor     .10040E-03    5.6891        .53021E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.9097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .78389        .25802        .29416E-03   -1.0067    
  20  Prefactor     1.2393        .20726        .21160E-03   -.85129    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.57775e-09
Minuit parameter uncertainties:
  1  1.62259
  2  0.582884
  3  10.1943
  4  0.00127511
  5  0.000135249
  6  0.00312359
  7  0.000227578
  8  57.9228
  9  0.000921066
  10  9.40898e-05
  11  1.01227
  12  7.28924
  13  3.11914
  14  12.999
  15  6.76266
  16  0.484366
  17  0.00300987
  18  2.94673e-05
  19  0.258427
  20  0.2074
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  9.409e-05  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.239e+00  2.074e-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:  7.839e-01  2.584e-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: 5.71e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/820063/likelihoodResults_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.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) = 5052.35716675
delta logL = -0.000498901866195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5052.35666788
delta logL = -3.65780579159e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9871       1.0000          .0000       10.000    
     3 'Normalizat'    .78393       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2393       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=   5052.357     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    32.123        .90712E-02** at limit **
   2  Index         1.9769        5.0175        .50000        .84908E-05
   3  Normalizat    .78389        .92996E-02    .66491E-01    .17902E-04
   4  Prefactor     1.2393        .82568E-02    .33762E-01   -.57596E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97694
  Normalizat = 0.783885
  Prefactor  = 1.23933
 **********
 **   18 **HESSE 
 **********

 FCN=   5052.357     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      238 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    424.79        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9769        5.6849        .50000       -.64928    
   3  Normalizat    .78389        .35584E-01    .29417E-03   -1.0067    
   4  Prefactor     1.2393        .31646E-01    .21160E-03   -.85129    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.92615e-09
Minuit parameter uncertainties:
  1  5.49451e-05
  2  26.7105
  3  0.035585
  4  0.0316462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820063': 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) = 5052.3566678
delta logL = 4.38376446255e-08

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  5.495e-05  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.977e+00  2.671e+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.239e+00  3.165e-02  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  7.839e-01  3.558e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/820063/cmap_HighResolution_443059201_443318401_4FGL_J1019.7+0511_daily_bin786.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.28e-03', job_status='DONE', photon_flux_upper_limit='5.71e-08', time_completed='2021-09-01 18:32:43.651196', job_id='820063', GAL2='1.24', fit_tolerance='1e-08', EG2='0.78', EG='0.78', time_epoch_completed='1630546363.65', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.24', dlogl='4.38e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='786' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:32:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 820063: <4FGL_J1019.7+0511_daily_bin786> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin786> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 18:20:27 2021
Job was executed on host(s) <bullet0057>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:20:28 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:28 2021
Terminated at Wed Sep  1 18:32:44 2021
Results reported at Wed Sep  1 18:32:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin786 154.942 5.1905 443059201 443318401 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 :                                   517.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             257.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   735 sec.
    Turnaround time :                            737 sec.

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

