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


Performing analysis on: 4FGL_J1019.7+0511_daily_bin224
RA = 154.942, Dec = 5.1905
tmin = 297388801, tmax = 297648001
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='817244', job_status='RUN', time_executed='2021-09-01 18:11:02.882695', time_epoch_executed='1630545062.88' WHERE source_name='4FGL J1019.7+0511' and cadence='daily' and bin_id='224'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/817244

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/817244/ft1_4FGL_J1019.7+0511_daily_bin224.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/817244/ft1_4FGL_J1019.7+0511_daily_bin224.fits outfile=/scratch/kocevski/817244/ft1_filteredMKT_4FGL_J1019.7+0511_daily_bin224.fits ra=154.942 dec=5.1905 rad=12.0 tmin=297388801.0 tmax=297648001.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.69
user 3.46
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits" evtable="EVENTS" scfile=/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits sctable="SC_DATA" outfile=/scratch/kocevski/817244/ltcube_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.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/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits
.....................!
real 13.57
user 13.20
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits sctable="SC_DATA" expcube=/scratch/kocevski/817244/ltcube_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.fits outfile=/scratch/kocevski/817244/expmap_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.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/817244/ltcube_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.fits
.....................!
real 190.67
user 186.02
sys 4.22

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/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits scfile=/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits outfile=/scratch/kocevski/817244/cmap_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits scfile=/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits outfile=/scratch/kocevski/817244/cmap_HighResolution_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.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.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits evtable="EVENTS" scfile=/scratch/kocevski/817244/ft2_4FGL_J1019.7+0511_daily_bin224.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/817244/Model_4FGL_J1019.7+0511_daily_bin224.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/817244/ft1_filtered_4FGL_J1019.7+0511_daily_bin224.fits.....................!
real 68.93
user 67.56
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.3020       1.0000         .10000E-03   10000.    
     2 'norm      '    2.3300       1.0000         .10000E-03   10000.    
     3 'Prefactor '    13.040       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.253       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13472E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .55388       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3709       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82351       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=   7045.459     FROM MIGRAD    STATUS=CONVERGED    425 CALLS     2081 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.3017        1.3697       -.76883E-07   -.89068E-03
   2  norm          2.3300        .69969       -.26929E-07   -.43326E-03
   3  Prefactor     13.036        10.418       -.18312E-06   -.13810E-03
   4  Prefactor     24.257        46.484        .59625E-05   -.12684E-03
   5  Prefactor     .10000E-03    59.942        .52770E-04** at limit **
   6  norm          .10000E-03    12.970        .12061E-04** at limit **
   7  Prefactor     .10000E-03    7.0056        .32151E-05** at limit **
   8  Prefactor     .10000E-03    75.224       -.64486E-04** at limit **
   9  Prefactor     .10000E-03    24.498       -.33243E-06** at limit **
  10  Prefactor     .10000E-03    5.8837       -.12282E-05** at limit **
  11  norm          .10000E-03    .44083       -.58694E-07** at limit **
  12  Prefactor     .10000E-03    4.0790       -.22676E-05** at limit **
  13  Prefactor     .10000E-03    2.1195        .53768E-07** at limit **
  14  Prefactor     .10000E-03    4.2073        .20777E-05** at limit **
  15  Prefactor     .10000E-03    8.8849       -.56026E-05** at limit **
  16  norm          .55393        .39324        .31329E-09   -.28814E-03
  17  Prefactor     .10000E-03    3.8873        .30181E-06** at limit **
  18  Prefactor     .10000E-03    16.111       -.10840E-04** at limit **
  19  Normalizat    1.3710        .18000       -.54264E-07    .14211E-03
  20  Prefactor     .82354        .14751       -.31046E-06    .66056E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.30175
  norm       = 2.32998
  Prefactor  = 13.036
  Prefactor  = 24.2568
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.553927
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.37096
  Prefactor  = 0.823535
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.459     FROM HESSE     STATUS=OK           285 CALLS     2366 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.3017        1.3517        .95614E-04   -1.5480    
   2  norm          2.3300        .69814        .36955E-04   -1.5403    
   3  Prefactor     13.036        10.416        .11092E-03   -1.4986    
   4  Prefactor     24.257        46.271        .81339E-04   -1.4723    
   5  Prefactor     .10000E-03    59.992        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    13.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    7.1069        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    75.660        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .62641        .10768E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.1487        .16546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.1835        .23831E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.2216        .16813E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2346        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .55393        .37848        .42820E-03   -1.5559    
  17  Prefactor     .10000E-03    3.9247        .16136E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    16.330        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3710        .21241        .24158E-03   -.81472    
  20  Prefactor     .82354        .17391        .25047E-03   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66233e-10
