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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1010
RA = 204.976, Dec = -1.6378
tmin = 501120001, tmax = 501379201
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='875857', job_status='RUN', time_executed='2021-09-08 08:38:05.317873', time_epoch_executed='1631115485.32' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1010'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/875857

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/875857/ft1_4FGL_J1339.9-0138_daily_bin1010.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/875857/ft1_4FGL_J1339.9-0138_daily_bin1010.fits outfile=/scratch/kocevski/875857/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1010.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=501120001.0 tmax=501379201.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.53
user 3.30
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.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/875857/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1010.fits evtable="EVENTS" outfile="/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.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.52
user 0.35
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits" evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits sctable="SC_DATA" outfile=/scratch/kocevski/875857/ltcube_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.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/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits
.....................!
real 14.80
user 14.43
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits sctable="SC_DATA" expcube=/scratch/kocevski/875857/ltcube_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits outfile=/scratch/kocevski/875857/expmap_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.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/875857/ltcube_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits
.....................!
real 193.29
user 187.26
sys 5.48

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/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits outfile=/scratch/kocevski/875857/cmap_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.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.56
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits outfile=/scratch/kocevski/875857/cmap_HighResolution_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.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.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits evtable="EVENTS" scfile=/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/875857/Model_4FGL_J1339.9-0138_daily_bin1010.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/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits.....................!
real 55.28
user 53.84
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits', '/scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits', expMap='/scratch/kocevski/875857/expmap_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits', expCube='/scratch/kocevski/875857/ltcube_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/875857/Model_4FGL_J1339.9-0138_daily_bin1010.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  1.000e-04  1.000e+04 ( 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  0.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/875857/ft1_filtered_4FGL_J1339.9-0138_daily_bin1010.fits
Spacecraft file(s): /scratch/kocevski/875857/ft2_4FGL_J1339.9-0138_daily_bin1010.fits
Exposure map: /scratch/kocevski/875857/expmap_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits
Exposure cube: /scratch/kocevski/875857/ltcube_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/875857/Model_4FGL_J1339.9-0138_daily_bin1010.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) = 7215.84214037

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .79348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .64257E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    75.158       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    11.145       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.1887       1.0000         .10000E-03   10000.    
    10 'norm      '    7.6364       1.0000         .10000E-03   10000.    
    11 'norm      '    10.926       1.0000         .10000E-03   10000.    
    12 'norm      '    .10190E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.332       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .12335E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10169E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .46366E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.550       1.0000         .10000E-03   10000.    
    20 'norm      '    .10174E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .94595       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.2840       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.

 FCN=   7215.201     FROM MIGRAD    STATUS=CONVERGED    486 CALLS     2556 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .79339        .33691        .19955E-06   -.23168E-03
   2  Prefactor     .10002E-03    347.42        .14433E-04** at limit **
   3  norm          75.139        19.095        .18817E-05    .28300E-04
   4  norm          .10000E-03    2.6275       -.12034E-06** at limit **
   5  Prefactor     11.132        22.658        .89599E-06    .36445E-04
   6  Prefactor     .10000E-03    3.3168       -.14174E-06** at limit **
   7  Prefactor     .10000E-03    3.0856       -.43701E-06** at limit **
   8  Prefactor     .10000E-03    32.383       -.21812E-06** at limit **
   9  norm          2.1887        1.8048       -.48817E-06   -.69049E-03
  10  norm          7.6464        5.2804       -.41897E-08   -.13657E-03
  11  norm          10.888        11.271        .69401E-06    .24940E-03
  12  norm          .10001E-03    38.319       -.45475E-05** at limit **
  13  Prefactor     .10000E-03    .81463       -.89029E-07** at limit **
  14  Prefactor     13.339        7.6285        .95020E-07    .26145E-03
  15  Prefactor     .10000E-03    33.455       -.52647E-06** at limit **
  16  norm          .10000E-03    6.4345       -.77265E-06** at limit **
  17  Prefactor     .10001E-03    172.60       -.77542E-04** at limit **
  18  norm          .10000E-03    1.0333       -.14224E-05** at limit **
  19  Prefactor     17.528        27.122       -.20739E-05    .88276E-04
  20  norm          .10000E-03    10.964       -.39764E-06** at limit **
  21  Normalizat    .94592        .23646        .13339E-05    .23353E-03
  22  Prefactor     1.2840        .16224       -.79486E-06   -.21720E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.793388
  Prefactor  = 0.000100019
  norm       = 75.139
  norm       = 0.0001
  Prefactor  = 11.132
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.18866
  norm       = 7.64641
  norm       = 10.8884
  norm       = 0.000100009
  Prefactor  = 0.0001
  Prefactor  = 13.3393
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.000100002
  Prefactor  = 17.5283
  norm       = 0.0001
  Normalizat = 0.945919
  Prefactor  = 1.28403
 **********
 **   18 **HESSE 
 **********

 FCN=   7215.201     FROM HESSE     STATUS=OK           350 CALLS     2906 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .79339        .33504        .30343E-04   -1.5530    
   2  Prefactor     .10002E-03    345.26        .21027E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          75.139        19.022        .46315E-04   -1.3972    
   4  norm          .10000E-03    2.6283        .13448E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     11.132        22.708        .12001E-03   -1.5041    
   6  Prefactor     .10000E-03    3.3234        .15108E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.0964        .14577E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    32.500        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.1887        1.7996        .97735E-04   -1.5412    
  10  norm          7.6464        5.2748        .14324E-03   -1.5155    
  11  norm          10.888        11.257        .12121E-03   -1.5048    
  12  norm          .10001E-03    38.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    .81647        .74869E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     13.339        7.6118        .10970E-03   -1.4977    
  15  Prefactor     .10000E-03    33.813        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    6.5288        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    15.280        .77565E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    8.4591        .16368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.528        27.229        .95604E-04   -1.4870    
  20  norm          .10000E-03    11.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .94592        .28174        .35716E-03   -.94865    
  22  Prefactor     1.2840        .19421        .22286E-03   -.83783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87144e-09
