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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin937
RA = 154.942, Dec = 5.1905
tmin = 482198401, tmax = 482457601
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='821364', job_status='RUN', time_executed='2021-09-01 18:27:45.611919', time_epoch_executed='1630546065.61' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='937'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821364

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821364/ft1_4FGL_J1019.7+0511_daily_bin937.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821364/ft1_4FGL_J1019.7+0511_daily_bin937.fits outfile=/scratch/kocevski/821364/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin937.fits ra=154.942 dec=5.1905 rad=12.0 tmin=482198401.0 tmax=482457601.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.72
user 3.41
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits" evtable="EVENTS" scfile=/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits sctable="SC_DATA" outfile=/scratch/kocevski/821364/ltcube_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.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/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits
.....................!
real 14.57
user 14.05
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits sctable="SC_DATA" expcube=/scratch/kocevski/821364/ltcube_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.fits outfile=/scratch/kocevski/821364/expmap_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.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/821364/ltcube_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.fits
.....................!
real 192.24
user 186.37
sys 5.17

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/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits scfile=/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits outfile=/scratch/kocevski/821364/cmap_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits scfile=/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits outfile=/scratch/kocevski/821364/cmap_HighResolution_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits evtable="EVENTS" scfile=/scratch/kocevski/821364/ft2_4FGL_J1019.7+0511_daily_bin937.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821364/Model_4FGL_J1019.7+0511_daily_bin937.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/821364/ft1_filtered_4FGL_J1019.7+0511_daily_bin937.fits.....................!
real 65.00
user 63.65
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1637       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9202       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10329E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.146       1.0000         .10000E-03   10000.    
     6 'norm      '    .17089       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    70.481       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.203       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10261E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.3788       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.4528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .96906       1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.0529       1.0000         .10000E-03   10000.    
    15 'Prefactor '    23.754       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1108       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .49745E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.489       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94760       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98476       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6723.763     FROM MIGRAD    STATUS=CONVERGED    794 CALLS     2771 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1636        1.3776        .73322E-04   -.58299E-04
   2  norm          1.9201        .64796        .36371E-04   -.10096E-03
   3  Prefactor     .10000E-03    10.115        .18142E-02** at limit **
   4  Prefactor     .10001E-03    52.856        .18142E-02** at limit **
   5  Prefactor     35.149        29.717        .67598E-04   -.39355E-04
   6  norm          .11846        16.818        .91223E-01    .39238E-03
   7  Prefactor     .10000E-03    4.5330        .17013E-02** at limit **
   8  Prefactor     70.465        67.013        .47816E-04    .40562E-04
   9  Prefactor     37.224        49.516        .65708E-04    .50175E-05
  10  Prefactor     .10000E-03    45.009        .36285E-03** at limit **
  11  norm          1.3789        1.0436        .70633E-04    .25060E-03
  12  Prefactor     1.4501        7.2193        .17867E-02   -.71099E-04
  13  Prefactor     .96792        3.5810        .26347E-03    .15318E-03
  14  Prefactor     7.0439        8.9416        .15105E-03   -.23331E-05
  15  Prefactor     23.767        12.025        .82188E-04    .45827E-03
  16  norm          2.1139        .85282        .37181E-04    .47355E-02
  17  Prefactor     .27358E-02    20.785        .57944E-01    .67052E-03
  18  Prefactor     16.489        23.459        .98632E-04    .50831E-04
  19  Normalizat    .94801        .24211        .28236E-03   -.99771E-04
  20  Prefactor     .98442        .18498        .23203E-03    .28266E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.16363
  norm       = 1.92012
  Prefactor  = 0.0001
  Prefactor  = 0.000100008
  Prefactor  = 35.1493
  norm       = 0.118458
  Prefactor  = 0.0001
  Prefactor  = 70.4651
  Prefactor  = 37.2245
  Prefactor  = 0.000100001
  norm       = 1.37892
  Prefactor  = 1.45013
  Prefactor  = 0.967918
  Prefactor  = 7.04394
  Prefactor  = 23.7668
  norm       = 2.11392
  Prefactor  = 0.00273579
  Prefactor  = 16.4891
  Normalizat = 0.948014
  Prefactor  = 0.984417
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.763     FROM HESSE     STATUS=OK           293 CALLS     3064 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1636        1.3774        .29329E-05   -1.5414    
   2  norm          1.9201        .64788        .14548E-05   -1.5431    
   3  Prefactor     .10000E-03    10.118        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10001E-03    52.876        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.149        29.720        .27039E-05   -1.4522    
   6  norm          .11846        16.460        .92699E-01   -1.5639    
   7  Prefactor     .10000E-03    4.5331        .34025E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     70.465        66.990        .95632E-05   -1.4027    
   9  Prefactor     37.224        49.547        .26283E-05   -1.4487    
  10  Prefactor     .10000E-03    45.010        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.3789        1.0434        .28253E-05   -1.5473    
  12  Prefactor     1.4501        7.1678        .71469E-04   -1.5467    
  13  Prefactor     .96792        3.5772        .10539E-04   -1.5511    
  14  Prefactor     7.0439        8.9408        .60422E-05   -1.5177    
  15  Prefactor     23.767        12.018        .32875E-05   -1.4733    
  16  norm          2.1139        .84073        .74362E-05   -1.5417    
  17  Prefactor     .27358E-02    14.796        .69958E-01   -1.5698    
  18  Prefactor     16.489        23.462        .39453E-05   -1.4896    
  19  Normalizat    .94801        .24203        .11294E-04   -.94793    
  20  Prefactor     .98442        .18513        .46407E-04   -.93251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.46253e-09
