aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 142 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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


Performing analysis on: 4FGL_J1019.7+0511_weekly_bin754
RA = 154.942, Dec = 5.1905
tmin = 695001601, tmax = 695606401
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='951003', job_status='RUN', time_executed='2023-01-17 00:58:17.389313', time_epoch_executed='1673945897.39' WHERE source_name='4FGL J1019.7+0511' and cadence='weekly' and bin_id='754'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/951003

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/951003/ft1_4FGL_J1019.7+0511_weekly_bin754.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/951003/ft1_4FGL_J1019.7+0511_weekly_bin754.fits outfile=/scratch/kocevski/951003/ft1_filteredMKT_4FGL_J1019.7+0511_weekly_bin754.fits ra=154.942 dec=5.1905 rad=12.0 tmin=695001601.0 tmax=695606401.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.71
user 5.39
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.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/951003/ft1_filteredMKT_4FGL_J1019.7+0511_weekly_bin754.fits evtable="EVENTS" outfile="/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.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.59
user 0.39
sys 0.17

Number of photons that the gtmktime cut: 765

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits" evtable="EVENTS" scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits sctable="SC_DATA" outfile=/scratch/kocevski/951003/ltcube_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.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/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits
.....................!
real 35.63
user 35.18
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits sctable="SC_DATA" expcube=/scratch/kocevski/951003/ltcube_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits outfile=/scratch/kocevski/951003/expmap_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.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/951003/ltcube_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits
.....................!
real 193.29
user 187.30
sys 5.25

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/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits outfile=/scratch/kocevski/951003/cmap_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.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.61
user 0.42
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits outfile=/scratch/kocevski/951003/cmap_HighResolution_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.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.61
user 0.42
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits evtable="EVENTS" scfile=/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/951003/Model_4FGL_J1019.7+0511_weekly_bin754.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/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits.....................!
real 82.26
user 80.82
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits', '/scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits', expMap='/scratch/kocevski/951003/expmap_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits', expCube='/scratch/kocevski/951003/ltcube_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/951003/Model_4FGL_J1019.7+0511_weekly_bin754.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  0.000e+00  1.000e+06 ( 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/951003/ft1_filtered_4FGL_J1019.7+0511_weekly_bin754.fits
Spacecraft file(s): /scratch/kocevski/951003/ft2_4FGL_J1019.7+0511_weekly_bin754.fits
Exposure map: /scratch/kocevski/951003/expmap_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits
Exposure cube: /scratch/kocevski/951003/ltcube_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/951003/Model_4FGL_J1019.7+0511_weekly_bin754.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) = 9105.38491787

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73552       1.0000          .0000       .10000E+07
     2 'norm      '    .18422       1.0000          .0000       .10000E+07
     3 'Prefactor '    .18864E-02   1.0000          .0000       .10000E+07
     4 'Prefactor '    .36464E-03   1.0000          .0000       .10000E+07
     5 'Prefactor '    .26326E-02   1.0000          .0000       .10000E+07
     6 'Prefactor '    .34541E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    114.05       1.0000          .0000       .10000E+07
     8 'Prefactor '    .33113E-01   1.0000          .0000       .10000E+07
     9 'Prefactor '    11.676       1.0000          .0000       .10000E+07
    10 'norm      '    2.4483       1.0000          .0000       .10000E+07
    11 'Prefactor '    6.7768       1.0000          .0000       .10000E+07
    12 'Prefactor '    2.6353       1.0000          .0000       .10000E+07
    13 'Prefactor '    10.219       1.0000          .0000       .10000E+07
    14 'Prefactor '    .71770E-05   1.0000          .0000       .10000E+07
    15 'norm      '    .80115       1.0000          .0000       .10000E+07
    16 'Prefactor '    .85258E-04   1.0000          .0000       .10000E+07
    17 'Normalizat'    .81349       1.0000         .10000E-01   10.000    
    18 'Prefactor '    1.1079       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=   9105.371     FROM MIGRAD    STATUS=CONVERGED    131 CALLS     1339 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73662        1.6146        .34922E-06   -.30117E-02
   2  norm          .18473        .44932       -.16668E-06** at limit **
   3  Prefactor     .20824E-05    5.6434        .38760E-05** at limit **
   4  Prefactor     .97145E-08    18.233        .28959E-05** at limit **
   5  Prefactor     .16091E-05    6.6025       -.24383E-05** at limit **
   6  Prefactor     .69389E-08    7.0915        .13324E-05** at limit **
   7  Prefactor     117.11        69.407        .66165E-06   -.47084E-02
   8  Prefactor     .16653E-09    29.874       -.86906E-07** at limit **
   9  Prefactor     11.553        12.003       -.11315E-05   -.41834E-01
  10  norm          2.4479        1.2258        .20186E-06   -.20610E-01
  11  Prefactor     6.8000        5.7293        .26461E-06   -.62421E-02
  12  Prefactor     2.6376        2.2795       -.35742E-07   -.30200E-02
  13  Prefactor     10.292        9.9497       -.51471E-05   -.59795E-01
  14  Prefactor     .16653E-09    3.0828        .27814E-06** at limit **
  15  norm          .80250        .40091        .30634E-07    .82932E-03
  16  Prefactor      .0000        3.4711        .10208E-05** at limit **
  17  Normalizat    .81144        .19576        .21919E-04   -.28283E-03
  18  Prefactor     1.1085        .15132       -.36791E-06   -.36210E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736618
  norm       = 0.184726
  Prefactor  = 2.08239e-06
  Prefactor  = 9.71445e-09
  Prefactor  = 1.6091e-06
  Prefactor  = 6.93889e-09
  Prefactor  = 117.111
  Prefactor  = 1.66533e-10
  Prefactor  = 11.5532
  norm       = 2.44786
  Prefactor  = 6.79995
  Prefactor  = 2.63761
  Prefactor  = 10.292
  Prefactor  = 1.66533e-10
  norm       = 0.802495
  Prefactor  = 0
  Normalizat = 0.811439
  Prefactor  = 1.10846
 **********
 **   18 **HESSE 
 **********

 FCN=   9105.371     FROM HESSE     STATUS=OK           282 CALLS     1621 TOTAL
                     EDM=   .45E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73662        1.6245        .57871E-03   -1.5691    
   2  norm          .18473        .44960        .12064E-02   -1.5699    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .20824E-05    10.126        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .97145E-08    18.221        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .16091E-05    10.201        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .69389E-08    7.0659        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     117.11        68.932        .93646E-04   -1.5492    
   8  Prefactor     .16653E-09    29.471        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.553        12.369        .29293E-03   -1.5640    
  10  norm          2.4479        1.2354        .65351E-03   -1.5677    
  11  Prefactor     6.8000        5.7523        .38519E-03   -1.5656    
  12  Prefactor     2.6376        2.2805        .62785E-03   -1.5675    
  13  Prefactor     10.292        10.614        .31320E-03   -1.5644    
  14  Prefactor     .16653E-09    3.0900        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .80250        .40486        .52849E-03   -1.5690    
  16  Prefactor      .0000        3.4749        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Normalizat    .81144        .17033        .69094E-01   -.99646    
  18  Prefactor     1.1085        .13004        .37295E-01   -.89197    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.54017e-07