Minuit parameter uncertainties:
  1  0.335038
  2  0.00517049
  3  19.0234
  4  1.42062e-05
  5  22.7259
  6  6.60854e-06
  7  3.22763e-05
  8  9.25604e-05
  9  1.79961
  10  5.27513
  11  11.2594
  12  0.00117971
  13  1.55879e-06
  14  7.6123
  15  1.09764e-05
  16  3.98236e-05
  17  0.00058191
  18  0.000235787
  19  27.2479
  20  5.69469e-05
  21  0.282177
  22  0.194316
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  1.180e-03  1.000e-04  1.000e+04 ( 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  0.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:  1.284e+00  1.943e-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:  9.459e-01  2.822e-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: 3.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.89e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/875857/likelihoodResults_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.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) = 7215.20088387
delta logL = -0.000122954177641

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7215.20076112
delta logL = -2.04971001949e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4351       1.0000          .0000       5.0000    
     3 'Normalizat'    .94591       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2840       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.

 FCN=   7215.201     FROM MIGRAD    STATUS=CONVERGED    118 CALLS      325 TOTAL
                     EDM=   .91E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    15.341        .18142    ** at limit **
   2  alpha         .63429        2.7252        .16468       -.34518E-09
   3  Normalizat    .94591        .55579E-02    .35715E-03    .34824E-04
   4  Prefactor     1.2840        .39928E-02    .22286E-03    .60247E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 0.634287
  Normalizat = 0.945911
  Prefactor  = 1.28404
 **********
 **   18 **HESSE 
 **********

 FCN=   7215.201     FROM HESSE     STATUS=OK            25 CALLS      350 TOTAL
                     EDM=   .65E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    89.374        .65410E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         .63429        2.7035        .65871E-02   -.84246    
   3  Normalizat    .94591        .26783        .14286E-04   -.94865    
   4  Prefactor     1.2840        .19259        .44571E-04   -.83783    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.47766e-12
Minuit parameter uncertainties:
  1  0.000351385
  2  712.91
  3  0.268212
  4  0.192696
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/875857': 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) = 7215.20076017
delta logL = 7.40149516787e-07

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  3.514e-04  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  6.343e-01  7.129e+02  0.000e+00  5.000e+00 ( 1.000e+00)
281         beta:  6.797e-01  0.000e+00  0.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:  1.284e+00  1.927e-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:  9.459e-01  2.682e-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/875857/cmap_HighResolution_501120001_501379201_4FGL_J1339.9-0138_daily_bin1010.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.89e-05', job_status='DONE', photon_flux_upper_limit='3.55e-08', time_completed='2021-09-08 08:49:30.579873', job_id='875857', GAL2='1.28', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1631116170.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.28', dlogl='7.40e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1010' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:49:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 875857: <4FGL_J1339.9-0138_daily_bin1010> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1010> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:35:30 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:35:51 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 08:35:51 2021
Terminated at Wed Sep  8 08:49:31 2021
Results reported at Wed Sep  8 08:49:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1010 204.976 -1.6378 501120001 501379201 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 :                                   678.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             257.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            841 sec.

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

