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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin931
RA = 154.942, Dec = 5.1905
tmin = 480643201, tmax = 480902401
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='821355', job_status='RUN', time_executed='2021-09-01 18:27:45.912348', time_epoch_executed='1630546065.91' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='931'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821355

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821355/ft1_4FGL_J1019.7+0511_daily_bin931.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821355/ft1_4FGL_J1019.7+0511_daily_bin931.fits outfile=/scratch/kocevski/821355/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin931.fits ra=154.942 dec=5.1905 rad=12.0 tmin=480643201.0 tmax=480902401.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.58
user 3.32
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits" evtable="EVENTS" scfile=/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits sctable="SC_DATA" outfile=/scratch/kocevski/821355/ltcube_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.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/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits
.....................!
real 15.93
user 15.50
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits sctable="SC_DATA" expcube=/scratch/kocevski/821355/ltcube_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits outfile=/scratch/kocevski/821355/expmap_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.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/821355/ltcube_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits
.....................!
real 191.34
user 185.78
sys 5.01

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/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits scfile=/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits outfile=/scratch/kocevski/821355/cmap_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.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.62
user 0.41
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits scfile=/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits outfile=/scratch/kocevski/821355/cmap_HighResolution_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.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.56
user 0.40
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits evtable="EVENTS" scfile=/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821355/Model_4FGL_J1019.7+0511_daily_bin931.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/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits.....................!
real 52.30
user 50.97
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits', '/scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits', expMap='/scratch/kocevski/821355/expmap_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits', expCube='/scratch/kocevski/821355/ltcube_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/821355/Model_4FGL_J1019.7+0511_daily_bin931.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/821355/ft1_filtered_4FGL_J1019.7+0511_daily_bin931.fits
Spacecraft file(s): /scratch/kocevski/821355/ft2_4FGL_J1019.7+0511_daily_bin931.fits
Exposure map: /scratch/kocevski/821355/expmap_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits
Exposure cube: /scratch/kocevski/821355/ltcube_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/821355/Model_4FGL_J1019.7+0511_daily_bin931.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 5240.79252018

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6218       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    33.488       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      '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9591       1.0000         .10000E-03   10000.    
     9 'Prefactor '    13.247       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.9404       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .74337       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.003       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8420       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .80953       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0545       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=   5240.748     FROM MIGRAD    STATUS=CONVERGED    417 CALLS     2422 TOTAL
                     EDM=   .77E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6218        1.4721        .58910E-07    .59910E-04
   2  norm          .10000E-03    .25513        .14564E-06** at limit **
   3  Prefactor     33.486        20.467       -.39260E-07    .42106E-05
   4  Prefactor     .10000E-03    20.509        .53357E-06** at limit **
   5  Prefactor     .10000E-03    11.656        .43404E-06** at limit **
   6  norm          .10000E-03    32.991       -.94995E-06** at limit **
   7  Prefactor     .10000E-03    22.578       -.15297E-05** at limit **
   8  Prefactor     5.9486        264.46       -.16675E-05   -.13155E-04
   9  Prefactor     13.237        114.93        .27408E-05    .92967E-05
  10  Prefactor     .10000E-03    16.404       -.18962E-05** at limit **
  11  norm          2.9405        1.7952        .14965E-07    .50280E-03
  12  Prefactor     .10004E-03    10.353       -.34003E-05** at limit **
  13  Prefactor     .74356        3.0118        .75377E-06   -.11374E-04
  14  Prefactor     11.003        8.9104        .17040E-05    .77640E-03
  15  Prefactor     .10000E-03    9.3502       -.13337E-06** at limit **
  16  norm          1.8420        .68926        .16739E-09   -.24090E-03
  17  Prefactor     .10000E-03    3.5583        .31951E-07** at limit **
  18  Prefactor     .10000E-03    12.998       -.12944E-06** at limit **
  19  Normalizat    .80951        .20916        .27684E-06    .55944E-05
  20  Prefactor     1.0545        .16712       -.12020E-05   -.55883E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.62179
  norm       = 0.0001
  Prefactor  = 33.4863
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 5.94859
  Prefactor  = 13.2366
  Prefactor  = 0.000100002
  norm       = 2.94045
  Prefactor  = 0.000100036
  Prefactor  = 0.743565
  Prefactor  = 11.0031
  Prefactor  = 0.0001
  norm       = 1.84201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.809508
  Prefactor  = 1.05447
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.748     FROM HESSE     STATUS=OK           297 CALLS     2719 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6218        1.4690        .62860E-04   -1.5384    
   2  norm          .10000E-03    .35038        .70707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     33.486        20.325        .69246E-04   -1.4550    
   4  Prefactor     .10000E-03    20.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    11.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    33.279        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9486        251.88        .16449E-03   -1.5220    
   9  Prefactor     13.237        110.44        .11005E-03   -1.4980    
  10  Prefactor     .10000E-03    16.710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.9405        1.7798        .71460E-04   -1.5365    
  12  Prefactor     .10004E-03    16.637        .31471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .74356        4.8556        .22332E-02   -1.5536    
  14  Prefactor     11.003        9.3685        .60391E-03   -1.5044    
  15  Prefactor     .10000E-03    9.5979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8420        .68839        .35359E-04   -1.5437    
  17  Prefactor     .10000E-03    3.5662        .13331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.045        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .80951        .24358        .28311E-03   -.99717    
  20  Prefactor     1.0545        .19645        .21316E-03   -.90935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.11895e-08
