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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin579
RA = 154.942, Dec = 5.1905
tmin = 389404801, tmax = 389664001
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='818744', job_status='RUN', time_executed='2021-09-01 18:18:04.782721', time_epoch_executed='1630545484.78' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='579'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818744

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818744/ft1_4FGL_J1019.7+0511_daily_bin579.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818744/ft1_4FGL_J1019.7+0511_daily_bin579.fits outfile=/scratch/kocevski/818744/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin579.fits ra=154.942 dec=5.1905 rad=12.0 tmin=389404801.0 tmax=389664001.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 4.07
user 3.85
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818744/ft1_filtered_4FGL_J1019.7+0511_daily_bin579.fits" evtable="EVENTS" scfile=/scratch/kocevski/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits sctable="SC_DATA" outfile=/scratch/kocevski/818744/ltcube_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.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/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits
.....................!
real 13.68
user 13.32
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818744/ft1_filtered_4FGL_J1019.7+0511_daily_bin579.fits evtable="EVENTS" scfile=/scratch/kocevski/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits sctable="SC_DATA" expcube=/scratch/kocevski/818744/ltcube_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.fits outfile=/scratch/kocevski/818744/expmap_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.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/818744/ltcube_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.fits
.....................!
real 191.38
user 186.80
sys 4.21

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/818744/ft1_filtered_4FGL_J1019.7+0511_daily_bin579.fits scfile=/scratch/kocevski/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits outfile=/scratch/kocevski/818744/cmap_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818744/ft1_filtered_4FGL_J1019.7+0511_daily_bin579.fits scfile=/scratch/kocevski/818744/ft2_4FGL_J1019.7+0511_daily_bin579.fits outfile=/scratch/kocevski/818744/cmap_HighResolution_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.942 yref=5.1905 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.54
user 0.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.2525       1.0000         .10000E-03   10000.    
     2 'norm      '    1.7274       1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.5101       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .28182E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    2.7233       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10209E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10624E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10245E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .41146       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.5490       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.8710       1.0000         .10000E-03   10000.    
    16 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .90655E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    15.670       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0754       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0235       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=   6333.433     FROM MIGRAD    STATUS=CONVERGED    431 CALLS     1804 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.2524        1.5753        .68442E-02    .47463E-03
   2  norm          1.7274        .78751        .79871E-02    .48113E-03
   3  Prefactor     8.5147        9.2733        .34354E-02    .47370E-04
   4  Prefactor     .10000E-03    9.2297        .90712E-02** at limit **
   5  Prefactor     .10000E-03    8.7951        .90712E-02** at limit **
   6  norm          .10103E-03    8.0105        .99476E-01** at limit **
   7  Prefactor     2.7268        12.744        .61694E-02   -.17729E-03
   8  Prefactor     .10022E-03    88.867        .90712E-02** at limit **
   9  Prefactor     .10070E-03    62.246        .90712E-02** at limit **
  10  Prefactor     .10000E-03    16.147        .90712E-02** at limit **
  11  norm          .41164        .97214        .24881E-01    .15038E-02
  12  Prefactor     .10000E-03    4.0377        .90712E-02** at limit **
  13  Prefactor     8.5494        4.0482        .34275E-02    .23177E-02
  14  Prefactor     .10000E-03    5.0280        .90712E-02** at limit **
  15  Prefactor     5.8627        9.8058        .41435E-02    .86628E-03
  16  norm          .10000E-03    .15716        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.8121        .62002E-01** at limit **
  18  Prefactor     15.665        21.480        .25295E-02    .15776E-03
  19  Normalizat    1.0755        .20000        .61264E-01    .23145E-04
  20  Prefactor     1.0235        .15847        .41806E-01    .19897E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.25245
  norm       = 1.72742
  Prefactor  = 8.51466
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000101027
  Prefactor  = 2.72676
  Prefactor  = 0.00010022
  Prefactor  = 0.0001007
  Prefactor  = 0.0001
  norm       = 0.411641
  Prefactor  = 0.0001
  Prefactor  = 8.54938
  Prefactor  = 0.0001
  Prefactor  = 5.86272
  norm       = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.6649
  Normalizat = 1.07547
  Prefactor  = 1.02346
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.433     FROM HESSE     STATUS=OK           301 CALLS     2105 TOTAL
                     EDM=   .31E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.2524        1.5701        .78943E-04   -1.5408    
   2  norm          1.7274        .78193        .44949E-04   -1.5445    
   3  Prefactor     8.5147        9.1885        .13741E-03   -1.5124    
   4  Prefactor     .10000E-03    9.2333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8011        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10103E-03    61.038        .42694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     2.7268        12.250        .24677E-03   -1.5378    
   8  Prefactor     .10022E-03    89.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10070E-03    62.257        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .41164        .87064        .11467E-02   -1.5580    
  12  Prefactor     .10000E-03    4.0951        .15606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.5494        4.0400        .50948E-03   -1.5123    
  14  Prefactor     .10000E-03    5.0696        .17426E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.8627        9.5825        .16574E-03   -1.5224    
  16  norm          .10000E-03    .16250        .61127E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.960        .35950E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     15.665        21.469        .10118E-03   -1.4916    
  19  Normalizat    1.0755        .23717        .27096E-03   -.90543    
  20  Prefactor     1.0235        .18770        .23003E-03   -.91952    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.12332e-08
