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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin933
RA = 154.942, Dec = 5.1905
tmin = 481161601, tmax = 481420801
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='821358', job_status='RUN', time_executed='2021-09-01 18:29:25.912097', time_epoch_executed='1630546165.91' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='933'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821358

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821358/ft1_4FGL_J1019.7+0511_daily_bin933.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821358/ft1_4FGL_J1019.7+0511_daily_bin933.fits outfile=/scratch/kocevski/821358/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin933.fits ra=154.942 dec=5.1905 rad=12.0 tmin=481161601.0 tmax=481420801.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.68
user 3.44
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits" evtable="EVENTS" scfile=/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits sctable="SC_DATA" outfile=/scratch/kocevski/821358/ltcube_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.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/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits
.....................!
real 14.71
user 14.37
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits sctable="SC_DATA" expcube=/scratch/kocevski/821358/ltcube_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.fits outfile=/scratch/kocevski/821358/expmap_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.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/821358/ltcube_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.fits
.....................!
real 190.47
user 185.76
sys 4.35

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/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits scfile=/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits outfile=/scratch/kocevski/821358/cmap_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits scfile=/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits outfile=/scratch/kocevski/821358/cmap_HighResolution_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.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.58
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits evtable="EVENTS" scfile=/scratch/kocevski/821358/ft2_4FGL_J1019.7+0511_daily_bin933.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821358/Model_4FGL_J1019.7+0511_daily_bin933.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/821358/ft1_filtered_4FGL_J1019.7+0511_daily_bin933.fits.....................!
real 59.80
user 58.55
sys 1.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .88946       1.0000         .10000E-03   10000.    
     2 'norm      '    .36637       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5886       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .38545E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.147       1.0000         .10000E-03   10000.    
     6 'norm      '    .13665       1.0000         .10000E-03   10000.    
     7 'Prefactor '    6.1439       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .26986E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10686E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8586       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.1058       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.6725       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    17.401       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0511       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99163       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=   6268.771     FROM MIGRAD    STATUS=CONVERGED    446 CALLS     2097 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .88917        1.1527       -.46025E-07   -.16892E-03
   2  norm          .36635        .45161       -.20903E-07   -.18729E-03
   3  Prefactor     8.7170        12.353        .57111E-06    .34748E-03
   4  Prefactor     .10000E-03    83.328        .54899E-05** at limit **
   5  Prefactor     10.107        24.392       -.32984E-05   -.15134E-04
   6  norm          .10362E-03    16.226       -.21047E-05** at limit **
   7  Prefactor     6.1277        10.705        .51890E-06    .17221E-03
   8  Prefactor     .10000E-03    16.571       -.60334E-07** at limit **
   9  Prefactor     .10000E-03    32.870       -.14716E-06** at limit **
  10  Prefactor     .10000E-03    8.9542       -.12367E-06** at limit **
  11  norm          2.8586        1.5270        .75715E-08    .16697E-04
  12  Prefactor     .10000E-03    3.5525       -.20225E-07** at limit **
  13  Prefactor     .10000E-03    1.1939       -.21219E-07** at limit **
  14  Prefactor     3.1018        14.495        .40205E-05    .42429E-04
  15  Prefactor     .10000E-03    3.7668       -.31937E-07** at limit **
  16  norm          2.6726        .70083        .11620E-07    .80674E-04
  17  Prefactor     .10000E-03    3.4044       -.12519E-07** at limit **
  18  Prefactor     17.301        20.240       -.12449E-05    .10958E-04
  19  Normalizat    1.0511        .19920       -.11609E-05    .90065E-04
  20  Prefactor     .99171        .15869        .83046E-06    .40608E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.889169
  norm       = 0.366346
  Prefactor  = 8.717
  Prefactor  = 0.0001
  Prefactor  = 10.107
  norm       = 0.000103621
  Prefactor  = 6.12774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.85856
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.1018
  Prefactor  = 0.0001
  norm       = 2.67255
  Prefactor  = 0.0001
  Prefactor  = 17.3015
  Normalizat = 1.05107
  Prefactor  = 0.991708
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.771     FROM HESSE     STATUS=OK           307 CALLS     2404 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .88917        1.0524        .92806E-03   -1.5519    
   2  norm          .36635        .42002        .56600E-03   -1.5587    
   3  Prefactor     8.7170        12.712        .13678E-03   -1.5117    
   4  Prefactor     .10000E-03    84.810        .19540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.107        24.476        .12579E-03   -1.5072    
   6  norm          .10362E-03    17.838        .84308E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     6.1277        10.702        .16197E-03   -1.5213    
   8  Prefactor     .10000E-03    16.584        .21434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.896        .20718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.9637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8586        1.5230        .68251E-04   -1.5370    
  12  Prefactor     .10000E-03    3.6049        .14568E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    1.2070        .84449E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.1018        14.381        .11505E-02   -1.5356    
  15  Prefactor     .10000E-03    3.8322        .15002E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.6726        .70097        .32691E-04   -1.5381    
  17  Prefactor     .10000E-03    3.4122        .14261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     17.301        20.192        .96014E-04   -1.4876    
  19  Normalizat    1.0511        .23380        .26738E-03   -.91339    
  20  Prefactor     .99171        .18884        .22979E-03   -.93006    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.73355e-09
