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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin732
RA = 154.942, Dec = 5.1905
tmin = 429062401, tmax = 429321601
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='819039', job_status='RUN', time_executed='2021-09-01 18:19:44.475834', time_epoch_executed='1630545584.48' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819039

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819039/ft1_4FGL_J1019.7+0511_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819039/ft1_4FGL_J1019.7+0511_daily_bin732.fits outfile=/scratch/kocevski/819039/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin732.fits ra=154.942 dec=5.1905 rad=12.0 tmin=429062401.0 tmax=429321601.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 6.39
user 6.10
sys 0.26

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/819039/ltcube_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.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/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits
.....................!
real 12.52
user 12.16
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/819039/ltcube_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.fits outfile=/scratch/kocevski/819039/expmap_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.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/819039/ltcube_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.fits
.....................!
real 190.52
user 185.23
sys 4.78

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/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits scfile=/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits outfile=/scratch/kocevski/819039/cmap_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits scfile=/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits outfile=/scratch/kocevski/819039/cmap_HighResolution_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/819039/ft2_4FGL_J1019.7+0511_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819039/Model_4FGL_J1019.7+0511_daily_bin732.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/819039/ft1_filtered_4FGL_J1019.7+0511_daily_bin732.fits.....................!
real 38.04
user 36.71
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .17260E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .91045       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    14.269       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .39899E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11647E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .15093E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13563E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    20.443       1.0000         .10000E-03   10000.    
    11 'norm      '    3.2076       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.6521       1.0000         .10000E-03   10000.    
    16 'norm      '    1.5508       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.012       1.0000         .10000E-03   10000.    
    18 'Prefactor '    34.567       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .81856       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1745       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=   3375.773     FROM MIGRAD    STATUS=CONVERGED    435 CALLS     2115 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .16716E-01    .78887        .97989E-07    .16014E-03
   2  norm          .91068        .81072        .13331E-06   -.22165E-03
   3  Prefactor     .10000E-03    11.319        .19408E-06** at limit **
   4  Prefactor     14.282        65.541        .80734E-05   -.29433E-05
   5  Prefactor     .10000E-03    21.757       -.57097E-07** at limit **
   6  norm          .10121E-03    25.090       -.65199E-05** at limit **
   7  Prefactor     .10000E-03    8.8318       -.27958E-06** at limit **
   8  Prefactor     .10000E-03    493.92       -.31527E-04** at limit **
   9  Prefactor     .10000E-03    132.83        .33109E-04** at limit **
  10  Prefactor     20.379        22.776        .75146E-05    .14859E-03
  11  norm          3.2080        2.1584       -.65205E-07   -.13874E-03
  12  Prefactor     .10000E-03    5.7610       -.81978E-07** at limit **
  13  Prefactor     .10000E-03    5.6922       -.68194E-06** at limit **
  14  Prefactor     .10000E-03    12.597        .19497E-06** at limit **
  15  Prefactor     6.6512        14.175        .12795E-04   -.36236E-04
  16  norm          1.5501        1.0362       -.86702E-06   -.38917E-03
  17  Prefactor     15.012        19.193        .76578E-05   -.98550E-04
  18  Prefactor     34.575        42.144       -.21187E-05   -.18593E-04
  19  Normalizat    .81864        .25390       -.65149E-05    .23947E-03
  20  Prefactor     1.1742        .21534        .52455E-06    .12028E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0167156
  norm       = 0.910682
  Prefactor  = 0.0001
  Prefactor  = 14.282
  Prefactor  = 0.0001
  norm       = 0.000101208
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 20.379
  norm       = 3.20802
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 6.65121
  norm       = 1.55011
  Prefactor  = 15.0124
  Prefactor  = 34.5748
  Normalizat = 0.818639
  Prefactor  = 1.17416
 **********
 **   18 **HESSE 
 **********

 FCN=   3375.773     FROM HESSE     STATUS=OK           291 CALLS     2406 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .16716E-01    12.012        .98953E-03   -1.5682    
   2  norm          .91068        .78972        .46731E-04   -1.5517    
   3  Prefactor     .10000E-03    11.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     14.282        65.391        .10603E-03   -1.4952    
   5  Prefactor     .10000E-03    21.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10121E-03    112.43        .54165E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.8524        .16853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    507.45        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    131.60        .20548E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     20.379        22.485        .88585E-04   -1.4805    
  11  norm          3.2080        2.1527        .66842E-04   -1.5350    
  12  Prefactor     .10000E-03    5.8001        .13615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    5.8813        .27014E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.6512        14.097        .15558E-03   -1.5192    
  16  norm          1.5501        1.0416        .42462E-04   -1.5459    
  17  Prefactor     15.012        19.195        .10337E-03   -1.4933    
  18  Prefactor     34.575        42.176        .68159E-04   -1.4531    
  19  Normalizat    .81864        .28874        .28332E-03   -.99381    
  20  Prefactor     1.1742        .24869        .21374E-03   -.87130    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12211e-08