Minuit parameter uncertainties:
  1  1.37739
  2  0.647883
  3  3.883e-05
  4  0.00131874
  5  29.7329
  6  2.79235
  7  1.09431e-05
  8  67.0617
  9  49.6021
  10  0.000471225
  11  1.04338
  12  6.44904
  13  3.578
  14  8.94248
  15  12.0195
  16  0.840731
  17  0.395061
  18  23.4747
  19  0.242305
  20  0.185253
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.712e-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:  9.844e-01  1.853e-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:  9.480e-01  2.423e-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: 6.25e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.69e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/821364/likelihoodResults_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6723.76289744
delta logL = -0.000105952740341

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6723.76289744
delta logL = -0.000105944453935

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .96357E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9972       1.0000          .0000       10.000    
     3 'Normalizat'    .94801       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98442       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=   6723.737     FROM MIGRAD    STATUS=CONVERGED    110 CALLS      251 TOTAL
                     EDM=   .91E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .84024        804.29        .90713E-02   -.15548E-02
   2  Index         2.6544        7.6633        .72932E-01    .24781E-03
   3  Normalizat    .94015        .17439        .45512E-01   -.59142E-04
   4  Prefactor     .98687        .11150        .46072E-01   -.17246E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.840236
  Index      = 2.6544
  Normalizat = 0.94015
  Prefactor  = 0.986871
 **********
 **   18 **HESSE 
 **********

 FCN=   6723.737     FROM HESSE     STATUS=OK            31 CALLS      282 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .84024        1094.2        .32197E-03   -1.5891    
   2  Index         2.6544        8.6083        .18225E-01   -.48829    
   3  Normalizat    .94015        .21955        .28336E-03   -.95063    
   4  Prefactor     .98687        .18758        .23173E-03   -.93168    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.95915e-05
Minuit parameter uncertainties:
  1  61.8056
  2  19.6574
  3  0.219764
  4  0.187703
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821364': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6723.73739991
delta logL = 0.0253915770609

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  8.402e-01  6.181e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.654e+00  1.966e+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.869e-01  1.877e-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:  9.401e-01  2.198e-01  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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/821364/cmap_HighResolution_482198401_482457601_4FGL_J1019.7+0511_daily_bin937.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.69e-03', job_status='DONE', photon_flux_upper_limit='6.25e-08', time_completed='2021-09-01 18:38:28.680777', job_id='821364', GAL2='0.99', fit_tolerance='1e-08', EG2='0.94', EG='0.95', time_epoch_completed='1630546708.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.54e-02', ts2='0.05', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='937' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:38:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0171>
Subject: Job 821364: <4FGL_J1019.7+0511_daily_bin937> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin937> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 18:25:21 2021
Job was executed on host(s) <bullet0171>, 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:38:29 2021
Results reported at Wed Sep  1 18:38:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin937 154.942 5.1905 482198401 482457601 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 :                                   642.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             266.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            788 sec.

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