Minuit parameter uncertainties:
  1  1.62455
  2  0.449596
  3  0.00918386
  4  0.000842025
  5  0.008103
  6  0.000442029
  7  68.9322
  8  0.000147853
  9  12.369
  10  1.23542
  11  5.75228
  12  2.28054
  13  10.6143
  14  4.33063e-05
  15  0.404861
  16  1.79445e-06
  17  0.170442
  18  0.130072
Done.

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

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.155e+01  1.237e+01  0.000e+00  1.000e+06 ( 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.108e+00  1.301e-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:  8.114e-01  1.704e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.46
Ra Dec: 154.942 5.191
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.76e-08 +/- 1.89e-08
Energy Flux (Fixed Index): 1.23e-05 +/- 1.31e-05

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

Saving results to:
/scratch/kocevski/951003/likelihoodResults_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.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): 0
logL (Free Index) = 9105.35589393
delta logL = 0.0150987451943

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9105.3492129
delta logL = 0.0217797810674

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.307       1.0000          .0000       .10000E+07
     2 'Index     '    1.8343       1.0000          .0000       10.000    
     3 'Normalizat'    .81494       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9105.349     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      262 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.308        16.535        .10973E-04   -.58019E-04
   2  Index         1.8341        .80338        .13491E-01    .43832E-03
   3  Normalizat    .81494        .18138        .30514E-03   -.28166E-04
   4  Prefactor     1.1075        .14770        .21567E-03   -.35212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.3084
  Index      = 1.83409
  Normalizat = 0.814941
  Prefactor  = 1.10747
 **********
 **   18 **HESSE 
 **********

 FCN=   9105.349     FROM HESSE     STATUS=OK            25 CALLS      287 TOTAL
                     EDM=   .12E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.308        15.993        .43892E-06   -1.5635    
   2  Index         1.8341        .77753        .26982E-02   -.68566    
   3  Normalizat    .81494        .18140        .12206E-04   -.99517    
   4  Prefactor     1.1075        .14782        .86268E-05   -.89228    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.22843e-12