Minuit parameter uncertainties:
  1  1.05247
  2  0.420024
  3  12.7163
  4  0.000248654
  5  24.5005
  6  0.0160793
  7  10.7055
  8  3.77933e-06
  9  3.15332e-05
  10  9.45483e-06
  11  1.52307
  12  6.47692e-07
  13  6.97987e-07
  14  13.3629
  15  1.39704e-07
  16  0.700977
  17  1.80096e-07
  18  20.1996
  19  0.234032
  20  0.188961
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  9.455e-06  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:  9.917e-01  1.890e-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.051e+00  2.340e-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.44e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.08e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/821358/likelihoodResults_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.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) = 6268.77148186
delta logL = -0.000531415544174

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6268.77095056
delta logL = -1.16960109153e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9839       1.0000          .0000       10.000    
     3 'Normalizat'    1.0510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99175       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=   6268.771     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      206 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4797        .90712E-02** at limit **
   2  Index         1.9711        6.5002        .50000        .11042E-04
   3  Normalizat    1.0511        .24675E-02    .60459E-01    .27479E-04
   4  Prefactor     .99171        .20765E-02    .46164E-01    .23406E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.97106
  Normalizat = 1.05106
  Prefactor  = 0.991709
 **********
 **   18 **HESSE 
 **********

 FCN=   6268.771     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      239 TOTAL
                     EDM=   .48E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    31.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9711        5.9255        .50000       -.65076    
   3  Normalizat    1.0511        .87647E-02    .26738E-03   -.91339    
   4  Prefactor     .99171        .73803E-02    .22979E-03   -.93006    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.76546e-08
Minuit parameter uncertainties:
  1  4.39786e-05
  2  79.5198
  3  0.00876474
  4  0.00738029
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821358': 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) = 6268.77095037
delta logL = 7.46413206798e-08

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.398e-05  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.971e+00  7.952e+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:  9.917e-01  7.380e-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:  1.051e+00  8.765e-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/821358/cmap_HighResolution_481161601_481420801_4FGL_J1019.7+0511_daily_bin933.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.08e-03', job_status='DONE', photon_flux_upper_limit='5.44e-08', time_completed='2021-09-01 18:38:59.913271', job_id='821358', GAL2='0.99', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1630546739.91', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='7.46e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='933' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:38:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 821358: <4FGL_J1019.7+0511_daily_bin933> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin933> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 18:25:20 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:25:22 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:25:22 2021
Terminated at Wed Sep  1 18:39:00 2021
Results reported at Wed Sep  1 18:39:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin933 154.942 5.1905 481161601 481420801 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 :                                   573.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

