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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin615
RA = 154.942, Dec = 5.1905
tmin = 398736001, tmax = 398995201
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='818802', job_status='RUN', time_executed='2021-09-01 18:18:39.681853', time_epoch_executed='1630545519.68' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='615'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818802

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818802/ft1_4FGL_J1019.7+0511_daily_bin615.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818802/ft1_4FGL_J1019.7+0511_daily_bin615.fits outfile=/scratch/kocevski/818802/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin615.fits ra=154.942 dec=5.1905 rad=12.0 tmin=398736001.0 tmax=398995201.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 6.04
user 5.73
sys 0.28

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818802/ft1_filtered_4FGL_J1019.7+0511_daily_bin615.fits" evtable="EVENTS" scfile=/scratch/kocevski/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits sctable="SC_DATA" outfile=/scratch/kocevski/818802/ltcube_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.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/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits
.....................!
real 12.41
user 12.08
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818802/ft1_filtered_4FGL_J1019.7+0511_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits sctable="SC_DATA" expcube=/scratch/kocevski/818802/ltcube_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.fits outfile=/scratch/kocevski/818802/expmap_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.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/818802/ltcube_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.fits
.....................!
real 190.46
user 186.19
sys 3.89

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/818802/ft1_filtered_4FGL_J1019.7+0511_daily_bin615.fits scfile=/scratch/kocevski/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits outfile=/scratch/kocevski/818802/cmap_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=154.942 yref=5.1905 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.13

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818802/ft1_filtered_4FGL_J1019.7+0511_daily_bin615.fits evtable="EVENTS" scfile=/scratch/kocevski/818802/ft2_4FGL_J1019.7+0511_daily_bin615.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818802/Model_4FGL_J1019.7+0511_daily_bin615.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/818802/ft1_filtered_4FGL_J1019.7+0511_daily_bin615.fits.....................!
real 66.33
user 65.02
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.5540       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1746       1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.8089       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .19977E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .83401E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3265       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12230E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .28005E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.520       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3458       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0437       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.6605       1.0000         .10000E-03   10000.    
    16 'norm      '    .31762       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10197E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94538       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.6070       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=   7076.947     FROM MIGRAD    STATUS=CONVERGED    489 CALLS     2189 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.5537        1.6152       -.14995E-06   -.91991E-05
   2  norm          1.1746        .61976       -.32893E-07    .24957E-04
   3  Prefactor     7.8157        8.7984        .75342E-06    .95708E-04
   4  Prefactor     .10000E-03    19.976       -.11965E-06** at limit **
   5  Prefactor     .10001E-03    163.07       -.21410E-04** at limit **
   6  norm          .10427E-03    32.274       -.63609E-05** at limit **
   7  Prefactor     1.3139        29.790        .12093E-05    .15659E-03
   8  Prefactor     .10000E-03    82.158       -.68623E-06** at limit **
   9  Prefactor     .10004E-03    301.43        .82660E-06** at limit **
  10  Prefactor     17.547        20.717       -.24948E-05   -.81940E-04
  11  norm          4.3458        1.7789       -.57368E-07    .76994E-04
  12  Prefactor     .10000E-03    5.8442       -.10061E-06** at limit **
  13  Prefactor     5.0433        3.5243       -.27413E-07    .93266E-04
  14  Prefactor     .10000E-03    21.100       -.19404E-06** at limit **
  15  Prefactor     3.6604        4.7642       -.12572E-05    .95456E-04
  16  norm          .31756        .51329       -.49296E-07   -.24918E-03
  17  Prefactor     .10000E-03    4.4066        .12264E-05** at limit **
  18  Prefactor     .10000E-03    12.541       -.29341E-09** at limit **
  19  Normalizat    .94547        .21789        .48343E-06    .88656E-04
  20  Prefactor     1.6070        .18467        .22970E-06    .88556E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.5537
  norm       = 1.17458
  Prefactor  = 7.81572
  Prefactor  = 0.0001
  Prefactor  = 0.000100009
  norm       = 0.000104275
  Prefactor  = 1.31389
  Prefactor  = 0.0001
  Prefactor  = 0.000100044
  Prefactor  = 17.5468
  norm       = 4.34584
  Prefactor  = 0.0001
  Prefactor  = 5.0433
  Prefactor  = 0.0001
  Prefactor  = 3.66037
  norm       = 0.317562
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.945469
  Prefactor  = 1.60705
 **********
 **   18 **HESSE 
 **********

 FCN=   7076.947     FROM HESSE     STATUS=OK           309 CALLS     2498 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.5537        1.5973        .10350E-03   -1.5459    
   2  norm          1.1746        .60942        .46254E-04   -1.5491    
   3  Prefactor     7.8157        8.7949        .14349E-03   -1.5149    
   4  Prefactor     .10000E-03    20.005        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10001E-03    163.88        .76296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10427E-03    26.456        .96484E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3139        37.962        .38160E-03   -1.5479    
   8  Prefactor     .10000E-03    82.538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10004E-03    300.72        .19902E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.547        20.766        .95686E-04   -1.4870    
  11  norm          4.3458        1.7774        .68812E-04   -1.5291    
  12  Prefactor     .10000E-03    5.9575        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.0433        3.5234        .12549E-03   -1.5259    
  14  Prefactor     .10000E-03    21.739        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.6604        4.7334        .10060E-02   -1.5325    
  16  norm          .31756        .43831        .69725E-03   -1.5595    
  17  Prefactor     .10000E-03    20.800        .31075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.566        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94547        .25603        .33971E-03   -.94880    
  20  Prefactor     1.6070        .21949        .23440E-03   -.74584    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.98276e-09
