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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin627
RA = 154.942, Dec = 5.1905
tmin = 401846401, tmax = 402105601
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='818821', job_status='RUN', time_executed='2021-09-01 18:19:35.059623', time_epoch_executed='1630545575.06' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='627'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818821

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818821/ft1_4FGL_J1019.7+0511_daily_bin627.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818821/ft1_4FGL_J1019.7+0511_daily_bin627.fits outfile=/scratch/kocevski/818821/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin627.fits ra=154.942 dec=5.1905 rad=12.0 tmin=401846401.0 tmax=402105601.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.47
user 3.26
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.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/818821/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin627.fits evtable="EVENTS" outfile="/scratch/kocevski/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.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.50
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits" evtable="EVENTS" scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits sctable="SC_DATA" outfile=/scratch/kocevski/818821/ltcube_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.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/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits
.....................!
real 13.96
user 13.57
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits sctable="SC_DATA" expcube=/scratch/kocevski/818821/ltcube_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.fits outfile=/scratch/kocevski/818821/expmap_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.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/818821/ltcube_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.fits
.....................!
real 190.66
user 186.11
sys 4.12

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/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits outfile=/scratch/kocevski/818821/cmap_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.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.58
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits outfile=/scratch/kocevski/818821/cmap_HighResolution_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits evtable="EVENTS" scfile=/scratch/kocevski/818821/ft2_4FGL_J1019.7+0511_daily_bin627.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818821/Model_4FGL_J1019.7+0511_daily_bin627.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/818821/ft1_filtered_4FGL_J1019.7+0511_daily_bin627.fits.....................!
real 50.65
user 49.19
sys 1.27

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7641       1.0000         .10000E-03   10000.    
     2 'norm      '    .96508       1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0651       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.809       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.8642       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    13.406       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11082E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    15.395       1.0000         .10000E-03   10000.    
    11 'norm      '    .83775       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0123       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5358       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5248       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10388E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7457       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .84365       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2206       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=   5091.418     FROM MIGRAD    STATUS=CONVERGED    405 CALLS     2035 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7642        1.4148       -.20741E-06    .68930E-04
   2  norm          .96505        .72291       -.27489E-06   -.61906E-03
   3  Prefactor     6.0659        8.8589        .15358E-05    .87776E-04
   4  Prefactor     19.806        51.076       -.49939E-05    .27880E-04
   5  Prefactor     .10000E-03    20.419       -.10475E-04** at limit **
   6  norm          3.8671        12.328        .79633E-05    .55197E-04
   7  Prefactor     .10000E-03    3.5612        .32654E-06** at limit **
   8  Prefactor     13.359        55.393       -.11313E-03    .18648E-04
   9  Prefactor     .10000E-03    31.271       -.11582E-04** at limit **
  10  Prefactor     15.396        16.281        .52457E-05    .15888E-03
  11  norm          .83770        1.7829       -.58767E-06   -.10038E-02
  12  Prefactor     .10000E-03    2.5760       -.33355E-07** at limit **
  13  Prefactor     3.0133        4.0970       -.48869E-06   -.35369E-03
  14  Prefactor     .10000E-03    9.0563       -.15663E-06** at limit **
  15  Prefactor     6.5344        8.5533       -.15265E-05   -.30519E-03
  16  norm          1.5241        .71096       -.27865E-06   -.43617E-02
  17  Prefactor     .10000E-03    23.941        .21133E-04** at limit **
  18  Prefactor     7.7451        14.138       -.90169E-06   -.51116E-04
  19  Normalizat    .84338        .21887        .12870E-04   -.36621E-03
  20  Prefactor     1.2209        .18235       -.27844E-05    .32142E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7642
  norm       = 0.965053
  Prefactor  = 6.06585
  Prefactor  = 19.8062
  Prefactor  = 0.0001
  norm       = 3.86708
  Prefactor  = 0.0001
  Prefactor  = 13.3589
  Prefactor  = 0.000100002
  Prefactor  = 15.3958
  norm       = 0.837704
  Prefactor  = 0.0001
  Prefactor  = 3.01327
  Prefactor  = 0.0001
  Prefactor  = 6.53437
  norm       = 1.52406
  Prefactor  = 0.000100002
  Prefactor  = 7.7451
  Normalizat = 0.843376
  Prefactor  = 1.22086
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.418     FROM HESSE     STATUS=OK           295 CALLS     2330 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7642        1.4132        .58211E-04   -1.5375    
   2  norm          .96505        .70284        .49659E-03   -1.5511    
   3  Prefactor     6.0659        8.8414        .16303E-03   -1.5215    
   4  Prefactor     19.806        51.021        .89992E-04   -1.4818    
   5  Prefactor     .10000E-03    20.462        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.8671        12.278        .20528E-03   -1.5315    
   7  Prefactor     .10000E-03    3.5636        .13147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     13.359        55.471        .10940E-03   -1.4977    
   9  Prefactor     .10000E-03    31.215        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     15.396        16.281        .10208E-03   -1.4923    
  11  norm          .83770        1.7573        .12948E-03   -1.5525    
  12  Prefactor     .10000E-03    2.5906        .11182E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0133        4.0774        .15405E-03   -1.5361    
  14  Prefactor     .10000E-03    9.1526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.5344        8.5154        .15698E-03   -1.5197    
  16  norm          1.5241        .70480        .39232E-04   -1.5461    
  17  Prefactor     .10000E-03    24.539        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7451        14.132        .14408E-03   -1.5151    
  19  Normalizat    .84338        .25641        .29368E-03   -.98479    
  20  Prefactor     1.2209        .21644        .21885E-03   -.85692    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.05495e-09
