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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin783
RA = 154.942, Dec = 5.1905
tmin = 442281601, tmax = 442540801
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='820058', job_status='RUN', time_executed='2021-09-01 18:22:23.862983', time_epoch_executed='1630545743.86' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='783'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/820058

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/820058/ft1_4FGL_J1019.7+0511_daily_bin783.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/820058/ft1_4FGL_J1019.7+0511_daily_bin783.fits outfile=/scratch/kocevski/820058/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin783.fits ra=154.942 dec=5.1905 rad=12.0 tmin=442281601.0 tmax=442540801.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.45
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits" evtable="EVENTS" scfile=/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits sctable="SC_DATA" outfile=/scratch/kocevski/820058/ltcube_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.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/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits
.....................!
real 13.37
user 13.01
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits sctable="SC_DATA" expcube=/scratch/kocevski/820058/ltcube_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.fits outfile=/scratch/kocevski/820058/expmap_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.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/820058/ltcube_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.fits
.....................!
real 190.20
user 185.54
sys 4.25

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/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits scfile=/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits outfile=/scratch/kocevski/820058/cmap_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.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.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits scfile=/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits outfile=/scratch/kocevski/820058/cmap_HighResolution_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.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.59
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits evtable="EVENTS" scfile=/scratch/kocevski/820058/ft2_4FGL_J1019.7+0511_daily_bin783.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/820058/Model_4FGL_J1019.7+0511_daily_bin783.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/820058/ft1_filtered_4FGL_J1019.7+0511_daily_bin783.fits.....................!
real 58.29
user 56.05
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.7223       1.0000         .10000E-03   10000.    
     2 'norm      '    .92116       1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.687       1.0000         .10000E-03   10000.    
     4 'Prefactor '    92.920       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1520       1.0000         .10000E-03   10000.    
     8 'Prefactor '    50.558       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11192E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.734       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5633       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.921       1.0000         .10000E-03   10000.    
    13 'Prefactor '    15.243       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.141       1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.002       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1875       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76520E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.5386       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1659       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .75430       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=   5733.818     FROM MIGRAD    STATUS=CONVERGED    406 CALLS     2008 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.7228        1.7585       -.14324E-06   -.17808E-03
   2  norm          .92108        .65529       -.61536E-07   -.69526E-03
   3  Prefactor     12.688        11.784        .12219E-05    .35942E-04
   4  Prefactor     92.929        51.573        .73395E-05    .16816E-04
   5  Prefactor     .10000E-03    17.376       -.49451E-06** at limit **
   6  norm          .10000E-03    5.2265        .67193E-06** at limit **
   7  Prefactor     1.1492        7.5221       -.76133E-06   -.85329E-03
   8  Prefactor     50.543        67.090       -.18311E-04    .15684E-04
   9  Prefactor     .10000E-03    47.350       -.20813E-05** at limit **
  10  Prefactor     20.728        18.050        .24255E-06    .34880E-04
  11  norm          1.5627        1.6759       -.26307E-06   -.67808E-03
  12  Prefactor     10.922        7.6932       -.12702E-05   -.40726E-04
  13  Prefactor     15.245        5.3115        .31630E-06    .21843E-04
  14  Prefactor     11.143        9.0581       -.15545E-06   -.28655E-04
  15  Prefactor     14.997        10.365       -.15387E-07    .40011E-04
  16  norm          2.1859        .72886        .10790E-06    .11058E-02
  17  Prefactor     .10000E-03    7.4944       -.58948E-06** at limit **
  18  Prefactor     7.5386        14.608       -.30418E-06   -.27972E-04
  19  Normalizat    1.1656        .22262        .24519E-05   -.47972E-04
  20  Prefactor     .75456        .16934       -.12122E-05    .13051E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.7228
  norm       = 0.921085
  Prefactor  = 12.6882
  Prefactor  = 92.9289
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.14922
  Prefactor  = 50.5432
  Prefactor  = 0.000100001
  Prefactor  = 20.7277
  norm       = 1.56271
  Prefactor  = 10.9221
  Prefactor  = 15.2449
  Prefactor  = 11.1431
  Prefactor  = 14.9971
  norm       = 2.18592
  Prefactor  = 0.000100001
  Prefactor  = 7.53861
  Normalizat = 1.16555
  Prefactor  = 0.754558
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.818     FROM HESSE     STATUS=OK           297 CALLS     2305 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.7228        1.7657        .75560E-04   -1.5378    
   2  norm          .92108        .63880        .49128E-04   -1.5516    
   3  Prefactor     12.688        11.797        .11246E-03   -1.4995    
   4  Prefactor     92.929        51.428        .41691E-04   -1.3777    
   5  Prefactor     .10000E-03    17.398        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    5.2329        .16914E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1492        7.6641        .39208E-03   -1.5494    
   8  Prefactor     50.543        65.408        .56401E-04   -1.4285    
   9  Prefactor     .10000E-03    47.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.728        18.001        .87961E-04   -1.4797    
  11  norm          1.5627        1.6595        .95429E-04   -1.5458    
  12  Prefactor     10.922        7.6778        .12123E-03   -1.5047    
  13  Prefactor     15.245        5.3263        .94118E-04   -1.4927    
  14  Prefactor     11.143        9.0861        .12003E-03   -1.5040    
  15  Prefactor     14.997        10.327        .10341E-03   -1.4933    
  16  norm          2.1859        .67648        .33267E-04   -1.5412    
  17  Prefactor     .10000E-03    28.251        .36962E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.5386        14.606        .14606E-03   -1.5159    
  19  Normalizat    1.1656        .26428        .26624E-03   -.87674    
  20  Prefactor     .75456        .19933        .26383E-03   -1.0143    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69357e-09
