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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin471
RA = 154.942, Dec = 5.1905
tmin = 361411201, tmax = 361670401
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='818572', job_status='RUN', time_executed='2021-09-01 18:18:29.374567', time_epoch_executed='1630545509.37' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='471'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818572

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818572/ft1_4FGL_J1019.7+0511_daily_bin471.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818572/ft2_4FGL_J1019.7+0511_daily_bin471.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818572/ft1_4FGL_J1019.7+0511_daily_bin471.fits outfile=/scratch/kocevski/818572/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin471.fits ra=154.942 dec=5.1905 rad=12.0 tmin=361411201.0 tmax=361670401.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.64
user 3.42
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818572/ft1_filtered_4FGL_J1019.7+0511_daily_bin471.fits" evtable="EVENTS" scfile=/scratch/kocevski/818572/ft2_4FGL_J1019.7+0511_daily_bin471.fits sctable="SC_DATA" outfile=/scratch/kocevski/818572/ltcube_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.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/818572/ft2_4FGL_J1019.7+0511_daily_bin471.fits
.....................!
real 14.91
user 14.41
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818572/ft1_filtered_4FGL_J1019.7+0511_daily_bin471.fits evtable="EVENTS" scfile=/scratch/kocevski/818572/ft2_4FGL_J1019.7+0511_daily_bin471.fits sctable="SC_DATA" expcube=/scratch/kocevski/818572/ltcube_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.fits outfile=/scratch/kocevski/818572/expmap_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.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/818572/ltcube_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.fits
.....................!
real 191.34
user 186.33
sys 4.57

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/818572/ft1_filtered_4FGL_J1019.7+0511_daily_bin471.fits scfile=/scratch/kocevski/818572/ft2_4FGL_J1019.7+0511_daily_bin471.fits outfile=/scratch/kocevski/818572/cmap_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.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.54
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.1203       1.0000         .10000E-03   10000.    
     2 'norm      '    2.0494       1.0000         .10000E-03   10000.    
     3 'Prefactor '    10.407       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    62.631       1.0000         .10000E-03   10000.    
     6 'norm      '    20.528       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    13.534       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5246       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .53449       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9157       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    11.288       1.0000         .10000E-03   10000.    
    16 'norm      '    2.3717       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82699       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0659       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=   5692.748     FROM MIGRAD    STATUS=CONVERGED    407 CALLS     2014 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.1203        1.3011        .70808E-02   -.33774E-03
   2  norm          2.0494        .82679        .72193E-02    .32212E-02
   3  Prefactor     10.401        18.519        .31050E-02   -.12821E-02
   4  Prefactor     .10002E-03    27.786        .90712E-02** at limit **
   5  Prefactor     62.631        45.945        .12676E-02    .74646E-03
   6  norm          20.516        20.664        .22101E-02    .51527E-03
   7  Prefactor     .10000E-03    7.5228        .90712E-02** at limit **
   8  Prefactor     .10010E-03    60.471        .90712E-02** at limit **
   9  Prefactor     .10001E-03    27.553        .90712E-02** at limit **
  10  Prefactor     13.528        18.467        .27219E-02    .40365E-03
  11  norm          1.5244        1.5803        .86471E-02    .20672E-02
  12  Prefactor     .54103        4.3916        .85141E-01   -.25744E-03
  13  Prefactor     2.9157        2.5527        .59482E-02   -.66215E-04
  14  Prefactor     .10001E-03    7.7754        .90712E-02** at limit **
  15  Prefactor     11.288        8.2985        .29810E-02   -.29681E-03
  16  norm          2.3715        .74166        .66512E-02   -.10614E-02
  17  Prefactor     .10000E-03    3.8944        .90712E-02** at limit **
  18  Prefactor     .10000E-03    12.436        .90712E-02** at limit **
  19  Normalizat    .82691        .20945        .67363E-01    .48375E-03
  20  Prefactor     1.0659        .17088        .39059E-01    .69967E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.12029
  norm       = 2.04939
  Prefactor  = 10.4015
  Prefactor  = 0.000100024
  Prefactor  = 62.6309
  norm       = 20.5156
  Prefactor  = 0.000100001
  Prefactor  = 0.000100099
  Prefactor  = 0.000100007
  Prefactor  = 13.5277
  norm       = 1.52444
  Prefactor  = 0.54103
  Prefactor  = 2.91568
  Prefactor  = 0.000100005
  Prefactor  = 11.2882
  norm       = 2.37147
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Normalizat = 0.826912
  Prefactor  = 1.06592
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.748     FROM HESSE     STATUS=OK           287 CALLS     2301 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.1203        1.2973        .64697E-04   -1.5417    
   2  norm          2.0494        .82452        .41414E-04   -1.5422    
   3  Prefactor     10.401        18.520        .12420E-03   -1.5063    
   4  Prefactor     .10002E-03    27.815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     62.631        45.901        .50704E-04   -1.4124    
   6  norm          20.516        20.609        .88402E-04   -1.4802    
   7  Prefactor     .10000E-03    7.5457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10010E-03    60.687        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    27.559        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     13.528        18.451        .54438E-03   -1.4972    
  11  norm          1.5244        1.5560        .90682E-04   -1.5461    
  12  Prefactor     .54103        24.185        .29120E-02   -1.5561    
  13  Prefactor     2.9157        2.5492        .10757E-03   -1.5366    
  14  Prefactor     .10001E-03    7.8521        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     11.288        8.3022        .11924E-03   -1.5036    
  16  norm          2.3715        .74093        .34746E-04   -1.5400    
  17  Prefactor     .10000E-03    3.9025        .14530E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    12.468        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .82691        .24451        .29803E-03   -.99078    
  20  Prefactor     1.0659        .20067        .22412E-03   -.90563    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.86791e-08
