/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 211 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 = 7350
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1019.7+0511_daily_bin398
RA = 154.942, Dec = 5.1905
tmin = 342489601, tmax = 342748801
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='818454', job_status='RUN', time_executed='2021-09-01 18:19:03.988052', time_epoch_executed='1630545543.99' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='398'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818454

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818454/ft1_4FGL_J1019.7+0511_daily_bin398.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818454/ft1_4FGL_J1019.7+0511_daily_bin398.fits outfile=/scratch/kocevski/818454/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin398.fits ra=154.942 dec=5.1905 rad=12.0 tmin=342489601.0 tmax=342748801.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.48
user 3.25
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits" evtable="EVENTS" scfile=/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits sctable="SC_DATA" outfile=/scratch/kocevski/818454/ltcube_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.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/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits
.....................!
real 13.57
user 13.07
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits sctable="SC_DATA" expcube=/scratch/kocevski/818454/ltcube_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.fits outfile=/scratch/kocevski/818454/expmap_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.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/818454/ltcube_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.fits
.....................!
real 191.49
user 185.90
sys 4.95

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/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits scfile=/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits outfile=/scratch/kocevski/818454/cmap_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits scfile=/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits outfile=/scratch/kocevski/818454/cmap_HighResolution_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits evtable="EVENTS" scfile=/scratch/kocevski/818454/ft2_4FGL_J1019.7+0511_daily_bin398.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818454/Model_4FGL_J1019.7+0511_daily_bin398.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/818454/ft1_filtered_4FGL_J1019.7+0511_daily_bin398.fits.....................!
real 57.51
user 56.11
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .20497       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9993       1.0000         .10000E-03   10000.    
     3 'Prefactor '    26.307       1.0000         .10000E-03   10000.    
     4 'Prefactor '    89.926       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10349E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    13.693       1.0000         .10000E-03   10000.    
     7 'Prefactor '    3.8332       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.349       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.193       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .54211E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    15.778       1.0000         .10000E-03   10000.    
    16 'norm      '    .90769       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.338       1.0000         .10000E-03   10000.    
    18 'Prefactor '    9.2518       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64379       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1577       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=   5806.898     FROM MIGRAD    STATUS=CONVERGED    421 CALLS     2076 TOTAL
                     EDM=   .90E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .20511        .72670       -.49478E-06   -.23426E-02
   2  norm          1.9995        .80286        .47441E-07   -.27917E-03
   3  Prefactor     26.308        14.341        .22494E-06   -.49993E-04
   4  Prefactor     89.919        53.113       -.46798E-05    .19820E-04
   5  Prefactor     .10000E-03    93.733       -.35085E-05** at limit **
   6  norm          13.693        13.380        .76373E-06   -.19860E-04
   7  Prefactor     3.8350        8.2996        .86687E-05   -.15717E-03
   8  Prefactor     .10000E-03    25.418       -.27411E-05** at limit **
   9  Prefactor     .10000E-03    17.155        .59130E-06** at limit **
  10  Prefactor     .10000E-03    5.4162       -.11599E-06** at limit **
  11  norm          .10000E-03    .88303       -.12527E-06** at limit **
  12  Prefactor     13.351        8.7277        .18217E-05   -.25317E-04
  13  Prefactor     10.193        4.2034        .52751E-07   -.16300E-03
  14  Prefactor     .10005E-03    6.5941        .10011E-05** at limit **
  15  Prefactor     15.779        10.323       -.25580E-06   -.67010E-04
  16  norm          .90770        .55458       -.48376E-07   -.64482E-04
  17  Prefactor     10.339        8.5768        .83383E-06   -.35508E-04
  18  Prefactor     9.2515        24.661       -.89963E-06   -.26989E-04
  19  Normalizat    .64362        .20769       -.88086E-06   -.74361E-04
  20  Prefactor     1.1578        .17179       -.35515E-06   -.31833E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.205114
  norm       = 1.99949
  Prefactor  = 26.3082
  Prefactor  = 89.9188
  Prefactor  = 0.000100002
  norm       = 13.6934
  Prefactor  = 3.83496
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.3507
  Prefactor  = 10.1934
  Prefactor  = 0.000100046
  Prefactor  = 15.7789
  norm       = 0.9077
  Prefactor  = 10.339
  Prefactor  = 9.25149
  Normalizat = 0.643624
  Prefactor  = 1.15777
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.898     FROM HESSE     STATUS=OK           299 CALLS     2375 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .20511        .72863        .12029E-03   -1.5617    
   2  norm          1.9995        .79761        .40822E-04   -1.5425    
   3  Prefactor     26.308        14.331        .78105E-04   -1.4682    
   4  Prefactor     89.919        52.909        .42373E-04   -1.3809    
   5  Prefactor     .10000E-03    94.754        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          13.693        13.371        .10824E-03   -1.4968    
   7  Prefactor     3.8350        8.0339        .20614E-03   -1.5316    
   8  Prefactor     .10000E-03    25.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    17.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.4196        .17322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5641        .13688E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.351        8.6271        .10963E-03   -1.4977    
  13  Prefactor     10.193        4.2026        .93319E-04   -1.5069    
  14  Prefactor     .10005E-03    41.631        .37365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     15.779        10.298        .10083E-03   -1.4913    
  16  norm          .90770        .55631        .40416E-04   -1.5517    
  17  Prefactor     10.339        8.6447        .12461E-03   -1.5065    
  18  Prefactor     9.2515        24.655        .13176E-03   -1.5100    
  19  Normalizat    .64362        .23093        .32129E-03   -1.0616    
  20  Prefactor     1.1578        .19557        .21498E-03   -.87641    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.62552e-09
