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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin673
RA = 204.976, Dec = -1.6378
tmin = 413769601, tmax = 414028801
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='874247', job_status='RUN', time_executed='2021-09-08 08:34:28.589614', time_epoch_executed='1631115268.59' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='673'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/874247

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/874247/ft1_4FGL_J1339.9-0138_daily_bin673.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/874247/ft1_4FGL_J1339.9-0138_daily_bin673.fits outfile=/scratch/kocevski/874247/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin673.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=413769601.0 tmax=414028801.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.31
user 6.00
sys 0.27

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits" evtable="EVENTS" scfile=/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits sctable="SC_DATA" outfile=/scratch/kocevski/874247/ltcube_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.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/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits
.....................!
real 16.45
user 16.05
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits sctable="SC_DATA" expcube=/scratch/kocevski/874247/ltcube_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.fits outfile=/scratch/kocevski/874247/expmap_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.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/874247/ltcube_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.fits
.....................!
real 192.12
user 187.09
sys 4.00

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/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits scfile=/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits outfile=/scratch/kocevski/874247/cmap_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.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.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits scfile=/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits outfile=/scratch/kocevski/874247/cmap_HighResolution_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.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.59
user 0.40
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits evtable="EVENTS" scfile=/scratch/kocevski/874247/ft2_4FGL_J1339.9-0138_daily_bin673.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/874247/Model_4FGL_J1339.9-0138_daily_bin673.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/874247/ft1_filtered_4FGL_J1339.9-0138_daily_bin673.fits.....................!
real 57.99
user 56.08
sys 1.34

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5336       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.7209       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10518E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.9395       1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.282       1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9887       1.0000         .10000E-03   10000.    
     9 'norm      '    3.4761       1.0000         .10000E-03   10000.    
    10 'norm      '    .21662E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.1155       1.0000         .10000E-03   10000.    
    12 'norm      '    .10359E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10856E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .56994       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    19.779       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2908       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.8591       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2715       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0332       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=   7245.892     FROM MIGRAD    STATUS=CONVERGED    497 CALLS     2418 TOTAL
                     EDM=   .25E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5336        .51447       -.14747E-07    .51221E-04
   2  Prefactor     .10000E-03    27.326        .48122E-06** at limit **
   3  norm          1.7237        19.451        .38612E-05    .14374E-03
   4  norm          .10000E-03    3.3435        .13303E-07** at limit **
   5  Prefactor     .10000E-03    19.189       -.19641E-06** at limit **
   6  Prefactor     9.9390        15.163       -.53136E-07    .14991E-04
   7  Prefactor     12.279        10.794        .36135E-06   -.61287E-04
   8  Prefactor     6.0378        45.364       -.66775E-06   -.90219E-04
   9  norm          3.4761        1.7282       -.18850E-07    .50037E-04
  10  norm          .10000E-03    3.0621        .31169E-06** at limit **
  11  norm          3.1232        7.9798        .23799E-05   -.81625E-04
  12  norm          .10000E-03    56.900       -.86810E-06** at limit **
  13  Prefactor     .10000E-03    2.6013       -.14003E-06** at limit **
  14  Prefactor     .57248        2.9776       -.91787E-06    .17579E-03
  15  Prefactor     .10000E-03    8.9392        .60635E-07** at limit **
  16  norm          .10000E-03    8.5680       -.21308E-06** at limit **
  17  Prefactor     19.787        15.727       -.28993E-07    .24303E-04
  18  norm          3.2907        2.2023        .10982E-07    .64063E-04
  19  Prefactor     .10000E-03    8.9913        .95790E-07** at limit **
  20  norm          4.8592        5.8842       -.30935E-08   -.14940E-05
  21  Normalizat    1.2715        .23558        .53267E-07    .33676E-05
  22  Prefactor     1.0332        .15233        .80532E-07    .12872E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.5336
  Prefactor  = 0.0001
  norm       = 1.72371
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.93895
  Prefactor  = 12.2787
  Prefactor  = 6.03781
  norm       = 3.47612
  norm       = 0.000100005
  norm       = 3.12323
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.57248
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.7867
  norm       = 3.29067
  Prefactor  = 0.0001
  norm       = 4.8592
  Normalizat = 1.27151
  Prefactor  = 1.03323
 **********
 **   18 **HESSE 
 **********

 FCN=   7245.892     FROM HESSE     STATUS=OK           352 CALLS     2770 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5336        .51573        .26487E-04   -1.5390    
   2  Prefactor     .10000E-03    27.310        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.7237        22.202        .16011E-02   -1.5445    
   4  norm          .10000E-03    3.3444        .15201E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.352        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.9390        15.176        .12710E-03   -1.5077    
   7  Prefactor     12.279        10.791        .11430E-03   -1.5007    
   8  Prefactor     6.0378        49.015        .16408E-03   -1.5216    
   9  norm          3.4761        1.7270        .75029E-04   -1.5335    
  10  norm          .10000E-03    6.5295        .22848E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.1232        7.9725        .22972E-03   -1.5354    
  12  norm          .10000E-03    57.338        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    6.1236        .26478E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57248        12.236        .25257E-02   -1.5557    
  15  Prefactor     .10000E-03    8.9452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    8.6991        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     19.787        15.786        .90059E-04   -1.4818    
  18  norm          3.2907        2.1991        .98977E-04   -1.5345    
  19  Prefactor     .10000E-03    9.0054        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.8592        5.8833        .18249E-03   -1.5267    
  21  Normalizat    1.2715        .28021        .31284E-03   -.84421    
  22  Prefactor     1.0332        .18240        .23175E-03   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3919e-09