Minuit parameter uncertainties:
  1  15.9926
  2  0.782862
  3  0.181538
  4  0.147876
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/951003': 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): 0
logL (Free Index) = 9105.34921288
delta logL = 0.021779803501

Extracting fit parameters...

4FGL J1019.7+0511
   Spectrum: PowerLaw
225    Prefactor:  1.331e+01  1.599e+01  0.000e+00  1.000e+06 ( 1.000e-14)
226        Index:  1.834e+00  7.829e-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.107e+00  1.479e-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:  8.149e-01  1.815e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.51
Ra Dec: 154.942 5.191
Photon Index (Free Index): 1.83 +/- 0.78
Photon Flux (Free Index): 1.33e-08 +/- 2.36e-08
Energy Flux (Free Index): 1.44e-05 +/- 2.00e-05

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/951003/cmap_HighResolution_695001601_695606401_4FGL_J1019.7+0511_weekly_bin754.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.29e-03', comment='SUCCESS', photon_flux='1.76e-08', energy_flux2='1.44e-05', photon_flux_error='1.89e-08', dlogl='2.18e-02', energy_flux='1.23e-05', photon_flux2='1.33e-08', job_status='DONE', time_completed='2023-01-17 01:08:52.288738', photon_index_error2='0.78', photon_index2='1.83', ts='2.46', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='7.05e-08', energy_flux_error2='2.00e-05', EG='0.81', time_epoch_completed='1673946532.29', return_code='0', job_id='951003', GAL2='1.11', EG2='0.81', return_code2='0', energy_flux_error='1.31e-05', photon_flux_error2='2.36e-08', ts2='2.51', photon_index='2.00' WHERE bin_id='754' AND source_name='4FGL J1019.7+0511' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Jan 17 01:08:52 PST 2023


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 951003: <4FGL_J1019.7+0511_weekly_bin754> in cluster <slac> Done

Job <4FGL_J1019.7+0511_weekly_bin754> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Jan 17 00:55:23 2023
Job was executed on host(s) <bullet0237>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jan 17 00:55:46 2023
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jan 17 00:55:46 2023
Terminated at Tue Jan 17 01:08:53 2023
Results reported at Tue Jan 17 01:08:53 2023

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1019.7+0511_weekly_bin754 154.942 5.1905 695001601 695606401 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 :                                   635.11 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             320.44 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   786 sec.
    Turnaround time :                            810 sec.

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

