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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin727
RA = 154.942, Dec = 5.1905
tmin = 427766401, tmax = 428025601
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='819031', job_status='RUN', time_executed='2021-09-01 18:16:39.535727', time_epoch_executed='1630545399.54' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='727'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/819031

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/819031/ft1_4FGL_J1019.7+0511_daily_bin727.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/819031/ft1_4FGL_J1019.7+0511_daily_bin727.fits outfile=/scratch/kocevski/819031/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin727.fits ra=154.942 dec=5.1905 rad=12.0 tmin=427766401.0 tmax=428025601.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 5.40
user 5.16
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits" evtable="EVENTS" scfile=/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits sctable="SC_DATA" outfile=/scratch/kocevski/819031/ltcube_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.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/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits
.....................!
real 12.83
user 12.45
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits sctable="SC_DATA" expcube=/scratch/kocevski/819031/ltcube_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.fits outfile=/scratch/kocevski/819031/expmap_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.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/819031/ltcube_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.fits
.....................!
real 190.25
user 184.88
sys 4.98

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/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits scfile=/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits outfile=/scratch/kocevski/819031/cmap_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.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.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits scfile=/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits outfile=/scratch/kocevski/819031/cmap_HighResolution_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=154.942 yref=5.1905 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits evtable="EVENTS" scfile=/scratch/kocevski/819031/ft2_4FGL_J1019.7+0511_daily_bin727.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/819031/Model_4FGL_J1019.7+0511_daily_bin727.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/819031/ft1_filtered_4FGL_J1019.7+0511_daily_bin727.fits.....................!
real 45.25
user 43.84
sys 1.25

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .53592E-02   1.0000         .10000E-03   10000.    
     2 'norm      '    1.9473       1.0000         .10000E-03   10000.    
     3 'Prefactor '    35.983       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .16104E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    38.415       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11269E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.8340       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11843E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8548       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.5297       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.4600       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11166E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .71167       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .85483E-01   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11256E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .94932       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1975       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4356.831     FROM MIGRAD    STATUS=CONVERGED    104 CALLS     1494 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    41.670        .21234E-05** at limit **
   2  norm          1.9472        .94758       -.12283E-07    .84339E-06
   3  Prefactor     35.986        1.0867       -.46186E-08    .64192E-03
   4  Prefactor     .10009E-03    42.410       -.22707E-05** at limit **
   5  Prefactor     .10003E-03    17.442        .40318E-06** at limit **
   6  norm          38.398        2.8977        .79479E-07   -.27149E-02
   7  Prefactor     .10000E-03    8.8338       -.40982E-06** at limit **
   8  Prefactor     .10032E-03    23.015       -.40098E-06** at limit **
   9  Prefactor     6.8116        2.2700       -.20655E-06    .81505E-03
  10  Prefactor     .10004E-03    15.535       -.17077E-05** at limit **
  11  norm          2.8547        2.0578        .96951E-07   -.59300E-04
  12  Prefactor     9.5299        6.2998       -.33483E-06    .23668E-02
  13  Prefactor     .10000E-03    4.4136       -.27965E-06** at limit **
  14  Prefactor     7.4591        1.9907        .99346E-07   -.42069E-03
  15  Prefactor     .10000E-03    18.423        .16621E-06** at limit **
  16  norm          .71273        .66421        .52137E-06   -.53975E-04
  17  Prefactor     .10000E-03    429.58       -.79246E-05** at limit **
  18  Prefactor     .10007E-03    60.254        .23353E-05** at limit **
  19  Normalizat    .94941        .28843       -.71510E-06   -.10335E-04
  20  Prefactor     1.1976        .24112        .10295E-05   -.13876E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  norm       = 1.9472
  Prefactor  = 35.9863
  Prefactor  = 0.000100089
  Prefactor  = 0.000100031
  norm       = 38.398
  Prefactor  = 0.0001
  Prefactor  = 0.000100324
  Prefactor  = 6.81157
  Prefactor  = 0.000100044
  norm       = 2.85474
  Prefactor  = 9.52989
  Prefactor  = 0.0001
  Prefactor  = 7.45914
  Prefactor  = 0.000100002
  norm       = 0.712725
  Prefactor  = 0.000100001
  Prefactor  = 0.00010007
  Normalizat = 0.949414
  Prefactor  = 1.19758
 **********
 **   18 **HESSE 
 **********

 FCN=   4356.831     FROM HESSE     STATUS=OK           345 CALLS     1839 TOTAL
                     EDM=   .71E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    .76523        .41288E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.9472        .95389        .74357E-02   -1.5429    
   3  Prefactor     35.986        20.569        .16702E-02   -1.4507    
   4  Prefactor     .10009E-03    54.040        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10003E-03    21.459        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          38.398        24.752        .16167E-02   -1.4468    
   7  Prefactor     .10000E-03    8.8290        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10032E-03    61.727        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.8116        119.33        .38369E-02   -1.5186    
  10  Prefactor     .10004E-03    20.925        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8547        2.0771        .60155E-02   -1.5370    
  12  Prefactor     9.5299        9.3720        .32454E-02   -1.5090    
  13  Prefactor     .10000E-03    4.2267        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.4591        10.032        .36709E-02   -1.5162    
  15  Prefactor     .10000E-03    18.043        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .71273        .82782        .11279E-01   -1.5539    
  17  Prefactor     .10000E-03    11.574        .94418E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10007E-03    71.365        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .94941        .24957        .67826E-01   -.94745    
  20  Prefactor     1.1976        .20164        .51538E-01   -.86406    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.09815e-08