Minuit parameter uncertainties:
  1  1.41321
  2  0.702844
  3  8.84326
  4  51.1338
  5  1.47989e-05
  6  12.2856
  7  6.58675e-05
  8  54.5307
  9  0.000441148
  10  16.2852
  11  1.75736
  12  9.07611e-06
  13  4.07775
  14  9.3957e-05
  15  8.51702
  16  0.704802
  17  0.000400468
  18  14.1377
  19  0.256777
  20  0.216596
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.540e+01  1.629e+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.221e+00  2.166e-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:  8.434e-01  2.568e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.63
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 2.35e-08 +/- 2.49e-08
Energy Flux (Fixed Index): 1.64e-05 +/- 1.73e-05

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

Saving results to:
/scratch/kocevski/818821/likelihoodResults_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.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) = 5091.15309849
delta logL = 0.264498318911

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5091.14727389
delta logL = 0.270322918262

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4249       1.0000         .10000E-03   10000.    
     2 'Index     '    2.6731       1.0000          .0000       10.000    
     3 'Normalizat'    .81030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2382       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=   5091.147     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      263 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4095        105.02        .47860E-02    .19103E-03
   2  Index         2.6742        2.8730        .84793E-01    .15988E-03
   3  Normalizat    .81025        .88487E-01    .67580E-01    .17092E-04
   4  Prefactor     1.2382        .64578E-01    .49197E-01   -.14908E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.4095
  Index      = 2.67419
  Normalizat = 0.810249
  Prefactor  = 1.23824
 **********
 **   18 **HESSE 
 **********

 FCN=   5091.147     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      296 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4095        173.59        .12767E-03   -1.5288    
   2  Index         2.6742        6.3364        .43716E-02   -.48382    
   3  Normalizat    .81025        .32824        .29900E-03   -.99690    
   4  Prefactor     1.2382        .25368        .21749E-03   -.85162    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.1693e-10
Minuit parameter uncertainties:
  1  55.5062
  2  4.91713
  3  0.329049
  4  0.253929
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818821': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5091.14727285
delta logL = 0.270323953488

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  4.410e+00  5.551e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.674e+00  4.917e+00  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.238e+00  2.539e-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:  8.102e-01  3.290e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.19
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.67 +/- 4.92
Photon Flux (Free Index): 4.82e-08 +/- 1.30e-07
Energy Flux (Free Index): 1.18e-05 +/- 2.05e-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/818821/cmap_HighResolution_401846401_402105601_4FGL_J1019.7+0511_daily_bin627.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.72e-03', comment='SUCCESS', photon_flux='2.35e-08', energy_flux2='1.18e-05', photon_flux_error='2.49e-08', dlogl='2.70e-01', energy_flux='1.64e-05', photon_flux2='4.82e-08', job_status='DONE', time_completed='2021-09-01 18:28:23.102267', photon_index_error2='4.92', photon_index2='2.67', ts='1.63', fit_tolerance='1e-08', GAL='1.22', photon_index_error='0.00', photon_flux_upper_limit='8.96e-08', energy_flux_error2='2.05e-05', EG='0.84', time_epoch_completed='1630546103.1', return_code='0', job_id='818821', GAL2='1.24', EG2='0.81', return_code2='102', energy_flux_error='1.73e-05', photon_flux_error2='1.30e-07', ts2='2.19', photon_index='2.00' WHERE bin_id='627' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:28:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0210>
Subject: Job 818821: <4FGL_J1019.7+0511_daily_bin627> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin627 154.942 5.1905 401846401 402105601 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 :                                   527.44 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             248.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