Minuit parameter uncertainties:
  1  0.893667
  2  0.789733
  3  6.57048e-05
  4  61.2303
  5  3.09788e-06
  6  0.0233517
  7  3.99545e-05
  8  0.00174546
  9  0.0014871
  10  22.4941
  11  2.15274
  12  6.38606e-06
  13  0.00018005
  14  5.16347e-05
  15  14.1045
  16  1.04159
  17  19.2027
  18  42.2125
  19  0.289287
  20  0.248942
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.038e+01  2.249e+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.174e+00  2.489e-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.186e-01  2.893e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.71
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 3.11e-08 +/- 3.43e-08
Energy Flux (Fixed Index): 2.17e-05 +/- 2.39e-05

TS (Fixed Index): 1.71
Ra Dec: 154.942 5.191
Photon Flux Upper Limit: 1.24e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819039/likelihoodResults_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.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) = 3375.77106701
delta logL = 0.00234710537552

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3375.76811963
delta logL = 0.00529448422958

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.008       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0696       1.0000          .0000       10.000    
     3 'Normalizat'    .81646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1751       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=   3375.768     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      274 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     17.978        33.860        .94382E-04    .49447E-04
   2  Index         2.0698        .78558        .52407E-02    .30337E-03
   3  Normalizat    .81602        .27801        .28373E-03    .10660E-03
   4  Prefactor     1.1754        .24703        .21364E-03   -.86134E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 17.9776
  Index      = 2.06983
  Normalizat = 0.816017
  Prefactor  = 1.17539
 **********
 **   18 **HESSE 
 **********

 FCN=   3375.768     FROM HESSE     STATUS=OK            25 CALLS      299 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     17.978        31.057        .37753E-05   -1.4860    
   2  Index         2.0698        .72098        .10481E-02   -.62616    
   3  Normalizat    .81602        .27796        .11349E-04   -.99477    
   4  Prefactor     1.1754        .24711        .42727E-04   -.87092    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.41399e-10
Minuit parameter uncertainties:
  1  31.0853
  2  0.72484
  3  0.27845
  4  0.247351
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819039': 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) = 3375.7681175
delta logL = 0.00529662168492

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.798e+01  3.109e+01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.070e+00  7.248e-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.175e+00  2.474e-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.160e-01  2.784e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.72
Ra Dec: 154.942 5.191
Photon Index (Free Index): 2.07 +/- 0.72
Photon Flux (Free Index): 3.34e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.96e-05 +/- 2.88e-05

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/819039/cmap_HighResolution_429062401_429321601_4FGL_J1019.7+0511_daily_bin732.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.27e-03', comment='SUCCESS', photon_flux='3.11e-08', energy_flux2='1.96e-05', photon_flux_error='3.43e-08', dlogl='5.30e-03', energy_flux='2.17e-05', photon_flux2='3.34e-08', job_status='DONE', time_completed='2021-09-01 18:27:34.841130', photon_index_error2='0.72', photon_index2='2.07', ts='1.71', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', photon_flux_upper_limit='1.24e-07', energy_flux_error2='2.88e-05', EG='0.82', time_epoch_completed='1630546054.84', return_code='0', job_id='819039', GAL2='1.18', EG2='0.82', return_code2='0', energy_flux_error='2.39e-05', photon_flux_error2='4.22e-08', ts2='1.72', photon_index='2.00' WHERE bin_id='732' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:27:34 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0275>
Subject: Job 819039: <4FGL_J1019.7+0511_daily_bin732> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin732> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  1 18:16:23 2021
Job was executed on host(s) <bullet0275>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:16:25 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:16:25 2021
Terminated at Wed Sep  1 18:27:35 2021
Results reported at Wed Sep  1 18:27:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin732 154.942 5.1905 429062401 429321601 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 :                                   469.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             243.13 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   670 sec.
    Turnaround time :                            672 sec.

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