Minuit parameter uncertainties:
  1  0.728657
  2  0.797618
  3  14.3328
  4  52.9366
  5  0.000761434
  6  13.3737
  7  8.03617
  8  8.15551e-05
  9  8.53665e-05
  10  2.51191e-05
  11  2.15556e-05
  12  8.62789
  13  4.20274
  14  0.00277835
  15  10.2989
  16  0.556311
  17  8.64577
  18  24.6824
  19  0.231282
  20  0.195693
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.512e-05  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.158e+00  1.957e-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:  6.436e-01  2.313e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/818454/likelihoodResults_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.89927048
delta logL = -0.000868365760653

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.89840446
delta logL = -2.3428010536e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11863E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9560       1.0000          .0000       10.000    
     3 'Normalizat'    .64398       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1575       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=   5806.898     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10132E-03    25.568        .18142E-02** at limit **
   2  Index         1.8989        5.2618        .50000        .45805E-04
   3  Normalizat    .64363        .94824E-02    .32129E-03    .70380E-04
   4  Prefactor     1.1578        .83549E-02    .21498E-03    .75210E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010132
  Index      = 1.89886
  Normalizat = 0.643626
  Prefactor  = 1.15777
 **********
 **   18 **HESSE 
 **********

 FCN=   5806.898     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10132E-03    122.46        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8989        5.4123        .50000       -.66903    
   3  Normalizat    .64363        .21131E-01    .12852E-04   -1.0616    
   4  Prefactor     1.1578        .18618E-01    .42996E-04   -.87641    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.29966e-08
Minuit parameter uncertainties:
  1  0.0254775
  2  178.659
  3  0.0211313
  4  0.0186177
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818454': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5806.89840093
delta logL = 1.18474235933e-06

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.013e-04  2.548e-02  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.899e+00  1.787e+02  0.000e+00  1.000e+01 (-1.000e+00)
227        Scale:  3.923e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  1.158e+00  1.862e-02  0.000e+00  1.000e+01 ( 1.000e+00)
497        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
498        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
495   Normalization:  6.436e-01  2.113e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 154.942 5.191

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/818454/cmap_HighResolution_342489601_342748801_4FGL_J1019.7+0511_daily_bin398.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.32e-03', job_status='DONE', photon_flux_upper_limit='4.43e-08', time_completed='2021-09-01 18:28:26.975619', job_id='818454', GAL2='1.16', fit_tolerance='1e-08', EG2='0.64', EG='0.64', time_epoch_completed='1630546106.98', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.16', dlogl='1.18e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='398' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:28:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0050>
Subject: Job 818454: <4FGL_J1019.7+0511_daily_bin398> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin398 154.942 5.1905 342489601 342748801 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 :                                   562.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             269.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   791 sec.
    Turnaround time :                            787 sec.

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

