/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 152 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 = 7396
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1019.7+0511_daily_bin14
RA = 154.942, Dec = 5.1905
tmin = 242956801, tmax = 243216001
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='816941', job_status='RUN', time_executed='2021-09-01 18:13:12.754281', time_epoch_executed='1630545192.75' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='14'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/816941

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/816941/ft1_4FGL_J1019.7+0511_daily_bin14.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/816941/ft1_4FGL_J1019.7+0511_daily_bin14.fits outfile=/scratch/kocevski/816941/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin14.fits ra=154.942 dec=5.1905 rad=12.0 tmin=242956801.0 tmax=243216001.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 1.46
user 1.26
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.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/816941/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin14.fits evtable="EVENTS" outfile="/scratch/kocevski/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.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.54
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.fits" evtable="EVENTS" scfile=/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits sctable="SC_DATA" outfile=/scratch/kocevski/816941/ltcube_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.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/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits
.....................!
real 18.88
user 18.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits sctable="SC_DATA" expcube=/scratch/kocevski/816941/ltcube_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.fits outfile=/scratch/kocevski/816941/expmap_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.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/816941/ltcube_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.fits
.....................!
real 193.11
user 187.34
sys 5.10

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/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.fits scfile=/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits outfile=/scratch/kocevski/816941/cmap_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.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.55
user 0.38
sys 0.15

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

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.fits evtable="EVENTS" scfile=/scratch/kocevski/816941/ft2_4FGL_J1019.7+0511_daily_bin14.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/816941/Model_4FGL_J1019.7+0511_daily_bin14.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/816941/ft1_filtered_4FGL_J1019.7+0511_daily_bin14.fits.....................!
real 83.62
user 82.16
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .14102       1.0000         .10000E-03   10000.    
     2 'norm      '    1.4352       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10738E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.1641       1.0000         .10000E-03   10000.    
     7 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    106.69       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10290E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.9963       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.8811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .42074       1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.8539       1.0000         .10000E-03   10000.    
    16 'norm      '    .58971       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    22.800       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1592       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=   9317.577     FROM MIGRAD    STATUS=CONVERGED    427 CALLS     2093 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .14097        .51821        .87688E-06    .85876E-04
   2  norm          1.4353        .57084        .40766E-07   -.54493E-04
   3  Prefactor     .10000E-03    3.9137        .16652E-06** at limit **
   4  Prefactor     .10000E-03    17.282       -.57039E-07** at limit **
   5  Prefactor     .10000E-03    46.172       -.18636E-06** at limit **
   6  norm          3.1634        9.0278        .66893E-06   -.32386E-04
   7  Prefactor     15.825        10.828       -.10260E-06   -.26111E-03
   8  Prefactor     .10000E-03    20.460        .78044E-06** at limit **
   9  Prefactor     106.76        60.354       -.66514E-06   -.27839E-04
  10  Prefactor     .10000E-03    33.823        .11362E-04** at limit **
  11  norm          .10000E-03    .44926        .34843E-07** at limit **
  12  Prefactor     7.9969        6.5445        .25510E-06   -.90402E-04
  13  Prefactor     4.8818        3.1437        .15685E-06   -.12506E-03
  14  Prefactor     .43535        5.0208        .93200E-06   -.32426E-03
  15  Prefactor     4.8548        5.4440        .17627E-06   -.65837E-04
  16  norm          .58983        .44167        .44392E-07    .13123E-03
  17  Prefactor     .10000E-03    5.1021       -.97216E-07** at limit **
  18  Prefactor     22.798        16.394        .77995E-07   -.20000E-04
  19  Normalizat    1.0156        .16655       -.13875E-05   -.22413E-03
  20  Prefactor     1.1594        .13610        .39619E-06   -.34068E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.140968
  norm       = 1.43528
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.16339
  Prefactor  = 15.825
  Prefactor  = 0.0001
  Prefactor  = 106.763
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.99685
  Prefactor  = 4.88182
  Prefactor  = 0.435352
  Prefactor  = 4.85482
  norm       = 0.589829
  Prefactor  = 0.0001
  Prefactor  = 22.7977
  Normalizat = 1.01558
  Prefactor  = 1.15939
 **********
 **   18 **HESSE 
 **********

 FCN=   9317.577     FROM HESSE     STATUS=OK           299 CALLS     2392 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .14097        .51712        .12905E-03   -1.5633    
   2  norm          1.4353        .56602        .43736E-04   -1.5468    
   3  Prefactor     .10000E-03    3.9214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    17.308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.1634        8.9969        .22785E-03   -1.5352    
   7  Prefactor     15.825        10.792        .10068E-03   -1.4912    
   8  Prefactor     .10000E-03    20.477        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     106.76        59.974        .19467E-03   -1.3638    
  10  Prefactor     .10000E-03    34.020        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .46473        .12618E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     7.9969        6.5455        .14179E-03   -1.5142    
  13  Prefactor     4.8818        3.1379        .12819E-03   -1.5266    
  14  Prefactor     .43535        24.763        .40353E-02   -1.5576    
  15  Prefactor     4.8548        5.4226        .18259E-03   -1.5267    
  16  norm          .58983        .41833        .52910E-03   -1.5554    
  17  Prefactor     .10000E-03    5.1405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     22.798        16.398        .83887E-04   -1.4753    
  19  Normalizat    1.0156        .19689        .28431E-03   -.92510    
  20  Prefactor     1.1594        .16154        .23067E-03   -.87590    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.77129e-10