Minuit parameter uncertainties:
  1  3.54833e-07
  2  0.953901
  3  20.5733
  4  0.00439984
  5  0.00164011
  6  24.759
  7  1.93184e-06
  8  0.00895031
  9  57.1531
  10  0.00191988
  11  2.0772
  12  9.3734
  13  1.44579e-06
  14  10.0343
  15  0.000360605
  16  0.827837
  17  0.000255163
  18  0.00447809
  19  0.249876
  20  0.201774
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.920e-03  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.198e+00  2.018e-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:  9.494e-01  2.499e-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: 8.49e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.37e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/819031/likelihoodResults_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.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) = 4356.83089535
delta logL = -0.00022756044109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4356.83066779
delta logL = -2.81124812318e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1709       1.0000          .0000       10.000    
     3 'Normalizat'    .94941       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1976       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=   4356.831     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      237 TOTAL
                     EDM=   .47E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.1771        .90712E-02** at limit **
   2  Index         2.1705        8.7017        .50000        .11023E-06
   3  Normalizat    .94941        .14464E-02    .67826E-01   -.30144E-04
   4  Prefactor     1.1976        .12231E-02    .51538E-01   -.32274E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.17049
  Normalizat = 0.949414
  Prefactor  = 1.19758
 **********
 **   18 **HESSE 
 **********

 FCN=   4356.831     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      270 TOTAL
                     EDM=   .13E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.853        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1705        7.3157        .50000       -.60153    
   3  Normalizat    .94941        .77193E-02    .30004E-03   -.94745    
   4  Prefactor     1.1976        .65344E-02    .22785E-03   -.86406    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.34693e-11
Minuit parameter uncertainties:
  1  4.20354e-05
  2  99.6067
  3  0.00771928
  4  0.00653445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/819031': 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) = 4356.83066779
delta logL = -1.79261405719e-09

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  4.204e-05  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  2.170e+00  9.961e+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.198e+00  6.534e-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:  9.494e-01  7.719e-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/819031/cmap_HighResolution_427766401_428025601_4FGL_J1019.7+0511_daily_bin727.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.37e-03', job_status='DONE', photon_flux_upper_limit='8.49e-08', time_completed='2021-09-01 18:24:38.230422', job_id='819031', GAL2='1.20', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1630545878.23', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='-1.79e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='727' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:24:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0038>
Subject: Job 819031: <4FGL_J1019.7+0511_daily_bin727> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin727 154.942 5.1905 427766401 428025601 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 :                                   477.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             374.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   494 sec.
    Turnaround time :                            497 sec.

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

