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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin742
RA = 154.942, Dec = 5.1905
tmin = 431654401, tmax = 431913601
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='819055', job_status='RUN', time_executed='2021-09-01 18:20:18.755856', time_epoch_executed='1630545618.76' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='742'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819055

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819055/ft1_4FGL_J1019.7+0511_daily_bin742.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819055/ft1_4FGL_J1019.7+0511_daily_bin742.fits outfile=/scratch/kocevski/819055/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin742.fits ra=154.942 dec=5.1905 rad=12.0 tmin=431654401.0 tmax=431913601.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 6.17
user 5.90
sys 0.25

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits" evtable="EVENTS" scfile=/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits sctable="SC_DATA" outfile=/scratch/kocevski/819055/ltcube_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.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/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits
.....................!
real 12.81
user 12.45
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits sctable="SC_DATA" expcube=/scratch/kocevski/819055/ltcube_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.fits outfile=/scratch/kocevski/819055/expmap_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.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/819055/ltcube_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.fits
.....................!
real 189.94
user 185.38
sys 4.16

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/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits scfile=/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits outfile=/scratch/kocevski/819055/cmap_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.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/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits scfile=/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits outfile=/scratch/kocevski/819055/cmap_HighResolution_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.942 yref=5.1905 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits evtable="EVENTS" scfile=/scratch/kocevski/819055/ft2_4FGL_J1019.7+0511_daily_bin742.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819055/Model_4FGL_J1019.7+0511_daily_bin742.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/819055/ft1_filtered_4FGL_J1019.7+0511_daily_bin742.fits.....................!
real 63.60
user 62.22
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.2150       1.0000         .10000E-03   10000.    
     2 'norm      '    1.6164       1.0000         .10000E-03   10000.    
     3 'Prefactor '    20.317       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    27.015       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10568E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1042       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.7951       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.0548       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.4766       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10259E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.1575       1.0000         .10000E-03   10000.    
    17 'Prefactor '    25.796       1.0000         .10000E-03   10000.    
    18 'Prefactor '    101.34       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .98897       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0591       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=   6745.694     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2375 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.2148        1.7981       -.71194E-07   -.25297E-03
   2  norm          1.6164        .67209       -.31094E-07   -.41445E-03
   3  Prefactor     20.317        12.960        .19368E-05   -.29914E-03
   4  Prefactor     .10000E-03    12.589       -.12139E-06** at limit **
   5  Prefactor     .10000E-03    10.340        .66877E-07** at limit **
   6  norm          27.017        17.611        .92089E-06   -.12469E-03
   7  Prefactor     .10000E-03    4.4548       -.13194E-06** at limit **
   8  Prefactor     .10000E-03    337.33       -.65246E-05** at limit **
   9  Prefactor     .10000E-03    20.847        .36932E-06** at limit **
  10  Prefactor     .10000E-03    5.8805       -.12419E-06** at limit **
  11  norm          2.1043        1.2473       -.46279E-07   -.20537E-03
  12  Prefactor     3.7952        4.5121       -.25166E-06   -.40084E-03
  13  Prefactor     4.0538        3.1006       -.37172E-07   -.34478E-03
  14  Prefactor     2.4761        9.7219       -.55261E-05   -.75137E-04
  15  Prefactor     .10000E-03    5.5238        .70016E-06** at limit **
  16  norm          1.1575        .62144        .22636E-06   -.59538E-03
  17  Prefactor     25.794        12.187       -.24534E-05    .34789E-03
  18  Prefactor     101.33        39.839        .31064E-06   -.69085E-04
  19  Normalizat    .98912        .19803        .41631E-06   -.65233E-04
  20  Prefactor     1.0590        .16002        .12857E-06   -.46240E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.2148
  norm       = 1.61637
  Prefactor  = 20.3175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 27.0174
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.10427
  Prefactor  = 3.79517
  Prefactor  = 4.05379
  Prefactor  = 2.47611
  Prefactor  = 0.0001
  norm       = 1.15746
  Prefactor  = 25.7941
  Prefactor  = 101.331
  Normalizat = 0.989121
  Prefactor  = 1.05898
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.694     FROM HESSE     STATUS=OK           293 CALLS     2668 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.2148        1.8052        .67690E-04   -1.5297    
   2  norm          1.6164        .66646        .41168E-04   -1.5454    
   3  Prefactor     20.317        12.905        .88859E-04   -1.4806    
   4  Prefactor     .10000E-03    12.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          27.017        17.581        .77077E-04   -1.4668    
   7  Prefactor     .10000E-03    4.4786        .16928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    345.92        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    20.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8884        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1043        1.2434        .67897E-04   -1.5418    
  12  Prefactor     3.7952        4.5289        .18375E-03   -1.5318    
  13  Prefactor     4.0538        3.0660        .11976E-03   -1.5305    
  14  Prefactor     2.4761        10.348        .25980E-03   -1.5393    
  15  Prefactor     .10000E-03    74.225        .35478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.1575        .62132        .41951E-04   -1.5493    
  17  Prefactor     25.794        12.045        .78872E-04   -1.4692    
  18  Prefactor     101.33        39.615        .39938E-04   -1.3691    
  19  Normalizat    .98912        .22693        .29274E-03   -.93396    
  20  Prefactor     1.0590        .18416        .24069E-03   -.90788    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.4522e-10