Minuit parameter uncertainties:
  1  1.57009
  2  0.781938
  3  9.18999
  4  4.85847e-05
  5  3.31752e-05
  6  0.0158535
  7  11.563
  8  0.00887274
  9  0.0132163
  10  0.000166229
  11  0.870664
  12  2.04038e-08
  13  4.04014
  14  7.441e-08
  15  9.58504
  16  1.96941e-09
  17  0.00050117
  18  21.4796
  19  0.237405
  20  0.187817
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.662e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.997e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.023e+00  1.878e-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.075e+00  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/818744/likelihoodResults_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.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): 102
logL (Free Index) = 6333.43280698
delta logL = -0.00029494087903

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6333.43251182
delta logL = 2.11059159483e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10204E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0974       1.0000          .0000       10.000    
     3 'Normalizat'    1.0755       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0235       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=   6333.433     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .56E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    21.641        .90712E-02** at limit **
   2  Index         2.1262        6.0397        .50000       -.15551E-04
   3  Normalizat    1.0755        .52657E-02    .61264E-01   -.73025E-04
   4  Prefactor     1.0235        .43948E-02    .41812E-01   -.11500E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.12623
  Normalizat = 1.07547
  Prefactor  = 1.02346
 **********
 **   18 **HESSE 
 **********

 FCN=   6333.433     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      269 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    403.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1262        8.4520        .50000       -.61230    
   3  Normalizat    1.0755        .23243E-01    .27096E-03   -.90543    
   4  Prefactor     1.0235        .19413E-01    .23003E-03   -.91952    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.97398e-09
Minuit parameter uncertainties:
  1  0.00107479
  2  19.3676
  3  0.0232428
  4  0.0194127
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818744': 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) = 6333.43251166
delta logL = 3.72273461835e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.075e-03  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.126e+00  1.937e+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.023e+00  1.941e-02  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.075e+00  2.324e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.942 5.191

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/818744/cmap_HighResolution_389404801_389664001_4FGL_J1019.7+0511_daily_bin579.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-01 18:27:23.271456', job_id='818744', GAL2='1.02', fit_tolerance='1e-08', EG2='1.08', EG='1.08', time_epoch_completed='1630546043.27', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='3.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='579' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0258>
Subject: Job 818744: <4FGL_J1019.7+0511_daily_bin579> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin579 154.942 5.1905 389404801 389664001 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 :                                   558.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             287.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   694 sec.
    Turnaround time :                            696 sec.

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

