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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin486
RA = 154.942, Dec = 5.1905
tmin = 365299201, tmax = 365558401
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='818596', job_status='RUN', time_executed='2021-09-01 18:18:17.694095', time_epoch_executed='1630545497.69' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='486'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818596

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818596/ft1_4FGL_J1019.7+0511_daily_bin486.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818596/ft1_4FGL_J1019.7+0511_daily_bin486.fits outfile=/scratch/kocevski/818596/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin486.fits ra=154.942 dec=5.1905 rad=12.0 tmin=365299201.0 tmax=365558401.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.47
user 3.23
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818596/ft1_filtered_4FGL_J1019.7+0511_daily_bin486.fits" evtable="EVENTS" scfile=/scratch/kocevski/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits sctable="SC_DATA" outfile=/scratch/kocevski/818596/ltcube_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.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/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits
.....................!
real 13.04
user 12.67
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818596/ft1_filtered_4FGL_J1019.7+0511_daily_bin486.fits evtable="EVENTS" scfile=/scratch/kocevski/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits sctable="SC_DATA" expcube=/scratch/kocevski/818596/ltcube_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.fits outfile=/scratch/kocevski/818596/expmap_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.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/818596/ltcube_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.fits
.....................!
real 191.57
user 187.11
sys 3.98

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/818596/ft1_filtered_4FGL_J1019.7+0511_daily_bin486.fits scfile=/scratch/kocevski/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits outfile=/scratch/kocevski/818596/cmap_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818596/ft1_filtered_4FGL_J1019.7+0511_daily_bin486.fits scfile=/scratch/kocevski/818596/ft2_4FGL_J1019.7+0511_daily_bin486.fits outfile=/scratch/kocevski/818596/cmap_HighResolution_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.1426       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.9151       1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.532       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .71427       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    22.806       1.0000         .10000E-03   10000.    
    16 'norm      '    1.0087       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7208       1.0000         .10000E-03   10000.    
    18 'Prefactor '    13.090       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .72141       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.3616       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=   5510.266     FROM MIGRAD    STATUS=CONVERGED    430 CALLS     1784 TOTAL
                     EDM=   .26E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    .49247        .10853E-06** at limit **
   2  norm          1.1425        .73862        .25863E-07   -.75846E-04
   3  Prefactor     .10000E-03    4.5450        .43909E-07** at limit **
   4  Prefactor     .10000E-03    19.223        .68792E-07** at limit **
   5  Prefactor     .10000E-03    10.437        .10182E-07** at limit **
   6  norm          3.9143        12.968        .57459E-06    .82014E-05
   7  Prefactor     13.536        12.328       -.38198E-07   -.42359E-05
   8  Prefactor     .10000E-03    86.688        .22330E-05** at limit **
   9  Prefactor     .10000E-03    39.735       -.23462E-06** at limit **
  10  Prefactor     .10000E-03    8.2788        .34164E-07** at limit **
  11  norm          .71379        1.0347        .15365E-06    .24376E-03
  12  Prefactor     .10000E-03    4.1837        .89730E-07** at limit **
  13  Prefactor     .10000E-03    2.3702        .58861E-07** at limit **
  14  Prefactor     .10000E-03    3.1591        .21361E-07** at limit **
  15  Prefactor     22.809        10.674       -.10039E-06    .96134E-05
  16  norm          1.0087        .61694       -.18897E-06    .16008E-03
  17  Prefactor     5.7210        8.4306        .34020E-05   -.16225E-03
  18  Prefactor     13.037        27.529       -.47137E-05   -.26462E-03
  19  Normalizat    .72124        .20568        .11895E-05   -.81636E-04
  20  Prefactor     1.3618        .17835       -.88029E-06    .41223E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.14249
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.91433
  Prefactor  = 13.5362
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.713785
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8089
  norm       = 1.00874
  Prefactor  = 5.72099
  Prefactor  = 13.037
  Normalizat = 0.721235
  Prefactor  = 1.36182
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.266     FROM HESSE     STATUS=OK           293 CALLS     2077 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .73315        .10055E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.1425        .72055        .48680E-04   -1.5494    
   3  Prefactor     .10000E-03    4.5494        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    19.259        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.440        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.9143        12.903        .20390E-03   -1.5312    
   7  Prefactor     13.536        12.285        .10888E-03   -1.4972    
   8  Prefactor     .10000E-03    87.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    39.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    8.2811        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .71379        .90520        .88133E-03   -1.5539    
  12  Prefactor     .10000E-03    4.2404        .14823E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.4410        .22288E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    3.1661        .12885E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     22.809        10.669        .83875E-04   -1.4752    
  16  norm          1.0087        .61678        .41337E-04   -1.5507    
  17  Prefactor     5.7210        8.6218        .83966E-03   -1.5230    
  18  Prefactor     13.037        29.168        .11071E-03   -1.4986    
  19  Normalizat    .72124        .23915        .31252E-03   -1.0306    
  20  Prefactor     1.3618        .20994        .21050E-03   -.81487    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.41931e-10