Minuit parameter uncertainties:
  1  0.51573
  2  6.11217e-05
  3  12.3777
  4  2.2238e-06
  5  7.07031e-07
  6  15.1819
  7  10.7924
  8  34.4442
  9  1.72704
  10  0.000343045
  11  7.97523
  12  0.000143501
  13  1.68293e-05
  14  5.29412
  15  9.1649e-06
  16  8.78242e-06
  17  15.7894
  18  2.19912
  19  1.30531e-05
  20  5.88396
  21  0.280542
  22  0.18251
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  1.435e-04  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.033e+00  1.825e-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.272e+00  2.805e-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.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/874247/likelihoodResults_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.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) = 7245.89256275
delta logL = -8.30050084915e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7245.89256275
delta logL = -8.30004219097e-05

Fit tolerance = 1e-08

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

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

 FCN=   7245.892     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      188 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    64.650        .90713E-02** at limit **
   2  alpha         2.1706        3.4765        .41776       -.46023E-05
   3  Normalizat    1.2715        .22101        .70703E-01    .21207E-03
   4  Prefactor     1.0332        .15028        .41011E-01   -.20616E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100017
  alpha      = 2.17061
  Normalizat = 1.27152
  Prefactor  = 1.03323
 **********
 **   18 **HESSE 
 **********

 FCN=   7245.892     FROM HESSE     STATUS=OK            27 CALLS      215 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    63.036        .18143E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.1706        3.4673        .16711       -.13214    
   3  Normalizat    1.2715        .26305        .31284E-03   -.84421    
   4  Prefactor     1.0332        .17906        .23174E-03   -.91630    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03112e-09
Minuit parameter uncertainties:
  1  0.00204803
  2  2.47972
  3  0.263326
  4  0.179168
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/874247': 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) = 7245.89247965
delta logL = 9.73777787294e-08

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.000e-04  2.048e-03  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  2.171e+00  2.480e+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.033e+00  1.792e-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.272e+00  2.633e-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/874247/cmap_HighResolution_413769601_414028801_4FGL_J1339.9-0138_daily_bin673.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.93e-05', job_status='DONE', photon_flux_upper_limit='3.60e-08', time_completed='2021-09-08 08:45:43.682724', job_id='874247', GAL2='1.03', fit_tolerance='1e-08', EG2='1.27', EG='1.27', time_epoch_completed='1631115943.68', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='9.74e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='673' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:45:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 874247: <4FGL_J1339.9-0138_daily_bin673> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin673> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep  8 08:30:30 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:30:48 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:30:48 2021
Terminated at Wed Sep  8 08:45:44 2021
Results reported at Wed Sep  8 08:45:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin673 204.976 -1.6378 413769601 414028801 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 :                                   671.42 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             272.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            914 sec.

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

