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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1710
RA = 204.976, Dec = -1.6378
tmin = 682560001, tmax = 682819201
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='136536', job_status='RUN', time_executed='2022-09-16 17:48:03.458997', time_epoch_executed='1663375683.46' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1710'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/136536

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/136536/ft1_4FGL_J1339.9-0138_daily_bin1710.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/136536/ft1_4FGL_J1339.9-0138_daily_bin1710.fits outfile=/scratch/kocevski/136536/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1710.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=682560001.0 tmax=682819201.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.70
user 3.44
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.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/136536/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1710.fits evtable="EVENTS" outfile="/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.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

Number of photons that the gtmktime cut: 716

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits" evtable="EVENTS" scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits sctable="SC_DATA" outfile=/scratch/kocevski/136536/ltcube_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.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/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits
.....................!
real 14.82
user 14.40
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits sctable="SC_DATA" expcube=/scratch/kocevski/136536/ltcube_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits outfile=/scratch/kocevski/136536/expmap_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.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/136536/ltcube_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits
.....................!
real 192.56
user 187.56
sys 4.24

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

Setting source of interest to:
4FGL J1339.9-0138 @ 204.976 -1.6378

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits outfile=/scratch/kocevski/136536/cmap_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.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=204.976 yref=-1.6378 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.57
user 0.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits outfile=/scratch/kocevski/136536/cmap_HighResolution_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.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=204.976 yref=-1.6378 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.58
user 0.42
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits evtable="EVENTS" scfile=/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/136536/Model_4FGL_J1339.9-0138_daily_bin1710.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/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits.....................!
real 59.78
user 58.18
sys 1.18

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits', '/scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits', expMap='/scratch/kocevski/136536/expmap_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits', expCube='/scratch/kocevski/136536/ltcube_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/136536/Model_4FGL_J1339.9-0138_daily_bin1710.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.9-0138'

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.717e+00  0.000e+00  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/136536/ft1_filtered_4FGL_J1339.9-0138_daily_bin1710.fits
Spacecraft file(s): /scratch/kocevski/136536/ft2_4FGL_J1339.9-0138_daily_bin1710.fits
Exposure map: /scratch/kocevski/136536/expmap_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits
Exposure cube: /scratch/kocevski/136536/ltcube_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/136536/Model_4FGL_J1339.9-0138_daily_bin1710.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) = 7738.14492521

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .48669       1.0000          .0000       .10000E+07
     2 'Prefactor '    .15983E-01   1.0000          .0000       .10000E+07
     3 'norm      '    4.1746       1.0000          .0000       .10000E+07
     4 'norm      '    3.7100       1.0000          .0000       .10000E+07
     5 'Prefactor '    10.794       1.0000          .0000       .10000E+07
     6 'Prefactor '    .50958E-02   1.0000          .0000       .10000E+07
     7 'Prefactor '    10.491       1.0000          .0000       .10000E+07
     8 'Prefactor '    6.1092       1.0000          .0000       .10000E+07
     9 'norm      '    .70882E-06   1.0000          .0000       .10000E+07
    10 'norm      '    .25414E-05   1.0000          .0000       .10000E+07
    11 'norm      '    8.5815       1.0000          .0000       .10000E+07
    12 'norm      '    1.1552       1.0000          .0000       .10000E+07
    13 'Prefactor '    4.2346       1.0000          .0000       .10000E+07
    14 'Prefactor '    .17457E-04   1.0000          .0000       .10000E+07
    15 'Prefactor '    .65600E-04   1.0000          .0000       .10000E+07
    16 'norm      '    4.6861       1.0000          .0000       .10000E+07
    17 'Prefactor '    .28067E-03   1.0000          .0000       .10000E+07
    18 'norm      '    11.340       1.0000          .0000       .10000E+07
    19 'Prefactor '    .75309E-04   1.0000          .0000       .10000E+07
    20 'norm      '    6.5551       1.0000          .0000       .10000E+07
    21 'Normalizat'    1.2618       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .78097       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7738.053     FROM MIGRAD    STATUS=CONVERGED    157 CALLS     1398 TOTAL
                     EDM=   .17E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48654        .19496        .10429E-07    .42446E-02
   2  Prefactor      .0000        14.277        .60525E-07** at limit **
   3  norm          4.1704        7.7048       -.88730E-06    .17457E-02
   4  norm          3.7153        3.9589        .26241E-07   -.68738E-03
   5  Prefactor     10.606        5.9611       -.64027E-06   -.21214E-03
   6  Prefactor     .88818E-09    7.5285        .95559E-06** at limit **
   7  Prefactor     10.474        7.0245        .13355E-06   -.40615E-02
   8  Prefactor     6.2006        11.485        .87981E-06   -.82240E-03
   9  norm           .0000        .68525        .11160E-09** at limit **
  10  norm           .0000        .92952       -.51608E-07** at limit **
  11  norm          8.5864        5.5460       -.88040E-07    .14422E-03
  12  norm          1.0161        107.30        .84255E-05    .38337E-03
  13  Prefactor     4.2401        4.1043       -.59426E-07   -.65543E-04
  14  Prefactor      .0000        2.5356       -.63826E-07** at limit **
  15  Prefactor     .82712E-08    99.055       -.76401E-06** at limit **
  16  norm          4.6750        4.8598       -.22609E-07    .19666E-02
  17  Prefactor      .0000        3.3484        .71120E-07** at limit **
  18  norm          11.338        2.7254       -.94130E-08    .11245E-02
  19  Prefactor     .22204E-09    7.4602       -.14514E-05** at limit **
  20  norm          6.5500        2.5113        .27156E-06    .12708E-01
  21  Normalizat    1.2624        .21342        .41702E-05    .11563E-03
  22  Prefactor     .78077        .14744       -.45367E-05    .16169E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.486542
  Prefactor  = 0
  norm       = 4.17037
  norm       = 3.71531
  Prefactor  = 10.6057
  Prefactor  = 8.88178e-10
  Prefactor  = 10.4744
  Prefactor  = 6.2006
  norm       = 0
  norm       = 0
  norm       = 8.58638
  norm       = 1.01605
  Prefactor  = 4.24014
  Prefactor  = 0
  Prefactor  = 8.27116e-09
  norm       = 4.67505
  Prefactor  = 0
  norm       = 11.3376
  Prefactor  = 2.22045e-10
  norm       = 6.54995
  Normalizat = 1.26236
  Prefactor  = 0.780772
 **********
 **   18 **HESSE 
 **********

 FCN=   7738.053     FROM HESSE     STATUS=OK           394 CALLS     1792 TOTAL
                     EDM=   .73E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48654        .19602        .53756E-03   -1.5694    
   2  Prefactor      .0000        14.262        .17317E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.1704        7.7939        .49304E-03   -1.5667    
   4  norm          3.7153        3.9596        .52405E-03   -1.5669    
   5  Prefactor     10.606        13.385        .30471E-03   -1.5643    
   6  Prefactor     .88818E-09    8.1821        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.474        7.3041        .30910E-03   -1.5643    
   8  Prefactor     6.2006        11.518        .40596E-03   -1.5658    
   9  norm           .0000        .66263        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm           .0000        .92909        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          8.5864        5.5662        .34195E-03   -1.5649    
  12  norm          1.0161        101.48        .10741E-02   -1.5688    
  13  Prefactor     4.2401        4.1066        .48943E-03   -1.5667    
  14  Prefactor      .0000        2.5354        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .82712E-08    96.973        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.6750        4.8754        .46463E-03   -1.5665    
  17  Prefactor      .0000        3.3573        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          11.338        2.7270        .29725E-03   -1.5641    
  19  Prefactor     .22204E-09    8.3518        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.5500        7.0528        .39173E-03   -1.5657    
  21  Normalizat    1.2624        .18068        .58709E-01   -.84697    
  22  Prefactor     .78077        .12458        .43469E-01   -1.0044    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.31836e-09