Minuit parameter uncertainties:
  1  6.65722e-06
  2  0.720558
  3  2.40375e-06
  4  1.18613e-06
  5  3.19794e-06
  6  12.9121
  7  12.2877
  8  0.00055602
  9  8.87318e-05
  10  2.16322e-06
  11  0.905213
  12  9.14852e-07
  13  2.71223e-07
  14  7.10451e-07
  15  10.6704
  16  0.616784
  17  8.62364
  18  29.1994
  19  0.239498
  20  0.210072
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.163e-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.362e+00  2.101e-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:  7.212e-01  2.395e-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: 5.92e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.44e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818596/likelihoodResults_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.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) = 5510.2663584
delta logL = -0.000573166415961

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5510.26578559
delta logL = -3.5556149669e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10919E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9673       1.0000          .0000       10.000    
     3 'Normalizat'    .72118       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3619       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=   5510.266     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      247 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10057E-03    32.517        .18142E-02** at limit **
   2  Index         1.9267        5.0460        .50000        .24890E-04
   3  Normalizat    .72124        .94226E-02    .31252E-03    .11641E-05
   4  Prefactor     1.3618        .84886E-02    .21050E-03   -.32404E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010057
  Index      = 1.92669
  Normalizat = 0.721237
  Prefactor  = 1.36182
 **********
 **   18 **HESSE 
 **********

 FCN=   5510.266     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10057E-03    160.03        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9267        5.4184        .50000       -.66196    
   3  Normalizat    .72124        .21267E-01    .12501E-04   -1.0306    
   4  Prefactor     1.3618        .19158E-01    .84201E-05   -.81487    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.16016e-09
Minuit parameter uncertainties:
  1  0.0191552
  2  181.415
  3  0.0212671
  4  0.0191583
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818596': 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) = 5510.26578478
delta logL = 4.52731910627e-07

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.006e-04  1.916e-02  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.927e+00  1.814e+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.362e+00  1.916e-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:  7.212e-01  2.127e-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/818596/cmap_HighResolution_365299201_365558401_4FGL_J1019.7+0511_daily_bin486.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.44e-03', job_status='DONE', photon_flux_upper_limit='5.92e-08', time_completed='2021-09-01 18:27:04.453998', job_id='818596', GAL2='1.36', fit_tolerance='1e-08', EG2='0.72', EG='0.72', time_epoch_completed='1630546024.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.36', dlogl='4.53e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='486' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 818596: <4FGL_J1019.7+0511_daily_bin486> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin486> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:32 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  1 18:15:34 2021
Terminated at Wed Sep  1 18:27:05 2021
Results reported at Wed Sep  1 18:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin486 154.942 5.1905 365299201 365558401 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 :                                   526.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             287.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   690 sec.
    Turnaround time :                            693 sec.

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

