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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin155
RA = 154.942, Dec = 5.1905
tmin = 279504001, tmax = 279763201
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='817146', job_status='RUN', time_executed='2021-09-01 18:12:47.886289', time_epoch_executed='1630545167.89' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='155'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817146

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817146/ft1_4FGL_J1019.7+0511_daily_bin155.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817146/ft1_4FGL_J1019.7+0511_daily_bin155.fits outfile=/scratch/kocevski/817146/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin155.fits ra=154.942 dec=5.1905 rad=12.0 tmin=279504001.0 tmax=279763201.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.61
user 3.34
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817146/ft1_filtered_4FGL_J1019.7+0511_daily_bin155.fits" evtable="EVENTS" scfile=/scratch/kocevski/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits sctable="SC_DATA" outfile=/scratch/kocevski/817146/ltcube_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.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/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits
.....................!
real 15.18
user 14.78
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817146/ft1_filtered_4FGL_J1019.7+0511_daily_bin155.fits evtable="EVENTS" scfile=/scratch/kocevski/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits sctable="SC_DATA" expcube=/scratch/kocevski/817146/ltcube_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.fits outfile=/scratch/kocevski/817146/expmap_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.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/817146/ltcube_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.fits
.....................!
real 191.52
user 186.59
sys 4.51

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/817146/ft1_filtered_4FGL_J1019.7+0511_daily_bin155.fits scfile=/scratch/kocevski/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits outfile=/scratch/kocevski/817146/cmap_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817146/ft1_filtered_4FGL_J1019.7+0511_daily_bin155.fits scfile=/scratch/kocevski/817146/ft2_4FGL_J1019.7+0511_daily_bin155.fits outfile=/scratch/kocevski/817146/cmap_HighResolution_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.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.57
user 0.40
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1947       1.0000         .10000E-03   10000.    
     2 'norm      '    .60257E-01   1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.902       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.1334       1.0000         .10000E-03   10000.    
     7 'Prefactor '    30.889       1.0000         .10000E-03   10000.    
     8 'Prefactor '    36.231       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9220       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10074E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.8846       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2309       1.0000         .10000E-03   10000.    
    16 'norm      '    .20071       1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.176       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .90365       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=   7579.339     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     2086 TOTAL
                     EDM=   .95E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1947        1.6812        .86791E-07   -.57898E-04
   2  norm          .61708E-01    .27580        .16683E-06   -.10286E-02
   3  Prefactor     10.957        22.572       -.50506E-05   -.12170E-03
   4  Prefactor     .10000E-03    36.421       -.50262E-06** at limit **
   5  Prefactor     .10000E-03    10.185       -.74161E-07** at limit **
   6  norm          1.0599        112.78        .16707E-04   -.20707E-04
   7  Prefactor     30.888        13.330       -.96753E-07   -.43380E-03
   8  Prefactor     36.275        75.779       -.15993E-05    .43184E-04
   9  Prefactor     .10001E-03    44.606        .17133E-06** at limit **
  10  Prefactor     .10000E-03    6.4572       -.16091E-07** at limit **
  11  norm          1.9220        1.2645        .41414E-08   -.18541E-04
  12  Prefactor     .10000E-03    3.7061       -.14309E-06** at limit **
  13  Prefactor     2.8824        3.8957        .93434E-06   -.84137E-03
  14  Prefactor     .10000E-03    2.3045       -.13724E-07** at limit **
  15  Prefactor     6.2381        11.150        .12374E-07    .23915E-04
  16  norm          .20191        .57116       -.39793E-06   -.13657E-02
  17  Prefactor     22.150        14.940        .81637E-06    .27152E-03
  18  Prefactor     .10000E-03    13.006       -.98224E-07** at limit **
  19  Normalizat    1.4933        .21262       -.12279E-05   -.12455E-04
  20  Prefactor     .90378        .15867        .11502E-05   -.10523E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.19471
  norm       = 0.0617081
  Prefactor  = 10.9565
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  norm       = 1.05987
  Prefactor  = 30.8881
  Prefactor  = 36.275
  Prefactor  = 0.00010001
  Prefactor  = 0.0001
  norm       = 1.92202
  Prefactor  = 0.0001
  Prefactor  = 2.88235
  Prefactor  = 0.0001
  Prefactor  = 6.23813
  norm       = 0.201914
  Prefactor  = 22.1503
  Prefactor  = 0.0001
  Normalizat = 1.49328
  Prefactor  = 0.903777
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.339     FROM HESSE     STATUS=OK           299 CALLS     2385 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1947        1.6781        .92902E-04   -1.5412    
   2  norm          .61708E-01    1.2185        .83764E-03   -1.5658    
   3  Prefactor     10.957        23.291        .12134E-03   -1.5046    
   4  Prefactor     .10000E-03    36.699        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.0599        123.72        .43822E-02   -1.5502    
   7  Prefactor     30.888        13.328        .72092E-04   -1.4596    
   8  Prefactor     36.275        76.525        .66581E-04   -1.4503    
   9  Prefactor     .10001E-03    44.790        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    6.4612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9220        1.2563        .76097E-04   -1.5431    
  12  Prefactor     .10000E-03    3.7496        .16356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.8824        3.9313        .91260E-03   -1.5368    
  14  Prefactor     .10000E-03    2.3072        .12907E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2381        11.203        .16082E-03   -1.5208    
  16  norm          .20191        .48133        .81445E-03   -1.5618    
  17  Prefactor     22.150        13.222        .85057E-04   -1.4766    
  18  Prefactor     .10000E-03    13.032        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.4933        .24812        .26108E-03   -.77967    
  20  Prefactor     .90378        .18455        .26601E-03   -.96009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60726e-08