Minuit parameter uncertainties:
  1  1.46905
  2  3.31361e-06
  3  20.3297
  4  0.000222938
  5  0.000139945
  6  0.000429092
  7  5.43195e-05
  8  77.7685
  9  76.6609
  10  0.000404228
  11  1.77979
  12  0.00155632
  13  3.80041
  14  9.36973
  15  3.13773e-05
  16  0.688393
  17  3.70423e-06
  18  5.51295e-05
  19  0.243913
  20  0.196588
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.042e-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.054e+00  1.966e-01  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  8.095e-01  2.439e-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: 7.32e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.49e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/821355/likelihoodResults_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.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) = 5240.74862456
delta logL = -0.000285207136585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5240.74833948
delta logL = -1.23807694763e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11134E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0976       1.0000          .0000       10.000    
     3 'Normalizat'    .80950       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0545       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=   5240.748     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      236 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    27.267        .90712E-02** at limit **
   2  Index         2.1195        5.9651        .50000       -.11579E-04
   3  Normalizat    .80951        .59844E-02    .64000E-01    .32734E-03
   4  Prefactor     1.0545        .51068E-02    .39655E-01    .46812E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  Index      = 2.11945
  Normalizat = 0.809508
  Prefactor  = 1.05447
 **********
 **   18 **HESSE 
 **********

 FCN=   5240.748     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      267 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    724.80        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1195        5.2354        .50000       -.61396    
   3  Normalizat    .80951        .32438E-01    .28311E-03   -.99717    
   4  Prefactor     1.0545        .27716E-01    .21316E-03   -.90935    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.76292e-08
Minuit parameter uncertainties:
  1  0.00213431
  2  26.1714
  3  0.0324384
  4  0.0277164
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821355': 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) = 5240.7483391
delta logL = 2.52171048487e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.134e-03  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.119e+00  2.617e+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.054e+00  2.772e-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:  8.095e-01  3.244e-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/821355/cmap_HighResolution_480643201_480902401_4FGL_J1019.7+0511_daily_bin931.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.49e-03', job_status='DONE', photon_flux_upper_limit='7.32e-08', time_completed='2021-09-01 18:36:53.507878', job_id='821355', GAL2='1.05', fit_tolerance='1e-08', EG2='0.81', EG='0.81', time_epoch_completed='1630546613.51', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.05', dlogl='2.52e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='931' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:36:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0274>
Subject: Job 821355: <4FGL_J1019.7+0511_daily_bin931> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin931> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 18:25:20 2021
Job was executed on host(s) <bullet0274>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:25:22 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:25:22 2021
Terminated at Wed Sep  1 18:36:53 2021
Results reported at Wed Sep  1 18:36:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin931 154.942 5.1905 480643201 480902401 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 :                                   546.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.91 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   691 sec.
    Turnaround time :                            693 sec.

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

