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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1647
RA = 204.976, Dec = -1.6378
tmin = 666230401, tmax = 666489601
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='826765', job_status='RUN', time_executed='2022-02-14 00:12:26.100680', time_epoch_executed='1644826346.1' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1647'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/826765

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/826765/ft1_4FGL_J1339.9-0138_daily_bin1647.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/826765/ft1_4FGL_J1339.9-0138_daily_bin1647.fits outfile=/scratch/kocevski/826765/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1647.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=666230401.0 tmax=666489601.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 4.25
user 4.01
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.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/826765/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1647.fits evtable="EVENTS" outfile="/scratch/kocevski/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.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.50
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits" evtable="EVENTS" scfile=/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits sctable="SC_DATA" outfile=/scratch/kocevski/826765/ltcube_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.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/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits
.....................!
real 20.84
user 19.69
sys 1.10

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits evtable="EVENTS" scfile=/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits sctable="SC_DATA" expcube=/scratch/kocevski/826765/ltcube_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits outfile=/scratch/kocevski/826765/expmap_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.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/826765/ltcube_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits
.....................!
real 191.74
user 185.85
sys 5.58

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/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits scfile=/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits outfile=/scratch/kocevski/826765/cmap_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits scfile=/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits outfile=/scratch/kocevski/826765/cmap_HighResolution_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.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.63
user 0.36
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits', '/scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits', expMap='/scratch/kocevski/826765/expmap_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits', expCube='/scratch/kocevski/826765/ltcube_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/826765/Model_4FGL_J1339.9-0138_daily_bin1647.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/826765/ft1_filtered_4FGL_J1339.9-0138_daily_bin1647.fits
Spacecraft file(s): /scratch/kocevski/826765/ft2_4FGL_J1339.9-0138_daily_bin1647.fits
Exposure map: /scratch/kocevski/826765/expmap_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits
Exposure cube: /scratch/kocevski/826765/ltcube_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/826765/Model_4FGL_J1339.9-0138_daily_bin1647.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) = 5608.56629596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.8511       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    11.739       1.0000         .10000E-03   10000.    
     4 'norm      '    11.202       1.0000         .10000E-03   10000.    
     5 'Prefactor '    51.794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .57063E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    6.3402       1.0000         .10000E-03   10000.    
    10 'norm      '    5.4898       1.0000         .10000E-03   10000.    
    11 'norm      '    6.2876       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10830E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.519       1.0000         .10000E-03   10000.    
    16 'norm      '    .10885E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.112       1.0000         .10000E-03   10000.    
    18 'norm      '    20.580       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10169E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .56260       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.3068       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=   5608.565     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     2839 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.8511        .66948        .24506E-04   -.44164E-03
   2  Prefactor     .10000E-03    54.594        .18142E-02** at limit **
   3  norm          11.739        12.396        .11692E-03    .14818E-03
   4  norm          11.202        11.630        .11970E-03    .24884E-04
   5  Prefactor     51.796        31.096        .55728E-04    .16116E-04
   6  Prefactor     .10003E-03    12.899        .73872E-01** at limit **
   7  Prefactor     .10000E-03    3.8484        .14324E-02** at limit **
   8  Prefactor     .10000E-03    15.896        .18142E-02** at limit **
   9  norm          6.3403        2.3235        .65427E-04    .15187E-03
  10  norm          5.4891        4.9246        .13940E-03    .11897E-02
  11  norm          6.2874        8.2991        .16008E-03    .66700E-03
  12  norm          .10000E-03    15.822        .18142E-02** at limit **
  13  Prefactor     .10000E-03    2.0698        .10460E-02** at limit **
  14  Prefactor     .10001E-03    12.184        .30757E-02** at limit **
  15  Prefactor     14.520        15.818        .10512E-03    .80034E-05
  16  norm          .10005E-03    21.057        .34730E-02** at limit **
  17  Prefactor     15.112        13.180        .10303E-03    .12778E-03
  18  norm          20.581        4.7865        .75545E-04    .91064E-03
  19  Prefactor     .10001E-03    54.949        .18142E-02** at limit **
  20  norm          .10000E-03    9.0946        .18142E-02** at limit **
  21  Normalizat    .56258        .29526        .43430E-03    .26811E-03
  22  Prefactor     1.3067        .20935        .21387E-03    .98653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.85107
  Prefactor  = 0.0001
  norm       = 11.7388
  norm       = 11.2024
  Prefactor  = 51.7958
  Prefactor  = 0.000100034
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.34032
  norm       = 5.48906
  norm       = 6.28737
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 14.5196
  norm       = 0.000100054
  Prefactor  = 15.1123
  norm       = 20.5807
  Prefactor  = 0.000100005
  norm       = 0.0001
  Normalizat = 0.562578
  Prefactor  = 1.3067
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.565     FROM HESSE     STATUS=OK           330 CALLS     3169 TOTAL
                     EDM=   .54E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.8511        .66947        .98026E-06   -1.5315    
   2  Prefactor     .10000E-03    54.595        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          11.739        12.395        .46769E-05   -1.5023    
   4  norm          11.202        11.630        .47880E-05   -1.5038    
   5  Prefactor     51.796        31.098        .22291E-05   -1.4267    
   6  Prefactor     .10003E-03    11.776        .79201E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    3.8487        .28648E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.896        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          6.3403        2.3234        .26171E-05   -1.5204    
  10  norm          5.4891        4.9244        .55759E-05   -1.5239    
  11  norm          6.2874        8.2987        .64033E-05   -1.5206    
  12  norm          .10000E-03    15.822        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.0701        .20920E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10001E-03    12.268        .61515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     14.520        15.817        .42046E-05   -1.4946    
  16  norm          .10005E-03    21.257        .69460E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.112        13.179        .41212E-05   -1.4930    
  18  norm          20.581        4.7865        .15109E-04   -1.4800    
  19  Prefactor     .10001E-03    54.978        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    9.0975        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .56258        .29539        .17372E-04   -1.0960    
  22  Prefactor     1.3067        .20944        .42775E-04   -.83108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.37952e-09
