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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin453
RA = 154.942, Dec = 5.1905
tmin = 356745601, tmax = 357004801
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='818542', job_status='RUN', time_executed='2021-09-01 18:18:55.036108', time_epoch_executed='1630545535.04' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='453'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/818542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/818542/ft1_4FGL_J1019.7+0511_daily_bin453.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/818542/ft1_4FGL_J1019.7+0511_daily_bin453.fits outfile=/scratch/kocevski/818542/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin453.fits ra=154.942 dec=5.1905 rad=12.0 tmin=356745601.0 tmax=357004801.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.65
user 3.40
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits" evtable="EVENTS" scfile=/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits sctable="SC_DATA" outfile=/scratch/kocevski/818542/ltcube_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.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/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits
.....................!
real 14.21
user 13.77
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits sctable="SC_DATA" expcube=/scratch/kocevski/818542/ltcube_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.fits outfile=/scratch/kocevski/818542/expmap_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.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/818542/ltcube_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.fits
.....................!
real 193.25
user 186.88
sys 5.82

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/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits scfile=/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits outfile=/scratch/kocevski/818542/cmap_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits scfile=/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits outfile=/scratch/kocevski/818542/cmap_HighResolution_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.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.57
user 0.41
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits evtable="EVENTS" scfile=/scratch/kocevski/818542/ft2_4FGL_J1019.7+0511_daily_bin453.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/818542/Model_4FGL_J1019.7+0511_daily_bin453.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/818542/ft1_filtered_4FGL_J1019.7+0511_daily_bin453.fits.....................!
real 56.57
user 55.06
sys 1.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4230       1.0000         .10000E-03   10000.    
     2 'norm      '    4.5627       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10821E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10356E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .38317       1.0000         .10000E-03   10000.    
     6 'norm      '    .11187E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10611E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    107.91       1.0000         .10000E-03   10000.    
     9 'Prefactor '    44.294       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11606E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .98032       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2048       1.0000         .10000E-03   10000.    
    13 'Prefactor '    6.9398       1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.1883       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.337       1.0000         .10000E-03   10000.    
    16 'norm      '    1.6307       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .14029E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2772       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .72113       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=   5786.276     FROM MIGRAD    STATUS=CONVERGED    448 CALLS     2057 TOTAL
                     EDM=   .24E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4222        1.7472        .17100E-07    .45639E-05
   2  norm          4.5624        1.0746       -.46971E-08    .31036E-04
   3  Prefactor     .10000E-03    7.8539        .38089E-08** at limit **
   4  Prefactor     .10000E-03    28.157       -.18212E-06** at limit **
   5  Prefactor     .24397        38.792       -.45649E-06    .20408E-04
   6  norm          .10000E-03    8.7501       -.25877E-07** at limit **
   7  Prefactor     .10000E-03    4.2195       -.52374E-07** at limit **
   8  Prefactor     107.84        67.554       -.14536E-04   -.62702E-05
   9  Prefactor     44.280        47.357        .23403E-04    .21159E-04
  10  Prefactor     .10000E-03    11.166       -.87445E-06** at limit **
  11  norm          .98005        .93448       -.25109E-07   -.57889E-04
  12  Prefactor     1.2061        1.4364        .24987E-06   -.15228E-02
  13  Prefactor     6.9391        3.8436        .18236E-06    .29224E-05
  14  Prefactor     4.1846        9.4203        .41867E-05    .55837E-05
  15  Prefactor     17.337        10.134       -.12776E-05   -.15659E-04
  16  norm          1.6304        .77326        .41170E-07   -.11748E-04
  17  Prefactor     .10000E-03    10.326        .30322E-06** at limit **
  18  Prefactor     .10000E-03    37.699       -.64898E-06** at limit **
  19  Normalizat    1.2776        .21924        .31300E-06   -.77189E-05
  20  Prefactor     .72098        .16739       -.44543E-06    .34464E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.42216
  norm       = 4.56244
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.243975
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 107.844
  Prefactor  = 44.2799
  Prefactor  = 0.0001
  norm       = 0.980053
  Prefactor  = 1.20611
  Prefactor  = 6.93908
  Prefactor  = 4.18463
  Prefactor  = 17.3366
  norm       = 1.63036
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.27756
  Prefactor  = 0.720979
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.276     FROM HESSE     STATUS=OK           303 CALLS     2360 TOTAL
                     EDM=   .79E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4222        1.7570        .68056E-04   -1.5338    
   2  norm          4.5624        1.0771        .36361E-04   -1.5281    
   3  Prefactor     .10000E-03    7.9116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    28.228        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .24397        44.311        .12921       -1.5609    
   6  norm          .10000E-03    8.7876        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.2231        .15256E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     107.84        67.941        .38716E-04   -1.3627    
   9  Prefactor     44.280        47.384        .30120E-03   -1.4376    
  10  Prefactor     .10000E-03    11.194        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .98005        .94532        .69512E-04   -1.5510    
  12  Prefactor     1.2061        8.5361        .20649E-02   -1.5488    
  13  Prefactor     6.9391        3.8495        .10530E-03   -1.5181    
  14  Prefactor     4.1846        9.4565        .19693E-03   -1.5299    
  15  Prefactor     17.337        10.134        .96192E-04   -1.4875    
  16  norm          1.6304        .76789        .43336E-04   -1.5453    
  17  Prefactor     .10000E-03    10.403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    38.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2776        .26702        .26280E-03   -.84239    
  20  Prefactor     .72098        .20094        .27289E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.92762e-09
