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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin649
RA = 154.942, Dec = 5.1905
tmin = 407548801, tmax = 407808001
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='818856', job_status='RUN', time_executed='2021-09-01 18:18:05.571555', time_epoch_executed='1630545485.57' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='649'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818856

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818856/ft1_4FGL_J1019.7+0511_daily_bin649.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818856/ft1_4FGL_J1019.7+0511_daily_bin649.fits outfile=/scratch/kocevski/818856/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin649.fits ra=154.942 dec=5.1905 rad=12.0 tmin=407548801.0 tmax=407808001.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.51
user 3.31
sys 0.18

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818856/ft1_filtered_4FGL_J1019.7+0511_daily_bin649.fits" evtable="EVENTS" scfile=/scratch/kocevski/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits sctable="SC_DATA" outfile=/scratch/kocevski/818856/ltcube_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.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/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits
.....................!
real 13.40
user 12.98
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818856/ft1_filtered_4FGL_J1019.7+0511_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits sctable="SC_DATA" expcube=/scratch/kocevski/818856/ltcube_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.fits outfile=/scratch/kocevski/818856/expmap_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.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/818856/ltcube_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.fits
.....................!
real 191.42
user 185.50
sys 5.52

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/818856/ft1_filtered_4FGL_J1019.7+0511_daily_bin649.fits scfile=/scratch/kocevski/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits outfile=/scratch/kocevski/818856/cmap_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.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.37
sys 0.15

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818856/ft1_filtered_4FGL_J1019.7+0511_daily_bin649.fits evtable="EVENTS" scfile=/scratch/kocevski/818856/ft2_4FGL_J1019.7+0511_daily_bin649.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818856/Model_4FGL_J1019.7+0511_daily_bin649.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/818856/ft1_filtered_4FGL_J1019.7+0511_daily_bin649.fits.....................!
real 59.54
user 58.14
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5464       1.0000         .10000E-03   10000.    
     2 'norm      '    1.1311       1.0000         .10000E-03   10000.    
     3 'Prefactor '    5.9791       1.0000         .10000E-03   10000.    
     4 'Prefactor '    26.607       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10946E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    21.728       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10041E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    23.559       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    6.7895       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6510       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.6876       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14071       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.3965       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.951       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    19.013       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .41280       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2710       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=   6309.444     FROM MIGRAD    STATUS=CONVERGED    428 CALLS     2059 TOTAL
                     EDM=   .73E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5462        1.3187        .46102E-07    .14491E-04
   2  norm          1.1313        .61120        .28965E-07   -.19768E-04
   3  Prefactor     5.9768        12.687       -.17280E-06    .42583E-04
   4  Prefactor     26.503        36.039        .19663E-06   -.81679E-04
   5  Prefactor     .10000E-03    11.415       -.65054E-07** at limit **
   6  norm          21.731        16.122        .21511E-06   -.27419E-03
   7  Prefactor     .10000E-03    2.3740       -.10189E-06** at limit **
   8  Prefactor     23.538        45.470        .12915E-05   -.15339E-03
   9  Prefactor     .10000E-03    16.713       -.26624E-06** at limit **
  10  Prefactor     6.7917        9.7278        .19357E-06   -.19121E-03
  11  norm          2.6513        1.3584       -.45075E-07    .86855E-04
  12  Prefactor     3.6882        5.3110        .21502E-05   -.58753E-03
  13  Prefactor     .16177        1.4279        .66256E-07   -.35296E-04
  14  Prefactor     5.3946        9.6823        .32670E-06   -.77636E-06
  15  Prefactor     15.944        8.7519        .67432E-07    .29375E-03
  16  norm          .10000E-03    .21038       -.86260E-06** at limit **
  17  Prefactor     19.400        9.6352        .12002E-05    .57391E-03
  18  Prefactor     19.006        19.208       -.31415E-06    .33903E-03
  19  Normalizat    .41291        .21356       -.17366E-05    .17787E-03
  20  Prefactor     1.2709        .16575        .23939E-06    .34305E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5462
  norm       = 1.13135
  Prefactor  = 5.97683
  Prefactor  = 26.5035
  Prefactor  = 0.0001
  norm       = 21.7308
  Prefactor  = 0.0001
  Prefactor  = 23.5381
  Prefactor  = 0.0001
  Prefactor  = 6.79166
  norm       = 2.6513
  Prefactor  = 3.68819
  Prefactor  = 0.161766
  Prefactor  = 5.39458
  Prefactor  = 15.9442
  norm       = 0.0001
  Prefactor  = 19.3996
  Prefactor  = 19.0061
  Normalizat = 0.412909
  Prefactor  = 1.27089
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.444     FROM HESSE     STATUS=OK           299 CALLS     2358 TOTAL
                     EDM=   .20E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5462        1.3133        .62065E-04   -1.5389    
   2  norm          1.1313        .59748        .42899E-04   -1.5495    
   3  Prefactor     5.9768        12.626        .16421E-03   -1.5219    
   4  Prefactor     26.503        35.934        .77664E-04   -1.4678    
   5  Prefactor     .10000E-03    11.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          21.731        16.082        .85928E-04   -1.4775    
   7  Prefactor     .10000E-03    2.3752        .11950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     23.538        45.191        .82527E-04   -1.4737    
   9  Prefactor     .10000E-03    16.717        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     6.7917        9.7072        .15398E-03   -1.5187    
  11  norm          2.6513        1.3538        .63169E-04   -1.5382    
  12  Prefactor     3.6882        5.5037        .10516E-02   -1.5324    
  13  Prefactor     .16177        7.4499        .17479E-02   -1.5628    
  14  Prefactor     5.3946        9.6605        .17299E-03   -1.5243    
  15  Prefactor     15.944        8.7007        .10028E-03   -1.4909    
  16  norm          .10000E-03    .26231        .68352E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.400        9.9969        .90926E-04   -1.4827    
  18  Prefactor     19.006        19.149        .91855E-04   -1.4836    
  19  Normalizat    .41291        .22089        .36962E-03   -1.1664    
  20  Prefactor     1.2709        .17687        .19323E-03   -.84177    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99307e-08