Minuit parameter uncertainties:
  1  0.669473
  2  5.89274e-05
  3  12.3977
  4  11.6322
  5  31.1081
  6  0.00125787
  7  5.35773e-05
  8  8.28277e-05
  9  2.32345
  10  4.92479
  11  8.30026
  12  4.83427e-05
  13  5.50029e-05
  14  0.000710436
  15  15.8218
  16  0.00213826
  17  13.1812
  18  4.78655
  19  0.00108411
  20  4.63209e-05
  21  0.296223
  22  0.209573
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  4.834e-05  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.307e+00  2.096e-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:  5.626e-01  2.962e-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.33e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/826765/likelihoodResults_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.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) = 5608.56537841
delta logL = -0.000300609070109

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5608.56507882
delta logL = -1.0200228644e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    .89912       1.0000          .0000       5.0000    
     3 'Normalizat'    .56258       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3067       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5608.565     FROM MIGRAD    STATUS=CONVERGED    116 CALLS      293 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1296.1        .72096E-01** at limit **
   2  alpha         3.6147        2.9831        .20000       -.83454E-05
   3  Normalizat    .56258        .11376        .43430E-03   -.28795E-06
   4  Prefactor     1.3067        .78612E-01    .21387E-03    .37209E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 3.61474
  Normalizat = 0.562583
  Prefactor  = 1.30669
 **********
 **   18 **HESSE 
 **********

 FCN=   5608.565     FROM HESSE     STATUS=OK            25 CALLS      318 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    28.426        .44723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         3.6147        3.7030        .80000E-02    .46217    
   3  Normalizat    .56258        .28014        .17372E-04   -1.0960    
   4  Prefactor     1.3067        .20492        .85550E-05   -.83108    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.0427e-11
Minuit parameter uncertainties:
  1  3.50669e-06
  2  2.24879
  3  0.280849
  4  0.205044
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/826765': 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) = 5608.56507637
delta logL = 1.42525914271e-06

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  3.507e-06  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  3.615e+00  2.249e+00  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.307e+00  2.050e-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:  5.626e-01  2.808e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/826765/cmap_HighResolution_666230401_666489601_4FGL_J1339.9-0138_daily_bin1647.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='3.33e-08', time_completed='2022-02-14 00:23:07.877252', job_id='826765', GAL2='1.31', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1644826987.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.31', dlogl='1.43e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1647' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Feb 14 00:23:07 PST 2022




------------------------------------------------------------
Sender: LSF System <lsf@bullet0172>
Subject: Job 826906: <4FGL_J1339.9-0138_daily_bin1647> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1647> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Mon Feb 14 00:08:02 2022
Job was executed on host(s) <bullet0172>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:08:03 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:08:03 2022
Terminated at Mon Feb 14 00:22:08 2022
Results reported at Mon Feb 14 00:22:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1647 204.976 -1.6378 666230401 666489601 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 :                                   603.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             222.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   845 sec.
    Turnaround time :                            846 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 826765: <4FGL_J1339.9-0138_daily_bin1647> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1647> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Feb 14 00:07:53 2022
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Feb 14 00:07:55 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Feb 14 00:07:55 2022
Terminated at Mon Feb 14 00:23:08 2022
Results reported at Mon Feb 14 00:23:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1647 204.976 -1.6378 666230401 666489601 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 :                                   632.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             249.65 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   913 sec.
    Turnaround time :                            915 sec.

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

