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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin1091
RA = 154.942, Dec = 5.1905
tmin = 522115201, tmax = 522374401
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='821605', job_status='RUN', time_executed='2021-09-01 18:26:00.917811', time_epoch_executed='1630545960.92' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='1091'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/821605

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/821605/ft1_4FGL_J1019.7+0511_daily_bin1091.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/821605/ft1_4FGL_J1019.7+0511_daily_bin1091.fits outfile=/scratch/kocevski/821605/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin1091.fits ra=154.942 dec=5.1905 rad=12.0 tmin=522115201.0 tmax=522374401.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.71
user 3.49
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits" evtable="EVENTS" scfile=/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits sctable="SC_DATA" outfile=/scratch/kocevski/821605/ltcube_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.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/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits
.....................!
real 13.39
user 13.05
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits sctable="SC_DATA" expcube=/scratch/kocevski/821605/ltcube_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.fits outfile=/scratch/kocevski/821605/expmap_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.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/821605/ltcube_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.fits
.....................!
real 192.06
user 186.66
sys 5.04

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/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits scfile=/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits outfile=/scratch/kocevski/821605/cmap_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.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/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits scfile=/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits outfile=/scratch/kocevski/821605/cmap_HighResolution_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.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/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits evtable="EVENTS" scfile=/scratch/kocevski/821605/ft2_4FGL_J1019.7+0511_daily_bin1091.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/821605/Model_4FGL_J1019.7+0511_daily_bin1091.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/821605/ft1_filtered_4FGL_J1019.7+0511_daily_bin1091.fits.....................!
real 56.16
user 54.71
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92371       1.0000         .10000E-03   10000.    
     2 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10103E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    22.882       1.0000         .10000E-03   10000.    
     6 'norm      '    11.836       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10746E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    18.106       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6565       1.0000         .10000E-03   10000.    
    11 'norm      '    5.5733       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .13763E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    12.401       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .80465       1.0000         .10000E-03   10000.    
    16 'norm      '    .58008       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .34537E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29442E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0158       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0715       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=   5807.446     FROM MIGRAD    STATUS=CONVERGED    437 CALLS     1832 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92369        .83910        .41889E-08    .42004E-05
   2  norm          .10000E-03    .40593       -.52898E-07** at limit **
   3  Prefactor     .10000E-03    5.2669        .82658E-07** at limit **
   4  Prefactor     .10000E-03    13.487       -.60999E-07** at limit **
   5  Prefactor     22.876        25.046        .27324E-06   -.73553E-06
   6  norm          11.835        11.299        .98857E-07   -.19713E-04
   7  Prefactor     .10000E-03    20.536        .14503E-05** at limit **
   8  Prefactor     18.152        37.078       -.36660E-05    .24483E-05
   9  Prefactor     .10000E-03    48.662        .10329E-05** at limit **
  10  Prefactor     2.6635        24.195        .35579E-05    .98874E-04
  11  norm          5.5732        2.0421       -.16164E-08   -.14574E-03
  12  Prefactor     .10000E-03    2.0269       -.24221E-07** at limit **
  13  Prefactor     .10000E-03    2.0299       -.25155E-07** at limit **
  14  Prefactor     12.400        9.8846        .30033E-07   -.12340E-04
  15  Prefactor     .80047        5.6009        .93192E-06   -.44488E-03
  16  norm          .58127        .60291       -.24734E-06   -.45426E-02
  17  Prefactor     .10007E-03    12.423        .28522E-05** at limit **
  18  Prefactor     .10000E-03    48.436       -.62942E-06** at limit **
  19  Normalizat    1.0161        .21083       -.46107E-06   -.25723E-03
  20  Prefactor     1.0712        .16970        .41418E-06   -.28124E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.923693
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.8763
  norm       = 11.8349
  Prefactor  = 0.0001
  Prefactor  = 18.1523
  Prefactor  = 0.0001
  Prefactor  = 2.66353
  norm       = 5.57316
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 12.3996
  Prefactor  = 0.800473
  norm       = 0.581269
  Prefactor  = 0.000100072
  Prefactor  = 0.0001
  Normalizat = 1.01613
  Prefactor  = 1.07125
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.446     FROM HESSE     STATUS=OK           303 CALLS     2135 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92369        .86731        .64436E-03   -1.5516    
   2  norm          .10000E-03    1.9738        .90574E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    5.2758        .17078E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.492        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     22.876        25.036        .83736E-04   -1.4751    
   6  norm          11.835        11.288        .11644E-03   -1.5020    
   7  Prefactor     .10000E-03    20.682        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     18.152        35.984        .94127E-04   -1.4856    
   9  Prefactor     .10000E-03    48.634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     2.6635        24.954        .12505E-02   -1.5382    
  11  norm          5.5732        2.0408        .62643E-04   -1.5236    
  12  Prefactor     .10000E-03    2.0346        .10594E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.3159        .20091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     12.400        9.8907        .11375E-03   -1.5004    
  15  Prefactor     .80047        20.665        .30673E-02   -1.5529    
  16  norm          .58127        .58395        .57041E-03   -1.5555    
  17  Prefactor     .10007E-03    35.562        .39551E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    50.403        .42795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.0161        .23797        .27497E-03   -.92492    
  20  Prefactor     1.0712        .19559        .22566E-03   -.90391    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.78615e-09
