aklog: Couldn't determine realm of user:aklog: unknown RPC error (-1765328189)  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 118 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 = 17268
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1419.4-0838_weekly_bin664
RA = 214.86, Dec = -8.6417
tmin = 640569601, tmax = 641174401
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='307709', job_status='RUN', time_executed='2021-07-21 15:05:54.396074', time_epoch_executed='1626905154.4' WHERE source_name='4FGL J1419.4-0838' and cadence='weekly' and bin_id='664'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/307709

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

Retrieving the FT1 file...

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

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

Retrieving 108 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/307709/ft1_4FGL_J1419.4-0838_weekly_bin664.fits


Retrieving the FT1 file...

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

Retrieving 108 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/307709/ft1_4FGL_J1419.4-0838_weekly_bin664.fits outfile=/scratch/kocevski/307709/ft1_filteredMKT_4FGL_J1419.4-0838_weekly_bin664.fits ra=214.86 dec=-8.6417 rad=12.0 tmin=640569601.0 tmax=641174401.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 6.39
user 6.07
sys 0.27

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.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/307709/ft1_filteredMKT_4FGL_J1419.4-0838_weekly_bin664.fits evtable="EVENTS" outfile="/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.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.56
user 0.40
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits" evtable="EVENTS" scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits sctable="SC_DATA" outfile=/scratch/kocevski/307709/ltcube_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.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/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits
.....................!
real 28.64
user 28.22
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits sctable="SC_DATA" expcube=/scratch/kocevski/307709/ltcube_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits outfile=/scratch/kocevski/307709/expmap_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.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/307709/ltcube_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits
.....................!
real 191.08
user 185.47
sys 5.20

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 161 point sources and 0 extended sources

Setting source of interest to:
4FGL J1419.4-0838 @ 214.86 -8.6417

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits outfile=/scratch/kocevski/307709/cmap_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.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=214.86 yref=-8.6417 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.40
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits outfile=/scratch/kocevski/307709/cmap_HighResolution_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.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=214.86 yref=-8.6417 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.60
user 0.40
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits evtable="EVENTS" scfile=/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/307709/Model_4FGL_J1419.4-0838_weekly_bin664.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/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits................................!
real 16.95
user 15.57
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits', '/scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits', expMap='/scratch/kocevski/307709/expmap_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits', expCube='/scratch/kocevski/307709/ltcube_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/307709/Model_4FGL_J1419.4-0838_weekly_bin664.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1419.4-0838'

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  7.071e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/307709/ft1_filtered_4FGL_J1419.4-0838_weekly_bin664.fits
Spacecraft file(s): /scratch/kocevski/307709/ft2_4FGL_J1419.4-0838_weekly_bin664.fits
Exposure map: /scratch/kocevski/307709/expmap_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits
Exposure cube: /scratch/kocevski/307709/ltcube_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/307709/Model_4FGL_J1419.4-0838_weekly_bin664.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 435.480844616

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 433.774529942

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    117.99       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .25200       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .81851E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.5522       1.0000         .10000E-03   10000.    
     5 'norm      '    .24510E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    46.914       1.0000         .10000E-03   10000.    
     7 'norm      '    .13677E-01   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17411E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .59333E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .23028E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.4151       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.5291       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6125       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .15564       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.5743       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.6331       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.9391       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    .94736       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   433.7701     FROM MIGRAD    STATUS=CONVERGED    203 CALLS      505 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          121.48        200.98        .92612E-03    .26617E-01
   2  Prefactor     .10000E-03    82.410        .10213E-01** at limit **
   3  Prefactor     .10002E-03    123.27        .94243E-01** at limit **
   4  Prefactor     .78847        9097.9        .53613E-02    .34100E-02
   5  norm          .10000E-03    96.871        .91449E-02** at limit **
   6  Prefactor     46.932        36.506        .14635E-02    .39469E-03
   7  norm          .10000E-03    66.992        .90913E-02** at limit **
   8  Prefactor     .10000E-03    16.602        .90712E-02** at limit **
   9  norm          .10000E-03    41.225        .93155E-02** at limit **
  10  norm          .10000E-03    128.70        .91376E-02** at limit **
  11  Prefactor     .32392E-03    1493.5        .54726E-02** at limit **
  12  Prefactor     1.5291        1.0671         .0000         .0000    
  13  norm          2.6125        1.0196         .0000         .0000    
  14  Prefactor     .10000E-03    .23879       -.16491E-05** at limit **
  15  Prefactor     1.5743        1.0623         .0000         .0000    
  16  Prefactor     9.6331        1.0014         .0000         .0000    
  17  Prefactor     9.9391        1.0013         .0000         .0000    
  18  Normalizat    .10000E-01    .25505        .13399E-04** at limit **
  19  Prefactor     .94718        1.2896       -.28920E-04   -.21081E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 121.475
  Prefactor  = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.788471
  norm       = 0.0001
  Prefactor  = 46.9317
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000323923
  Prefactor  = 1.52906
  norm       = 2.61248
  Prefactor  = 0.0001
  Prefactor  = 1.57433
  Prefactor  = 9.63313
  Prefactor  = 9.93913
  Normalizat = 0.01
  Prefactor  = 0.947176
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   433.7701     FROM HESSE     STATUS=FAILED        31 CALLS      536 TOTAL
                     EDM=   .72E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          121.48        200.98        .92612E-03   -1.3499    
   2  Prefactor     .10000E-03    82.410        .10213E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    123.27        .94243E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .78847        9097.9        .53613E-02   -1.5530    
   5  norm          .10000E-03    96.871        .91449E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     46.932        36.506        .14635E-02   -1.4337    
   7  norm          .10000E-03    66.992        .90913E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    16.602        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    41.225        .93155E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    128.70        .91376E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .32392E-03    1493.5        .54726E-02   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     577.25        575.54         .0000       -1.5461    
  13  norm          2.6125        1.0196         .0000       -1.5385    
  14  Prefactor     .10000E-03    .23879       -.16491E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.5743        1.0623         .0000       -1.5457    
  16  Prefactor     9.6331        1.0014         .0000       -1.5087    
  17  Prefactor     9.9391        1.0013         .0000       -1.5077    
  18  Normalizat    .10000E-01    .25505        .13399E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .94718        1.2896       -.28920E-04   -.94512    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 7.18904e-10