Minuit parameter uncertainties:
  1  1.76568
  2  0.638809
  3  11.7988
  4  51.4528
  5  5.03436e-05
  6  2.52428e-05
  7  5.9364
  8  65.5013
  9  0.00040657
  10  18.0054
  11  1.65955
  12  7.67844
  13  5.32648
  14  9.08719
  15  10.3283
  16  0.676484
  17  0.000315837
  18  14.6131
  19  0.264585
  20  0.199525
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.073e+01  1.801e+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:  7.546e-01  1.995e-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.166e+00  2.646e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 6.52
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.16e-08 +/- 2.75e-08
Energy Flux (Fixed Index): 2.20e-05 +/- 1.91e-05

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) = 5733.14370486
delta logL = 0.674435852711

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5733.13486342
delta logL = 0.683277294717

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.037       1.0000         .10000E-03   10000.    
     2 'Index     '    1.1219       1.0000          .0000       10.000    
     3 'Normalizat'    1.1868       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75053       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=   5733.135     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      254 TOTAL
                     EDM=   .58E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.047        28.563        .81703E-04   -.22263E-05
   2  Index         1.1221        .77229        .11968E-01   -.28981E-05
   3  Normalizat    1.1868        .23807        .26432E-03   -.41850E-04
   4  Prefactor     .75053        .19512        .26463E-03    .63280E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.0474
  Index      = 1.12211
  Normalizat = 1.18685
  Prefactor  = 0.75053
 **********
 **   18 **HESSE 
 **********

 FCN=   5733.135     FROM HESSE     STATUS=OK            25 CALLS      279 TOTAL
                     EDM=   .57E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.047        29.186        .32681E-05   -1.4727    
   2  Index         1.1221        .78892        .47874E-03   -.88763    
   3  Normalizat    1.1868        .23832        .10573E-04   -.87010    
   4  Prefactor     .75053        .19533        .10585E-04   -1.0158    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.73921e-11
Minuit parameter uncertainties:
  1  29.2037
  2  0.797379
  3  0.238536
  4  0.195505
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/820058': 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) = 5733.13486334
delta logL = 0.683277373533

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.405e+01  2.920e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.122e+00  7.974e-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:  7.505e-01  1.955e-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.187e+00  2.385e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.87
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.12 +/- 0.80
Photon Flux (Free Index): 6.89e-09 +/- 1.10e-08
Energy Flux (Free Index): 7.22e-05 +/- 1.01e-04

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/820058/cmap_HighResolution_442281601_442540801_4FGL_J1019.7+0511_daily_bin783.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.16e-08', energy_flux2='7.22e-05', photon_flux_error='2.75e-08', dlogl='6.83e-01', energy_flux='2.20e-05', photon_flux2='6.89e-09', job_status='DONE', time_completed='2021-09-01 18:30:57.047974', photon_index_error2='0.80', photon_index2='1.12', ts='6.52', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.01e-04', EG='1.17', time_epoch_completed='1630546257.05', return_code='0', job_id='820058', GAL2='0.75', EG2='1.19', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='1.10e-08', ts2='7.87', photon_index='2.00' WHERE bin_id='783' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:30:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0202>
Subject: Job 820058: <4FGL_J1019.7+0511_daily_bin783> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin783> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  1 18:20:27 2021
Job was executed on host(s) <bullet0202>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:20: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:20:28 2021
Terminated at Wed Sep  1 18:30:57 2021
Results reported at Wed Sep  1 18:30:57 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin783 154.942 5.1905 442281601 442540801 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 :                                   512.14 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             255.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   629 sec.
    Turnaround time :                            630 sec.

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

