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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin576
RA = 154.942, Dec = 5.1905
tmin = 388627201, tmax = 388886401
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='818739', job_status='RUN', time_executed='2021-09-01 18:19:37.094756', time_epoch_executed='1630545577.09' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='576'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818739/ft1_4FGL_J1019.7+0511_daily_bin576.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818739/ft1_4FGL_J1019.7+0511_daily_bin576.fits outfile=/scratch/kocevski/818739/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin576.fits ra=154.942 dec=5.1905 rad=12.0 tmin=388627201.0 tmax=388886401.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 4.04
user 3.80
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818739/ft1_filtered_4FGL_J1019.7+0511_daily_bin576.fits" evtable="EVENTS" scfile=/scratch/kocevski/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits sctable="SC_DATA" outfile=/scratch/kocevski/818739/ltcube_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.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/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits
.....................!
real 12.66
user 12.32
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818739/ft1_filtered_4FGL_J1019.7+0511_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits sctable="SC_DATA" expcube=/scratch/kocevski/818739/ltcube_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.fits outfile=/scratch/kocevski/818739/expmap_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.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/818739/ltcube_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.fits
.....................!
real 190.20
user 185.74
sys 4.08

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/818739/ft1_filtered_4FGL_J1019.7+0511_daily_bin576.fits scfile=/scratch/kocevski/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits outfile=/scratch/kocevski/818739/cmap_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.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.56
user 0.40
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818739/ft1_filtered_4FGL_J1019.7+0511_daily_bin576.fits evtable="EVENTS" scfile=/scratch/kocevski/818739/ft2_4FGL_J1019.7+0511_daily_bin576.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818739/Model_4FGL_J1019.7+0511_daily_bin576.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/818739/ft1_filtered_4FGL_J1019.7+0511_daily_bin576.fits.....................!
real 47.51
user 46.17
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .50979       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1081       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    27.740       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.4381       1.0000         .10000E-03   10000.    
    11 'norm      '    .11525E-02   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.5807       1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.9166       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.953       1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.5463       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0928       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97580       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=   4352.865     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2039 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .50988        1.2410       -.36589E-06   -.11702E-02
   2  norm          2.1083        .95567       -.86931E-07   -.31669E-03
   3  Prefactor     .10000E-03    14.905        .15051E-04** at limit **
   4  Prefactor     27.752        54.146        .11547E-04    .13493E-04
   5  Prefactor     .10000E-03    14.056       -.12567E-04** at limit **
   6  norm          .10000E-03    9.6936        .20998E-06** at limit **
   7  Prefactor     .10000E-03    5.5214       -.36129E-07** at limit **
   8  Prefactor     .10000E-03    22.184       -.15817E-04** at limit **
   9  Prefactor     .10000E-03    40.878        .80655E-05** at limit **
  10  Prefactor     8.4380        14.055       -.81934E-06   -.72500E-04
  11  norm          .90244E-02    .92437       -.17349E-07   -.30926E-03
  12  Prefactor     8.5743        9.5171       -.10520E-05   -.89465E-04
  13  Prefactor     8.9178        5.3839       -.22628E-05   -.17529E-03
  14  Prefactor     16.955        12.779        .90025E-06   -.25133E-04
  15  Prefactor     9.5495        11.045        .29518E-06   -.79415E-04
  16  norm          .10000E-03    .20730        .16251E-07** at limit **
  17  Prefactor     .10000E-03    3.4624        .27097E-07** at limit **
  18  Prefactor     .10000E-03    20.401        .83276E-05** at limit **
  19  Normalizat    1.0924        .23972        .62304E-06   -.10782E-03
  20  Prefactor     .97596        .19007       -.20392E-06   -.75463E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.509876
  norm       = 2.1083
  Prefactor  = 0.0001
  Prefactor  = 27.7517
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.43799
  norm       = 0.00902445
  Prefactor  = 8.57434
  Prefactor  = 8.91782
  Prefactor  = 16.9555
  Prefactor  = 9.54954
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.09241
  Prefactor  = 0.975958
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.865     FROM HESSE     STATUS=OK           301 CALLS     2340 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .50988        1.2178        .10897E-03   -1.5565    
   2  norm          2.1083        .95329        .41228E-04   -1.5418    
   3  Prefactor     .10000E-03    14.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     27.752        54.186        .76064E-04   -1.4654    
   5  Prefactor     .10000E-03    14.060        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    5.5357        .15136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    22.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.910        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     8.4380        14.049        .13800E-03   -1.5127    
  11  norm          .90244E-02    2.4564        .21683E-01   -1.5689    
  12  Prefactor     8.5743        9.5226        .13685E-03   -1.5122    
  13  Prefactor     8.9178        5.3950        .10867E-03   -1.5111    
  14  Prefactor     16.955        12.847        .97274E-04   -1.4884    
  15  Prefactor     9.5495        11.064        .12970E-03   -1.5090    
  16  norm          .10000E-03    .20735        .18142E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    3.4678        .11988E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    20.466        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0924        .28636        .26616E-03   -.89996    
  20  Prefactor     .97596        .22659        .23455E-03   -.93535    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.4375e-10