Minuit parameter uncertainties:
  1  202.12
  2  2.25613e-05
  3  0.00349056
  4  202.627
  5  6.95717e-07
  6  36.5234
  7  8.27279e-06
  8  3.33721e-06
  9  2.91864e-05
  10  0.000145595
  11  1.18751
  12  1.06707
  13  1.0196
  14  7.84063e-06
  15  1.06229
  16  1.00135
  17  1.00127
  18  2.14014e-07
  19  1.33545
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 433.770096302

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.000e-04  1.456e-04  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.138e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.472e-01  1.335e+00  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.000e-02  2.140e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 214.860 -8.642
Photon Flux Upper Limit: 3.40e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.50e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/307709/likelihoodResults_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.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) = 433.770135669
delta logL = -3.93667972958e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 433.770097024
delta logL = -7.2178352184e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10638E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3058       1.0000          .0000       5.0000    
     3 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94720       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5400E+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=   433.7701     FROM MIGRAD    STATUS=CONVERGED    106 CALLS      285 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    6948.5        .18102E-01** at limit **
   2  alpha         2.1148        3.5446        .17698        .10719E-07
   3  Normalizat    .10000E-01    .50975E-01    .88235E-02** at limit **
   4  Prefactor     .94718        .57684E-01    .14591E-03    .84249E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100034
  alpha      = 2.11485
  Normalizat = 0.01
  Prefactor  = 0.947176
 **********
 **   18 **HESSE 
 **********

 FCN=   433.7701     FROM HESSE     STATUS=OK            23 CALLS      308 TOTAL
                     EDM=   .28E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10003E-03    132.39        .23142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1148        3.2208        .70793E-02   -.15468    
   3  Normalizat    .10000E-01    .66196        .17647E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .94718        .20978        .58362E-05   -.94512    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.84131e-10
Minuit parameter uncertainties:
  1  0.00422387
  2  1767.87
  3  1.16162e-07
  4  0.209955
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/307709': 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) = 433.770096302
delta logL = 5.79234438192e-11

Extracting fit parameters...

4FGL J1419.4-0838
   Spectrum: LogParabola
286         norm:  1.000e-04  4.224e-03  1.000e-04  1.000e+04 ( 1.000e-12)
287        alpha:  2.115e+00  1.768e+03  0.000e+00  5.000e+00 ( 1.000e+00)
288         beta:  8.011e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
289           Eb:  7.019e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
537    Prefactor:  9.472e-01  2.100e-01  0.000e+00  1.000e+01 ( 1.000e+00)
538        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
539        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
536   Normalization:  1.000e-02  1.162e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 214.860 -8.642

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/307709/cmap_HighResolution_640569601_641174401_4FGL_J1419.4-0838_weekly_bin664.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.50e-03', job_status='DONE', photon_flux_upper_limit='3.40e-06', time_completed='2021-07-21 15:12:17.207060', job_id='307709', GAL2='0.95', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1626905537.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.95', dlogl='5.79e-11', ts2='-0.00', photon_index_error='0.00', photon_index='2.14' WHERE bin_id='664' AND source_name='4FGL J1419.4-0838' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Wed Jul 21 15:12:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 307709: <4FGL_J1419.4-0838_weekly_bin664> in cluster <slac> Done

Job <4FGL_J1419.4-0838_weekly_bin664> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Wed Jul 21 15:00:33 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Jul 21 15:03:39 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Jul 21 15:03:39 2021
Terminated at Wed Jul 21 15:12:18 2021
Results reported at Wed Jul 21 15:12:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1419.4-0838_weekly_bin664 214.86 -8.6417 640569601 641174401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1419.4-0838 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   363.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             397.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   518 sec.
    Turnaround time :                            705 sec.

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