Minuit parameter uncertainties:
  1  0.196023
  2  1.14556e-05
  3  7.79395
  4  3.95963
  5  13.385
  6  0.000172722
  7  7.30412
  8  11.5178
  9  1.99413e-06
  10  2.61184e-07
  11  5.5662
  12  20.3089
  13  4.10657
  14  5.79014e-06
  15  0.00178832
  16  4.87539
  17  1.56304e-05
  18  2.727
  19  8.25523e-05
  20  7.05277
  21  0.180771
  22  0.124623
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.016e+00  2.031e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  2.118e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.808e-01  1.246e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.262e+00  1.808e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.976 -1.638
Photon Flux Upper Limit: 2.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/136536/likelihoodResults_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.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) = 7738.03970836
delta logL = 0.0135166643531

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7738.02749481
delta logL = 0.0257302186837

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8775       1.0000          .0000       .10000E+07
     2 'alpha     '    3.0373       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2631       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .77834       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+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=   7738.027     FROM MIGRAD    STATUS=FAILED        93 CALLS      271 TOTAL
                     EDM=   .10E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8826        33.926        .23957E-04   -.65489E-04
   2  alpha         3.0365        4.0174        .84234E-01    .18124E-03
   3  Normalizat    1.2631        .20706        .25958E-03   -.34248E-03
   4  Prefactor     .77832        .14631        .22565E-03   -.18923E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7738.027     FROM SIMPLEX   STATUS=UNCHANGED     77 CALLS      348 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8826        33.926        .27277E-04   -1.5674    
   2  alpha         3.0365        4.0174        .50502E-02    .21630    
   3  Normalizat    1.2631        .20706        .19267E-03   -.84674    
   4  Prefactor     .77832        .14631        .27133E-03   -1.0053    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7738.027     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      376 TOTAL
                     EDM=   .22E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8826        19.957        .95826E-06   -.10100E-03
   2  alpha         3.0366        3.9005        .16847E-01    .59722E-06
   3  Normalizat    1.2631        .20681        .51915E-04   -.13577E-05
   4  Prefactor     .77832        .14609        .90261E-05   -.75572E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.8826
  alpha      = 3.03656
  Normalizat = 1.26311
  Prefactor  = 0.778318
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8826        18.736        .37370E-06   -1.5674    
   2  alpha         3.0366        3.8774        .67387E-03    .21630    
   3  Normalizat    1.2631        .20659        .10383E-04   -.84674    
   4  Prefactor     .77832        .14589        .18052E-05   -1.0053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.24592e-12