Minuit parameter uncertainties:
  1  0.867326
  2  2.30754e-05
  3  5.36019e-06
  4  2.4849e-06
  5  25.0475
  6  11.29
  7  4.01991e-05
  8  36.0272
  9  6.53838e-05
  10  16.3138
  11  2.04082
  12  1.02675e-06
  13  0.000116315
  14  9.89198
  15  8.13701
  16  0.583952
  17  0.00320547
  18  6.06338e-06
  19  0.23822
  20  0.195726
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  2.664e+00  1.631e+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.071e+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:  1.016e+00  2.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/821605/likelihoodResults_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.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) = 5807.43503245
delta logL = 0.0114506682739

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5807.42098318
delta logL = 0.0254999329227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10411E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    4.2842       1.0000          .0000       10.000    
     3 'Normalizat'    .99064       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0869       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=   5807.421     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      320 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .98604E-02    .44027        .40582E-02    .88469E-02
   2  Index         4.3047        3.4176        .63700E-01    .25788E-03
   3  Normalizat    .99095        .25093E-01    .46050E-01    .33476E-04
   4  Prefactor     1.0865        .21185E-01    .38107E-01   -.53712E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00986041
  Index      = 4.30466
  Normalizat = 0.990953
  Prefactor  = 1.08653
 **********
 **   18 **HESSE 
 **********

 FCN=   5807.421     FROM HESSE     STATUS=NOT POSDEF    35 CALLS      355 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .98604E-02    4.5962        .20064E-03   -1.5688    
   2  Index         4.3047        5.6460        .11518E-01   -.13952    
   3  Normalizat    .99095        .10892        .27808E-03   -.93334    
   4  Prefactor     1.0865        .89521E-01    .22428E-03   -.89898    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.04001e-06
Minuit parameter uncertainties:
  1  0.423639
  2  12.8405
  3  0.108944
  4  0.0895336
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/821605': 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) = 5807.42096824
delta logL = 0.0255148770939

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  9.860e-03  4.236e-01  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  4.305e+00  1.284e+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.087e+00  8.953e-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:  9.910e-01  1.089e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
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/821605/cmap_HighResolution_522115201_522374401_4FGL_J1019.7+0511_daily_bin1091.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.70e-03', job_status='DONE', photon_flux_upper_limit='7.61e-08', time_completed='2021-09-01 18:35:03.008914', job_id='821605', GAL2='1.09', fit_tolerance='1e-08', EG2='0.99', EG='1.02', time_epoch_completed='1630546503.01', return_code2='102', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.55e-02', ts2='0.09', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1091' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:35:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 821605: <4FGL_J1019.7+0511_daily_bin1091> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin1091> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  1 18:25:45 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:25:46 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:25:46 2021
Terminated at Wed Sep  1 18:35:03 2021
Results reported at Wed Sep  1 18:35:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin1091 154.942 5.1905 522115201 522374401 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 :                                   541.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             347.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            558 sec.

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

