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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin716
RA = 154.942, Dec = 5.1905
tmin = 424915201, tmax = 425174401
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='819014', job_status='RUN', time_executed='2021-09-01 18:18:45.262924', time_epoch_executed='1630545525.26' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='716'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819014

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819014/ft1_4FGL_J1019.7+0511_daily_bin716.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819014/ft1_4FGL_J1019.7+0511_daily_bin716.fits outfile=/scratch/kocevski/819014/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin716.fits ra=154.942 dec=5.1905 rad=12.0 tmin=424915201.0 tmax=425174401.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.36
user 3.13
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits" evtable="EVENTS" scfile=/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits sctable="SC_DATA" outfile=/scratch/kocevski/819014/ltcube_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.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/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits
.....................!
real 12.40
user 12.08
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits sctable="SC_DATA" expcube=/scratch/kocevski/819014/ltcube_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.fits outfile=/scratch/kocevski/819014/expmap_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.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/819014/ltcube_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.fits
.....................!
real 189.42
user 185.14
sys 3.86

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/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits scfile=/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits outfile=/scratch/kocevski/819014/cmap_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.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.53
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits scfile=/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits outfile=/scratch/kocevski/819014/cmap_HighResolution_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.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.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits evtable="EVENTS" scfile=/scratch/kocevski/819014/ft2_4FGL_J1019.7+0511_daily_bin716.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819014/Model_4FGL_J1019.7+0511_daily_bin716.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/819014/ft1_filtered_4FGL_J1019.7+0511_daily_bin716.fits.....................!
real 55.44
user 54.07
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.7450       1.0000         .10000E-03   10000.    
     2 'norm      '    2.6940       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10323E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    35.159       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.5078       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.7593       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.3262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.5412       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .24965E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .92949       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1217       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=   5427.960     FROM MIGRAD    STATUS=CONVERGED    414 CALLS     2056 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.7451        1.9331        .33939E-07   -.29006E-04
   2  norm          2.6941        .85019        .30691E-07   -.38175E-04
   3  Prefactor     .10000E-03    8.3708       -.15227E-06** at limit **
   4  Prefactor     .10000E-03    10.968        .16467E-05** at limit **
   5  Prefactor     .10000E-03    19.702        .28902E-05** at limit **
   6  norm          .10000E-03    9.6946        .12776E-06** at limit **
   7  Prefactor     .10000E-03    9.0318       -.24260E-06** at limit **
   8  Prefactor     .10000E-03    46.839       -.62710E-06** at limit **
   9  Prefactor     35.172        47.221        .49634E-05    .33008E-03
  10  Prefactor     .10001E-03    15.984       -.21284E-05** at limit **
  11  norm          1.5078        1.3341        .11851E-07   -.10370E-03
  12  Prefactor     9.7597        8.0763        .10235E-06   -.44794E-04
  13  Prefactor     3.3256        2.9827        .14478E-05   -.18431E-02
  14  Prefactor     1.5408        5.4589        .26890E-05    .21060E-03
  15  Prefactor     .10000E-03    7.2575       -.92590E-06** at limit **
  16  norm          .10000E-03    .23910       -.58227E-08** at limit **
  17  Prefactor     .10000E-03    7.2696        .17694E-06** at limit **
  18  Prefactor     .10000E-03    13.540       -.80700E-06** at limit **
  19  Normalizat    .92950        .21679       -.16705E-05    .11400E-03
  20  Prefactor     1.1217        .17890        .31214E-06    .41137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.74506
  norm       = 2.69407
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  Prefactor  = 35.1716
  Prefactor  = 0.000100005
  norm       = 1.50783
  Prefactor  = 9.75968
  Prefactor  = 3.32562
  Prefactor  = 1.54081
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.929502
  Prefactor  = 1.12168
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.960     FROM HESSE     STATUS=OK           291 CALLS     2347 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.7451        1.9342        .48989E-04   -1.5151    
   2  norm          2.6941        .84831        .36545E-04   -1.5380    
   3  Prefactor     .10000E-03    8.4490        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    20.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.2138        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    47.061        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     35.172        50.028        .67585E-04   -1.4521    
  10  Prefactor     .10001E-03    16.841        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.5078        1.3195        .76496E-04   -1.5462    
  12  Prefactor     9.7597        8.0607        .12827E-03   -1.5083    
  13  Prefactor     3.3256        3.3671        .64243E-03   -1.5343    
  14  Prefactor     1.5408        5.4245        .31460E-03   -1.5460    
  15  Prefactor     .10000E-03    25.476        .37298E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .46960        .69448E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.3634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .92950        .24483        .28234E-03   -.95431    
  20  Prefactor     1.1217        .20500        .22557E-03   -.88777    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84508e-09
Minuit parameter uncertainties:
  1  1.93426
  2  0.848312
  3  3.95457e-05
  4  0.000197552
  5  0.00046845
  6  3.39634e-05
  7  0.000204708
  8  0.000407287
  9  50.088
  10  0.00058653
  11  1.31948
  12  8.06155
  13  3.36726
  14  5.42626
  15  0.000238546
  16  4.17974e-06
  17  2.66166e-05
  18  9.90312e-05
  19  0.245121
  20  0.205148
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  5.865e-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.122e+00  2.051e-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.295e-01  2.451e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819014/likelihoodResults_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.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) = 5427.9604672
delta logL = -0.000282982104181

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5427.96018385
delta logL = 3.73811417376e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0937       1.0000          .0000       10.000    
     3 'Normalizat'    .92949       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1217       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=   5427.960     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      239 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    18.889        .90712E-02** at limit **
   2  Index         2.1404        3.3416        .50000       -.25134E-04
   3  Normalizat    .92950        .48230E-02    .45277E-01    .16776E-04
   4  Prefactor     1.1217        .42117E-02    .36815E-01    .17940E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.1404
  Normalizat = 0.9295
  Prefactor  = 1.12169
 **********
 **   18 **HESSE 
 **********

 FCN=   5427.960     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      272 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    314.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1404        8.8626        .50000       -.60884    
   3  Normalizat    .92950        .19880E-01    .28234E-03   -.95431    
   4  Prefactor     1.1217        .17368E-01    .22557E-03   -.88776    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.24016e-08
Minuit parameter uncertainties:
  1  0.00224617
  2  15.8774
  3  0.0198804
  4  0.017368
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819014': 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) = 5427.96018359
delta logL = 6.34080606687e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.246e-03  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.140e+00  1.588e+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.122e+00  1.737e-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:  9.295e-01  1.988e-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/819014/cmap_HighResolution_424915201_425174401_4FGL_J1019.7+0511_daily_bin716.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.89e-03', job_status='DONE', photon_flux_upper_limit='6.52e-08', time_completed='2021-09-01 18:27:43.925606', job_id='819014', GAL2='1.12', fit_tolerance='1e-08', EG2='0.93', EG='0.93', time_epoch_completed='1630546063.93', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.12', dlogl='6.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='716' 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@bullet0268>
Subject: Job 819014: <4FGL_J1019.7+0511_daily_bin716> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin716> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:16:21 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:16:23 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:23 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_bin716 154.942 5.1905 424915201 425174401 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 :                                   538.36 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             322.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   681 sec.
    Turnaround time :                            683 sec.

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