Minuit parameter uncertainties:
  1  14.6981
  2  3.19301
  3  0.20672
  4  0.145966
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/136536': 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) = 7738.02749473
delta logL = 0.025730296913

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.883e+00  1.470e+01  0.000e+00  1.000e+06 ( 1.000e-13)
280        alpha:  3.037e+00  3.193e+00  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00 -5.000e+00  1.000e+01 ( 1.000e+00) fixed
282           Eb:  1.256e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  7.783e-01  1.460e-01  0.000e+00  1.000e+01 ( 1.000e+00)
534        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
535        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
532   Normalization:  1.263e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 204.976 -1.638

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/136536/cmap_HighResolution_682560001_682819201_4FGL_J1339.9-0138_daily_bin1710.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.31e-05', job_status='DONE', photon_flux_upper_limit='2.84e-08', time_completed='2022-09-16 17:58:02.493671', job_id='136536', GAL2='0.78', fit_tolerance='1e-08', EG2='1.26', EG='1.26', time_epoch_completed='1663376282.49', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.78', dlogl='2.57e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1710' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 16 17:58:02 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0232>
Subject: Job 136536: <4FGL_J1339.9-0138_daily_bin1710> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1710> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Sep 16 17:45:21 2022
Job was executed on host(s) <bullet0232>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 16 17:47:41 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 16 17:47:41 2022
Terminated at Fri Sep 16 17:58:03 2022
Results reported at Fri Sep 16 17:58:03 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1710 204.976 -1.6378 682560001 682819201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.9-0138 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   600.32 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            762 sec.

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