Minuit parameter uncertainties:
  1  1.35171
  2  0.698142
  3  10.4175
  4  46.3399
  5  0.000616831
  6  1.02137e-05
  7  3.31802e-06
  8  0.000211724
  9  7.87356e-06
  10  1.70999e-06
  11  5.45058e-06
  12  6.98465e-06
  13  8.8907e-06
  14  5.28902e-07
  15  8.80963e-05
  16  0.37848
  17  4.04789e-06
  18  7.30389e-05
  19  0.212546
  20  0.174024
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  1.710e-06  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:  8.235e-01  1.740e-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.371e+00  2.125e-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.26e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.19e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/817244/likelihoodResults_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.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) = 7045.45959328
delta logL = -0.000806247377113

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7045.45878722
delta logL = -1.93467712961e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10278E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9777       1.0000          .0000       10.000    
     3 'Normalizat'    1.3710       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7045.459     FROM MIGRAD    STATUS=FAILED        90 CALLS      243 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    40.231        .18142E-02** at limit **
   2  Index         1.9229        7.9771        .50000        .23155E-04
   3  Normalizat    1.3710        .11543E-01    .24158E-03   -.29930E-04
   4  Prefactor     .82354        .95993E-02    .25047E-03   -.28323E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7045.459     FROM SIMPLEX   STATUS=UNCHANGED    122 CALLS      365 TOTAL
                     EDM=   .13E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10124E-03    40.231        .43926E-03** at limit **
   2  Index         1.9229        7.9771        .66143E-03    .23155E-04
   3  Normalizat    1.3710        .11543E-01    .15221E-05   -.29930E-04
   4  Prefactor     .82354        .95993E-02    .17574E-05   -.28323E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7045.459     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      446 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    600.76        .72569E-03** at limit **
   2  Index         1.3600        8.3775        .50000        .25670E-07
   3  Normalizat    1.3710        .43986E-01    .19326E-05   -.36472E-04
   4  Prefactor     .82354        .36567E-01    .20037E-05   -.69220E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 1.36
  Normalizat = 1.37096
  Prefactor  = 0.823535
 **********
 **   18 **HESSE 
 **********

 FCN=   7045.459     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      475 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1780.1        .14514E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.3600        5.6373        .50000       -.81540    
   3  Normalizat    1.3710        .17100        .38652E-06   -.81472    
   4  Prefactor     .82354        .14118        .40075E-06   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.8936e-09
Minuit parameter uncertainties:
  1  0.000279038
  2  3427.77
  3  0.171071
  4  0.141245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/817244': 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) = 7045.45878491
delta logL = 2.11600217881e-06

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.000e-04  2.790e-04  1.000e-04  1.000e+04 ( 1.000e-14)
226        Index:  1.360e+00  3.428e+03  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:  8.235e-01  1.412e-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.371e+00  1.711e-01  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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/817244/cmap_HighResolution_297388801_297648001_4FGL_J1019.7+0511_daily_bin224.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.19e-03', job_status='DONE', photon_flux_upper_limit='4.26e-08', time_completed='2021-09-01 18:21:28.463076', job_id='817244', GAL2='0.82', fit_tolerance='1e-08', EG2='1.37', EG='1.37', time_epoch_completed='1630545688.46', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.12e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='224' AND source_name='4FGL J1019.7+0511' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  1 18:21:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 817244: <4FGL_J1019.7+0511_daily_bin224> in cluster <slac> Done

Job <4FGL_J1019.7+0511_daily_bin224> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  1 18:10:51 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  1 18:10:52 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:10:52 2021
Terminated at Wed Sep  1 18:21:29 2021
Results reported at Wed Sep  1 18:21:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_daily_bin224 154.942 5.1905 297388801 297648001 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 :                                   624.19 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             359.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   636 sec.
    Turnaround time :                            638 sec.

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

