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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin588
RA = 154.942, Dec = 5.1905
tmin = 391737601, tmax = 391996801
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='818758', job_status='RUN', time_executed='2021-09-01 18:19:07.638812', time_epoch_executed='1630545547.64' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='588'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818758

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818758/ft1_4FGL_J1019.7+0511_daily_bin588.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818758/ft1_4FGL_J1019.7+0511_daily_bin588.fits outfile=/scratch/kocevski/818758/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin588.fits ra=154.942 dec=5.1905 rad=12.0 tmin=391737601.0 tmax=391996801.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.37
user 3.12
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits" evtable="EVENTS" scfile=/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits sctable="SC_DATA" outfile=/scratch/kocevski/818758/ltcube_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.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/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits
.....................!
real 15.54
user 15.16
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits sctable="SC_DATA" expcube=/scratch/kocevski/818758/ltcube_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.fits outfile=/scratch/kocevski/818758/expmap_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.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/818758/ltcube_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.fits
.....................!
real 191.32
user 186.94
sys 3.97

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/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits scfile=/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits outfile=/scratch/kocevski/818758/cmap_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.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.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits scfile=/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits outfile=/scratch/kocevski/818758/cmap_HighResolution_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits evtable="EVENTS" scfile=/scratch/kocevski/818758/ft2_4FGL_J1019.7+0511_daily_bin588.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818758/Model_4FGL_J1019.7+0511_daily_bin588.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/818758/ft1_filtered_4FGL_J1019.7+0511_daily_bin588.fits.....................!
real 56.67
user 55.25
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.1278       1.0000         .10000E-03   10000.    
     2 'norm      '    .62937       1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.244       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.758       1.0000         .10000E-03   10000.    
     5 'Prefactor '    28.212       1.0000         .10000E-03   10000.    
     6 'norm      '    .10085E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    5.7523       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    17.501       1.0000         .10000E-03   10000.    
    11 'norm      '    .80618       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .30783       1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.3063       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.967       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.735       1.0000         .10000E-03   10000.    
    16 'norm      '    .41084       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .99227       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .99599       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=   5865.150     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2160 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.1279        1.0707       -.33016E-07   -.30696E-03
   2  norm          .62945        .50504       -.29342E-07   -.58577E-03
   3  Prefactor     17.244        12.697       -.61948E-07   -.35726E-04
   4  Prefactor     21.760        21.827        .14994E-05    .27777E-04
   5  Prefactor     28.213        33.170        .88004E-06    .29117E-04
   6  norm          .10000E-03    10.900        .13492E-06** at limit **
   7  Prefactor     5.7528        7.6977        .73863E-06    .67502E-04
   8  Prefactor     .10000E-03    38.267        .35684E-04** at limit **
   9  Prefactor     .10000E-03    45.387       -.34514E-04** at limit **
  10  Prefactor     17.502        15.579        .85349E-06    .18822E-03
  11  norm          .80634        1.3999       -.23939E-06   -.90301E-03
  12  Prefactor     .31082        3.1155       -.11244E-05    .22048E-03
  13  Prefactor     5.3066        3.8365       -.95813E-07   -.24849E-03
  14  Prefactor     18.968        10.637        .67439E-07   -.19642E-04
  15  Prefactor     14.735        10.481       -.60466E-07    .14490E-05
  16  norm          .41081        .36108        .43251E-08    .49574E-04
  17  Prefactor     .10000E-03    8.0347        .13625E-07** at limit **
  18  Prefactor     .10000E-03    24.890       -.57206E-05** at limit **
  19  Normalizat    .99218        .19989       -.23437E-07    .11700E-03
  20  Prefactor     .99603        .16274        .90779E-07    .12988E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.12791
  norm       = 0.629449
  Prefactor  = 17.2437
  Prefactor  = 21.7604
  Prefactor  = 28.2132
  norm       = 0.0001
  Prefactor  = 5.75285
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.5023
  norm       = 0.806337
  Prefactor  = 0.310818
  Prefactor  = 5.30658
  Prefactor  = 18.968
  Prefactor  = 14.7348
  norm       = 0.41081
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.992181
  Prefactor  = 0.996029
 **********
 **   18 **HESSE 
 **********

 FCN=   5865.150     FROM HESSE     STATUS=OK           303 CALLS     2463 TOTAL
                     EDM=   .83E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.1279        1.0603        .73783E-04   -1.5496    
   2  norm          .62945        .48470        .46832E-03   -1.5549    
   3  Prefactor     17.244        12.693        .96451E-04   -1.4877    
   4  Prefactor     21.760        21.825        .85869E-04   -1.4775    
   5  Prefactor     28.213        33.153        .75427E-04   -1.4645    
   6  norm          .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     5.7528        7.6887        .16747E-03   -1.5228    
   8  Prefactor     .10000E-03    38.136        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    45.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     17.502        15.594        .95737E-04   -1.4871    
  11  norm          .80634        1.3580        .11248E-03   -1.5528    
  12  Prefactor     .31082        13.662        .25648E-02   -1.5596    
  13  Prefactor     5.3066        3.8303        .11817E-03   -1.5247    
  14  Prefactor     18.968        10.663        .91965E-04   -1.4837    
  15  Prefactor     14.735        10.463        .10434E-03   -1.4940    
  16  norm          .41081        .36221        .41557E-04   -1.5580    
  17  Prefactor     .10000E-03    8.3042        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    25.084        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .99218        .23115        .26848E-03   -.93293    
  20  Prefactor     .99603        .19002        .22812E-03   -.92862    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.34616e-10