Minuit parameter uncertainties:
  1  1.59739
  2  0.609424
  3  8.79638
  4  2.45015e-06
  5  0.00238873
  6  0.0212786
  7  14.1343
  8  7.6114e-05
  9  0.00730319
  10  20.7748
  11  1.77746
  12  1.22169e-05
  13  3.52356
  14  1.82783e-05
  15  4.73388
  16  0.438315
  17  0.000290596
  18  1.43994e-06
  19  0.256365
  20  0.219624
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.755e+01  2.077e+01  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.607e+00  2.196e-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.455e-01  2.564e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.42
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.68e-08 +/- 3.17e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 2.21e-05

TS (Fixed Index): 1.42
Ra Dec: 154.942 5.191
Photon Flux Upper Limit: 9.65e-08 ph cm-2 s-1
Energy Flux Upper Limit: 7.24e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818802/likelihoodResults_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.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) = 7076.72950802
delta logL = 0.217314214879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7076.72252952
delta logL = 0.224292708408

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.4054       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4321       1.0000          .0000       10.000    
     3 'Normalizat'    .92683       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.6154       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=   7076.723     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      252 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.4178        220.02        .34568E-02    .95601E-04
   2  Index         2.4315        2.8811        .95387E-01    .19753E-03
   3  Normalizat    .92685        .89174E-01    .77424E-01    .22775E-04
   4  Prefactor     1.6154        .66384E-01    .52897E-01   -.27672E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.41779
  Index      = 2.43151
  Normalizat = 0.926855
  Prefactor  = 1.61538
 **********
 **   18 **HESSE 
 **********

 FCN=   7076.723     FROM HESSE     STATUS=OK            33 CALLS      285 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.4178        20.659        .13827E-03   -1.5128    
   2  Index         2.4315        .92070        .53152E-02   -.53949    
   3  Normalizat    .92685        .25397        .34267E-03   -.95523    
   4  Prefactor     1.6154        .21940        .23385E-03   -.74358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66229e-11
Minuit parameter uncertainties:
  1  20.6764
  2  0.927923
  3  0.254303
  4  0.219531
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818802': 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) = 7076.72252911
delta logL = 0.224293126387

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  8.418e+00  2.068e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.432e+00  9.279e-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.615e+00  2.195e-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.269e-01  2.543e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.87
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.43 +/- 0.93
Photon Flux (Free Index): 4.41e-08 +/- 4.59e-08
Energy Flux (Free Index): 1.39e-05 +/- 1.59e-05

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/818802/cmap_HighResolution_398736001_398995201_4FGL_J1019.7+0511_daily_bin615.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.24e-03', comment='SUCCESS', photon_flux='2.68e-08', energy_flux2='1.39e-05', photon_flux_error='3.17e-08', dlogl='2.24e-01', energy_flux='1.86e-05', photon_flux2='4.41e-08', job_status='DONE', time_completed='2021-09-01 18:29:05.728993', photon_index_error2='0.93', photon_index2='2.43', ts='1.42', fit_tolerance='1e-08', GAL='1.61', photon_index_error='0.00', photon_flux_upper_limit='9.65e-08', energy_flux_error2='1.59e-05', EG='0.95', time_epoch_completed='1630546145.73', return_code='0', job_id='818802', GAL2='1.62', EG2='0.93', return_code2='0', energy_flux_error='2.21e-05', photon_flux_error2='4.59e-08', ts2='1.87', photon_index='2.00' WHERE bin_id='615' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:29:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0108>
Subject: Job 818802: <4FGL_J1019.7+0511_daily_bin615> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin615 154.942 5.1905 398736001 398995201 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 :                                   622.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             314.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            793 sec.

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