Minuit parameter uncertainties:
  1  1.75702
  2  1.07709
  3  6.24155e-06
  4  5.59963e-07
  5  6.57955
  6  1.75969e-05
  7  1.99271e-05
  8  67.9896
  9  47.4243
  10  0.000131763
  11  0.945335
  12  6.41834
  13  3.84964
  14  9.45989
  15  10.1347
  16  0.767898
  17  1.98182e-05
  18  4.05877e-05
  19  0.267307
  20  0.201138
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  7.210e-01  2.011e-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.278e+00  2.673e-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: 6.68e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.01e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/818542/likelihoodResults_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.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) = 5786.2760112
delta logL = -0.000425176193858

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5786.27558597
delta logL = 4.92655090056e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10139E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9718       1.0000          .0000       10.000    
     3 'Normalizat'    1.2776       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .72097       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=   5786.276     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      210 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    4.1727        .90712E-02** at limit **
   2  Index         1.9475        6.7163        .50000        .15506E-04
   3  Normalizat    1.2776        .31362E-02    .59424E-01   -.18526E-03
   4  Prefactor     .72098        .25332E-02    .61694E-01    .15039E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100014
  Index      = 1.94749
  Normalizat = 1.27755
  Prefactor  = 0.720983
 **********
 **   18 **HESSE 
 **********

 FCN=   5786.276     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      241 TOTAL
                     EDM=   .92E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    33.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9475        8.1391        .50000       -.65669    
   3  Normalizat    1.2776        .89142E-02    .26280E-03   -.84239    
   4  Prefactor     .72098        .71956E-02    .27289E-03   -1.0271    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.19483e-08
Minuit parameter uncertainties:
  1  0.0013874
  2  62.3809
  3  0.00891424
  4  0.0071956
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/818542': 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) = 5786.27558581
delta logL = 2.10265170608e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
496    Prefactor:  7.210e-01  7.196e-03  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.278e+00  8.914e-03  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/818542/cmap_HighResolution_356745601_357004801_4FGL_J1019.7+0511_daily_bin453.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.01e-03', job_status='DONE', photon_flux_upper_limit='6.68e-08', time_completed='2021-09-01 18:28:09.750138', job_id='818542', GAL2='0.72', fit_tolerance='1e-08', EG2='1.28', EG='1.28', time_epoch_completed='1630546089.75', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.72', dlogl='2.10e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='453' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:28:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0298>
Subject: Job 818542: <4FGL_J1019.7+0511_daily_bin453> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin453 154.942 5.1905 356745601 357004801 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 :                                   552.58 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             265.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   760 sec.
    Turnaround time :                            762 sec.

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