Minuit parameter uncertainties:
  1  0.517134
  2  0.566024
  3  1.32749e-06
  4  8.25121e-06
  5  0.000115575
  6  9.00076
  7  10.7934
  8  1.37666e-05
  9  60.0079
  10  5.27968e-05
  11  5.6733e-07
  12  6.5461
  13  3.138
  14  6.56885
  15  5.42312
  16  0.418336
  17  1.7466e-06
  18  16.4016
  19  0.197028
  20  0.161608
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  5.280e-05  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.159e+00  1.616e-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.016e+00  1.970e-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.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.56e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/816941/likelihoodResults_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.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) = 9317.57727545
delta logL = -0.000140088808621

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9317.57713522
delta logL = 1.39119947562e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10434E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0464       1.0000          .0000       10.000    
     3 'Normalizat'    1.0156       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1594       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=   9317.577     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      262 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    .30946E-01    .13248    ** at limit **
   2  Index         2.1222        1.6320        .50000       -.14061E-04
   3  Normalizat    1.0156        .28928E-03    .64281E-01    .32927E-04
   4  Prefactor     1.1594        .24998E-03    .52173E-01    .85758E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100018
  Index      = 2.12225
  Normalizat = 1.01558
  Prefactor  = 1.15939
 **********
 **   18 **HESSE 
 **********

 FCN=   9317.577     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      297 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    9.9860        .46447E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1222        6.5651        .50000       -.61328    
   3  Normalizat    1.0156        .18146E-02    .28431E-03   -.92510    
   4  Prefactor     1.1594        .15693E-02    .23067E-03   -.87590    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.76525e-10
Minuit parameter uncertainties:
  1  0.000846096
  2  10.5444
  3  0.00181463
  4  0.00156934
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/816941': 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) = 9317.57713489
delta logL = 4.75123670185e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  8.461e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.122e+00  1.054e+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.159e+00  1.569e-03  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.016e+00  1.815e-03  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/816941/cmap_HighResolution_242956801_243216001_4FGL_J1019.7+0511_daily_bin14.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.56e-03', job_status='DONE', photon_flux_upper_limit='6.08e-08', time_completed='2021-09-01 18:24:57.279143', job_id='816941', GAL2='1.16', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630545897.28', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='4.75e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='14' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0299>
Subject: Job 816941: <4FGL_J1019.7+0511_daily_bin14> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin14> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:27 2021
Job was executed on host(s) <bullet0299>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10: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:10:28 2021
Terminated at Wed Sep  1 18:24:58 2021
Results reported at Wed Sep  1 18:24:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin14 154.942 5.1905 242956801 243216001 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 :                                   704.46 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   869 sec.
    Turnaround time :                            871 sec.

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