Minuit parameter uncertainties:
  1  1.2179
  2  0.953299
  3  3.0221e-05
  4  54.2824
  5  2.55582e-05
  6  7.45839e-06
  7  1.85899e-06
  8  8.75918e-06
  9  4.43847e-05
  10  14.0542
  11  0.296134
  12  9.52429
  13  5.39526
  14  12.8486
  15  11.0661
  16  4.08805e-08
  17  2.59097e-06
  18  5.63994e-06
  19  0.286764
  20  0.226809
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  8.438e+00  1.405e+01  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:  9.760e-01  2.268e-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.092e+00  2.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.60
Ra Dec: 154.942 5.191
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818739/likelihoodResults_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.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): 0
logL (Free Index) = 4352.78620518
delta logL = 0.0788432336876

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4352.78452895
delta logL = 0.0805194585437

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8022       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4483       1.0000          .0000       10.000    
     3 'Normalizat'    1.0829       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98036       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4352.785     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      317 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7685        28.437        .92543E-03   -.10464E-03
   2  Index         2.4536        2.0401        .53851E-02    .25108E-03
   3  Normalizat    1.0830        .26975        .26717E-03   -.76041E-04
   4  Prefactor     .98023        .22548        .23407E-03   -.59351E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.76848
  Index      = 2.45356
  Normalizat = 1.08302
  Prefactor  = 0.980231
 **********
 **   18 **HESSE 
 **********

 FCN=   4352.785     FROM HESSE     STATUS=OK            27 CALLS      344 TOTAL
                     EDM=   .19E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7685        11.990        .37017E-04   -1.5320    
   2  Index         2.4536        1.2141        .10770E-02   -.53436    
   3  Normalizat    1.0830        .26862        .10687E-04   -.90299    
   4  Prefactor     .98023        .22500        .93630E-05   -.93391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.94196e-11
Minuit parameter uncertainties:
  1  11.9976
  2  1.23085
  3  0.268961
  4  0.225215
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818739': 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): 0
logL (Free Index) = 4352.78451618
delta logL = 0.0805322307524

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  3.768e+00  1.200e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.454e+00  1.231e+00  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:  9.802e-01  2.252e-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.083e+00  2.690e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.60
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/818739/cmap_HighResolution_388627201_388886401_4FGL_J1019.7+0511_daily_bin576.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-09-01 18:28:10.145823', job_id='818739', GAL2='0.98', fit_tolerance='1e-08', EG2='1.08', EG='1.09', time_epoch_completed='1630546090.15', return_code2='0', ts='0.60', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='8.05e-02', ts2='0.76', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='576' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:28:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 818739: <4FGL_J1019.7+0511_daily_bin576> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin576> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:47 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:48 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:48 2021
Terminated at Wed Sep  1 18:28:11 2021
Results reported at Wed Sep  1 18:28:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin576 154.942 5.1905 388627201 388886401 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 :                                   498.24 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             245.60 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   742 sec.
    Turnaround time :                            744 sec.

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