Minuit parameter uncertainties:
  1  1.06033
  2  0.484706
  3  12.6948
  4  21.8325
  5  33.1743
  6  1.13484e-05
  7  7.69001
  8  4.97397e-05
  9  6.39847e-05
  10  15.5976
  11  1.35804
  12  4.1217
  13  3.83047
  14  10.6638
  15  10.4639
  16  0.362209
  17  1.74902e-06
  18  2.54304e-05
  19  0.231382
  20  0.190152
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.750e+01  1.560e+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:  9.960e-01  1.902e-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.922e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.40
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.67e-08 +/- 2.38e-08
Energy Flux (Fixed Index): 1.86e-05 +/- 1.66e-05

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) = 5864.67108414
delta logL = 0.478864505517

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5864.66988794
delta logL = 0.480060704103

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    28.472       1.0000         .10000E-03   10000.    
     2 'Index     '    1.4613       1.0000          .0000       10.000    
     3 'Normalizat'    1.0034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99352       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=   5864.670     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      273 TOTAL
                     EDM=   .50E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     28.637        909.59        .18770E-02   -.39633E-04
   2  Index         1.4662        5.3292        .22738        .34515E-04
   3  Normalizat    1.0028        .11567        .46209E-01    .12209E-04
   4  Prefactor     .99376        .72755E-01    .46186E-01    .83120E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 28.6367
  Index      = 1.46619
  Normalizat = 1.00282
  Prefactor  = 0.993757
 **********
 **   18 **HESSE 
 **********

 FCN=   5864.670     FROM HESSE     STATUS=OK            33 CALLS      306 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     28.637        26.615        .37541E-03   -1.4637    
   2  Index         1.4662        .56419        .81829E-02   -.78491    
   3  Normalizat    1.0028        .21935        .26725E-03   -.92936    
   4  Prefactor     .99376        .18779        .22841E-03   -.92938    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15844e-12
Minuit parameter uncertainties:
  1  26.6259
  2  0.566614
  3  0.219548
  4  0.187912
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818758': 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) = 5864.66982728
delta logL = 0.480121360941

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.864e+01  2.663e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.466e+00  5.666e-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.938e-01  1.879e-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.003e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.36
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.47 +/- 0.57
Photon Flux (Free Index): 1.28e-08 +/- 1.72e-08
Energy Flux (Free Index): 4.54e-05 +/- 5.97e-05

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/818758/cmap_HighResolution_391737601_391996801_4FGL_J1019.7+0511_daily_bin588.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.67e-08', energy_flux2='4.54e-05', photon_flux_error='2.38e-08', dlogl='4.80e-01', energy_flux='1.86e-05', photon_flux2='1.28e-08', job_status='DONE', time_completed='2021-09-01 18:27:56.151497', photon_index_error2='0.57', photon_index2='1.47', ts='5.40', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='5.97e-05', EG='0.99', time_epoch_completed='1630546076.15', return_code='0', job_id='818758', GAL2='0.99', EG2='1.00', return_code2='0', energy_flux_error='1.66e-05', photon_flux_error2='1.72e-08', ts2='6.36', photon_index='2.00' WHERE bin_id='588' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 818758: <4FGL_J1019.7+0511_daily_bin588> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin588> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:49 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:51 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:51 2021
Terminated at Wed Sep  1 18:27:57 2021
Results reported at Wed Sep  1 18:27:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin588 154.942 5.1905 391737601 391996801 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 :                                   528.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             262.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   725 sec.
    Turnaround time :                            728 sec.

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