Minuit parameter uncertainties:
  1  1.31335
  2  0.597487
  3  12.6317
  4  35.9629
  5  2.01081e-06
  6  16.0849
  7  4.94133e-06
  8  45.2563
  9  4.71998e-05
  10  9.70944
  11  1.35381
  12  5.50447
  13  2.19519
  14  9.66328
  15  8.70136
  16  7.54165e-06
  17  9.9978
  18  19.1548
  19  0.221359
  20  0.176955
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  6.792e+00  9.709e+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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.271e+00  1.770e-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:  4.129e-01  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/818856/likelihoodResults_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.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) = 6309.39401668
delta logL = 0.0501469749624

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6309.39273882
delta logL = 0.0514248346499

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2807       1.0000         .10000E-03   10000.    
     2 'Index     '    2.2765       1.0000          .0000       10.000    
     3 'Normalizat'    .40933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2722       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=   6309.393     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      284 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2832        11.794        .19473E-03    .64723E-03
   2  Index         2.2765        1.0719        .73397E-02    .21451E-03
   3  Normalizat    .40929        .19657        .37118E-03    .55949E-03
   4  Prefactor     1.2722        .17426        .19313E-03    .10966E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.28316
  Index      = 2.27648
  Normalizat = 0.409291
  Prefactor  = 1.27223
 **********
 **   18 **HESSE 
 **********

 FCN=   6309.393     FROM HESSE     STATUS=OK            25 CALLS      309 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2832        9.6479        .77891E-05   -1.5294    
   2  Index         2.2765        .88010        .29359E-03   -.57604    
   3  Normalizat    .40929        .19646        .14847E-04   -1.1682    
   4  Prefactor     1.2722        .17424        .38625E-04   -.84137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24165e-09
Minuit parameter uncertainties:
  1  9.65145
  2  0.886691
  3  0.196792
  4  0.174321
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818856': 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) = 6309.39273867
delta logL = 0.0514249899306

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  4.283e+00  9.651e+00  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.276e+00  8.867e-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.272e+00  1.743e-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:  4.093e-01  1.968e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.01
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.28 +/- 0.89
Photon Flux (Free Index): 1.43e-08 +/- 2.21e-08
Energy Flux (Free Index): 5.60e-06 +/- 8.50e-06

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/818856/cmap_HighResolution_407548801_407808001_4FGL_J1019.7+0511_daily_bin649.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.29e-03', comment='SUCCESS', energy_flux2='5.60e-06', dlogl='5.14e-02', photon_flux2='1.43e-08', job_status='DONE', time_completed='2021-09-01 18:27:43.207897', photon_index_error2='0.89', photon_index2='2.28', ts='0.91', fit_tolerance='1e-08', GAL='1.27', photon_index_error='0.00', photon_flux_upper_limit='5.72e-08', energy_flux_error2='8.50e-06', EG='0.41', time_epoch_completed='1630546063.21', return_code='0', job_id='818856', GAL2='1.27', EG2='0.41', return_code2='0', photon_flux_error2='2.21e-08', ts2='1.01', photon_index='2.00' WHERE bin_id='649' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 818856: <4FGL_J1019.7+0511_daily_bin649> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin649 154.942 5.1905 407548801 407808001 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 :                                   578.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             306.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   703 sec.
    Turnaround time :                            706 sec.

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