Minuit parameter uncertainties:
  1  1.29728
  2  0.824522
  3  18.5305
  4  0.00162155
  5  45.9269
  6  20.6161
  7  0.000129582
  8  0.00489652
  9  0.000894474
  10  18.4586
  11  1.55601
  12  7.23706
  13  2.5493
  14  0.000408161
  15  8.303
  16  0.740934
  17  4.75735e-05
  18  0.000168604
  19  0.244837
  20  0.20081
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.353e+01  1.846e+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:  1.066e+00  2.008e-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.269e-01  2.448e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/818572/likelihoodResults_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.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) = 5692.62560871
delta logL = 0.122625979863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5692.62176765
delta logL = 0.126467038804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    22.237       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5758       1.0000          .0000       10.000    
     3 'Normalizat'    .83770       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0605       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=   5692.622     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      319 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     22.237        29.304        .84941E-04   -.78967E-04
   2  Index         1.5757        .77266        .11974E-01   -.88719E-05
   3  Normalizat    .83774        .23372        .29624E-03   -.59483E-04
   4  Prefactor     1.0604        .19820        .22459E-03   -.10277E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 22.2374
  Index      = 1.57575
  Normalizat = 0.837743
  Prefactor  = 1.06043
 **********
 **   18 **HESSE 
 **********

 FCN=   5692.622     FROM HESSE     STATUS=OK            25 CALLS      344 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     22.237        28.804        .16988E-04   -1.4764    
   2  Index         1.5757        .75979        .47894E-03   -.75440    
   3  Normalizat    .83774        .23384        .11850E-04   -.98684    
   4  Prefactor     1.0604        .19836        .44919E-04   -.90741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32721e-11
Minuit parameter uncertainties:
  1  28.8221
  2  0.765412
  3  0.234126
  4  0.198502
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818572': 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) = 5692.62176763
delta logL = 0.126467060979

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.224e+01  2.882e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.576e+00  7.654e-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.060e+00  1.985e-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.377e-01  2.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.75
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/818572/cmap_HighResolution_361411201_361670401_4FGL_J1019.7+0511_daily_bin471.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.81e-03', job_status='DONE', photon_flux_upper_limit='9.08e-08', time_completed='2021-09-01 18:27:36.194667', job_id='818572', GAL2='1.06', fit_tolerance='1e-08', EG2='0.84', EG='0.83', time_epoch_completed='1630546056.19', return_code2='0', ts='0.75', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='1.26e-01', ts2='1.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='471' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 818572: <4FGL_J1019.7+0511_daily_bin471> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin471> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:15:30 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:15:32 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:32 2021
Terminated at Wed Sep  1 18:27:37 2021
Results reported at Wed Sep  1 18:27:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin471 154.942 5.1905 361411201 361670401 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.13 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             271.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   724 sec.
    Turnaround time :                            727 sec.

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