Minuit parameter uncertainties:
  1  1.67818
  2  0.547983
  3  23.3105
  4  0.000756206
  5  9.29339e-06
  6  22.95
  7  13.3293
  8  76.7335
  9  0.00130577
  10  1.33685e-06
  11  1.2563
  12  7.60064e-07
  13  3.93167
  14  6.98375e-08
  15  11.2065
  16  0.481343
  17  13.2241
  18  1.53402e-05
  19  0.248322
  20  0.184679
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.337e-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.038e-01  1.847e-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.493e+00  2.483e-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: 4.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.60e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817146/likelihoodResults_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.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) = 7579.34016082
delta logL = -0.000732787427296

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7579.33942794
delta logL = 9.15488271858e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9790       1.0000          .0000       10.000    
     3 'Normalizat'    1.4933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90377       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=   7579.339     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      205 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    34.156        .90712E-02** at limit **
   2  Index         1.9608        5.9878        .50000        .21603E-04
   3  Normalizat    1.4933        .11137E-01    .59039E-01    .37622E-06
   4  Prefactor     .90378        .91588E-02    .45053E-01    .33206E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.96081
  Normalizat = 1.49328
  Prefactor  = 0.903779
 **********
 **   18 **HESSE 
 **********

 FCN=   7579.339     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      238 TOTAL
                     EDM=   .29E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    577.95        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9608        8.0623        .50000       -.65333    
   3  Normalizat    1.4933        .51575E-01    .26108E-03   -.77967    
   4  Prefactor     .90378        .42416E-01    .26601E-03   -.96009    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.9381e-08
Minuit parameter uncertainties:
  1  0.00043137
  2  37.4656
  3  0.0515769
  4  0.042418
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817146': 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) = 7579.33942783
delta logL = 2.035203579e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.314e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.961e+00  3.747e+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.038e-01  4.242e-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:  1.493e+00  5.158e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/817146/cmap_HighResolution_279504001_279763201_4FGL_J1019.7+0511_daily_bin155.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.60e-03', job_status='DONE', photon_flux_upper_limit='4.81e-08', time_completed='2021-09-01 18:23:29.201659', job_id='817146', GAL2='0.90', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1630545809.2', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.90', dlogl='2.04e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='155' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 817146: <4FGL_J1019.7+0511_daily_bin155> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin155 154.942 5.1905 279504001 279763201 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 :                                   641.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             352.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   764 sec.
    Turnaround time :                            766 sec.

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