Minuit parameter uncertainties:
  1  1.80518
  2  0.66646
  3  12.907
  4  2.05661e-06
  5  4.75542e-06
  6  17.5845
  7  1.42953e-05
  8  0.00141637
  9  4.95141e-05
  10  4.53334e-06
  11  1.24338
  12  4.52928
  13  3.06611
  14  10.1266
  15  0.000124979
  16  0.621327
  17  12.046
  18  39.6253
  19  0.227155
  20  0.184267
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.533e-06  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.059e+00  1.843e-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.891e-01  2.272e-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: 4.35e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.26e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819055/likelihoodResults_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.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) = 6745.69504142
delta logL = -0.000805675448646

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6745.69423708
delta logL = -1.3329417925e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11041E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9626       1.0000          .0000       10.000    
     3 'Normalizat'    .98940       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0588       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=   6745.694     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      242 TOTAL
                     EDM=   .47E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10088E-03    27.135        .18142E-02** at limit **
   2  Index         1.9150        7.5979        .50000        .37057E-04
   3  Normalizat    .98912        .98919E-02    .29274E-03   -.46331E-04
   4  Prefactor     1.0590        .84354E-02    .24069E-03   -.35945E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100881
  Index      = 1.91498
  Normalizat = 0.989121
  Prefactor  = 1.05898
 **********
 **   18 **HESSE 
 **********

 FCN=   6745.694     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10088E-03    131.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9150        9.0377        .50000       -.66493    
   3  Normalizat    .98912        .22180E-01    .11710E-04   -.93396    
   4  Prefactor     1.0590        .18912E-01    .96276E-05   -.90788    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.30995e-08
Minuit parameter uncertainties:
  1  0.0215697
  2  188.744
  3  0.0221799
  4  0.0189126
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819055': 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) = 6745.69423496
delta logL = 7.85379597801e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.009e-04  2.157e-02  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.915e+00  1.887e+02  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.059e+00  1.891e-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.891e-01  2.218e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/819055/cmap_HighResolution_431654401_431913601_4FGL_J1019.7+0511_daily_bin742.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.26e-03', job_status='DONE', photon_flux_upper_limit='4.35e-08', time_completed='2021-09-01 18:30:43.796674', job_id='819055', GAL2='1.06', fit_tolerance='1e-08', EG2='0.99', EG='0.99', time_epoch_completed='1630546243.8', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.06', dlogl='7.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='742' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:30:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 819055: <4FGL_J1019.7+0511_daily_bin742> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin742 154.942 5.1905 431654401 431913601 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 :                                   625.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   856 sec.
    Turnaround time :                            859 sec.

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

