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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1559
RA = 204.976, Dec = -1.6378
tmin = 643420801, tmax = 643680001
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='877964', job_status='RUN', time_executed='2021-09-08 08:44:19.648219', time_epoch_executed='1631115859.65' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1559'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/877964

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/877964/ft1_4FGL_J1339.9-0138_daily_bin1559.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/877964/ft1_4FGL_J1339.9-0138_daily_bin1559.fits outfile=/scratch/kocevski/877964/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1559.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=643420801.0 tmax=643680001.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.49
user 3.27
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.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/877964/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1559.fits evtable="EVENTS" outfile="/scratch/kocevski/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.56
user 0.35
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits" evtable="EVENTS" scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits sctable="SC_DATA" outfile=/scratch/kocevski/877964/ltcube_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.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/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits
.....................!
real 16.75
user 16.37
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits sctable="SC_DATA" expcube=/scratch/kocevski/877964/ltcube_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.fits outfile=/scratch/kocevski/877964/expmap_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.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/877964/ltcube_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.fits
.....................!
real 191.53
user 187.16
sys 3.88

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/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits outfile=/scratch/kocevski/877964/cmap_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.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/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits outfile=/scratch/kocevski/877964/cmap_HighResolution_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.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.41
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits evtable="EVENTS" scfile=/scratch/kocevski/877964/ft2_4FGL_J1339.9-0138_daily_bin1559.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/877964/Model_4FGL_J1339.9-0138_daily_bin1559.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/877964/ft1_filtered_4FGL_J1339.9-0138_daily_bin1559.fits.....................!
real 51.77
user 50.31
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.1346       1.0000         .10000E-03   10000.    
     2 'Prefactor '    70.269       1.0000         .10000E-03   10000.    
     3 'norm      '    52.632       1.0000         .10000E-03   10000.    
     4 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    23.532       1.0000         .10000E-03   10000.    
     6 'Prefactor '    5.6996       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10291E-02   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    5.3930       1.0000         .10000E-03   10000.    
    10 'norm      '    1.0750       1.0000         .10000E-03   10000.    
    11 'norm      '    27.509       1.0000         .10000E-03   10000.    
    12 'norm      '    52.165       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    9.2336       1.0000         .10000E-03   10000.    
    16 'norm      '    2.7705       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.3645       1.0000         .10000E-03   10000.    
    18 'norm      '    8.8702       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.1181       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0313       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=   6325.519     FROM MIGRAD    STATUS=CONVERGED    461 CALLS     2364 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.1346        .63232        .49559E-02    .24218E-03
   2  Prefactor     70.269        71.698        .11972E-02   -.28709E-03
   3  norm          52.631        20.373        .13821E-02    .63016E-03
   4  norm          .10007E-03    33.486        .90712E-02** at limit **
   5  Prefactor     23.533        22.648        .20644E-02   -.96999E-03
   6  Prefactor     5.7000        8.5747        .42063E-02    .17572E-02
   7  Prefactor     .10116E-03    6.9397        .76617E-01** at limit **
   8  Prefactor     .10000E-03    13.254        .90712E-02** at limit **
   9  norm          5.3929        2.2714        .43261E-02    .16571E-03
  10  norm          1.0756        4.8234        .11668E-01    .11871E-02
  11  norm          27.510        11.941        .19096E-02    .15610E-03
  12  norm          52.165        43.174        .13882E-02    .25745E-03
  13  Prefactor     .10000E-03    1.4549        .90712E-02** at limit **
  14  Prefactor     .10000E-03    4.0378        .90712E-02** at limit **
  15  Prefactor     9.2346        18.695        .32973E-02   -.22892E-03
  16  norm          2.7700        8.1313        .61127E-02    .36606E-03
  17  Prefactor     5.3660        9.9413        .43378E-02    .27323E-03
  18  norm          8.8706        4.3524        .33645E-02    .76222E-03
  19  Prefactor     .10000E-03    10.685        .90712E-02** at limit **
  20  norm          .10000E-03    5.4036        .90712E-02** at limit **
  21  Normalizat    1.1179        .25042        .75483E-01    .26408E-05
  22  Prefactor     1.0314        .17187        .41161E-01    .11955E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 4.13464
  Prefactor  = 70.2689
  norm       = 52.6311
  norm       = 0.000100074
  Prefactor  = 23.5329
  Prefactor  = 5.69996
  Prefactor  = 0.000101164
  Prefactor  = 0.000100003
  norm       = 5.39289
  norm       = 1.0756
  norm       = 27.5098
  norm       = 52.1654
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.23462
  norm       = 2.76999
  Prefactor  = 5.36604
  norm       = 8.87055
  Prefactor  = 0.000100001
  norm       = 0.0001
  Normalizat = 1.11786
  Prefactor  = 1.03136
 **********
 **   18 **HESSE 
 **********

 FCN=   6325.519     FROM HESSE     STATUS=OK           342 CALLS     2706 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.1346        .63401        .23505E-04   -1.5301    
   2  Prefactor     70.269        71.775        .47887E-04   -1.4029    
   3  norm          52.631        20.369        .55284E-04   -1.4256    
   4  norm          .10007E-03    34.638        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     23.533        22.710        .82574E-04   -1.4737    
   6  Prefactor     5.7000        8.5688        .84125E-03   -1.5230    
   7  Prefactor     .10116E-03    37.140        .40219E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    13.258        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          5.3929        2.2688        .73363E-04   -1.5243    
  10  norm          1.0756        4.5594        .30192E-03   -1.5501    
  11  norm          27.510        11.599        .76382E-04   -1.4658    
  12  norm          52.165        43.204        .55530E-04   -1.4262    
  13  Prefactor     .10000E-03    1.4660        .93651E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    4.0919        .15567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     9.2346        18.683        .13189E-03   -1.5100    
  16  norm          2.7700        8.0974        .24451E-03   -1.5375    
  17  Prefactor     5.3660        9.9233        .17351E-03   -1.5245    
  18  norm          8.8706        4.3504        .10960E-03   -1.5112    
  19  Prefactor     .10000E-03    10.711        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.4087        .18056E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    1.1179        .29527        .33407E-03   -.89181    
  22  Prefactor     1.0314        .20278        .24420E-03   -.91691    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.66269e-08
Minuit parameter uncertainties:
  1  0.634013
  2  71.864
  3  20.3715
  4  0.00319561
  5  22.7185
  6  8.57065
  7  0.0131572
  8  0.000364504
  9  2.2688
  10  4.4294
  11  11.6002
  12  43.2297
  13  2.7107e-06
  14  7.28944e-06
  15  18.6952
  16  8.10058
  17  9.92637
  18  4.35056
  19  0.000148666
  20  1.84047e-05
  21  0.295712
  22  0.202926
Done.

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

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  5.217e+01  4.323e+01  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.031e+00  2.029e-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.118e+00  2.957e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.77
Ra Dec: 204.976 -1.638
Photon Index (Fixed Index): 2.12 +/- 0.00
Photon Flux (Fixed Index): 2.18e-08 +/- 1.81e-08
Energy Flux (Fixed Index): 1.77e-05 +/- 1.47e-05

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

Saving results to:
/scratch/kocevski/877964/likelihoodResults_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.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) = 6324.72026243
delta logL = 0.798251724846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6324.71903196
delta logL = 0.799482194993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    33.631       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.2525       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0997       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0300       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=   6324.719     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      295 TOTAL
                     EDM=   .68E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          33.654        35.488        .69099E-04    .15314E-03
   2  alpha         3.2536        .86238        .15520E-01    .12935E-04
   3  Normalizat    1.0999        .28193        .33610E-03   -.13263E-03
   4  Prefactor     1.0297        .19982        .24404E-03    .22121E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 33.6544
  alpha      = 3.25355
  Normalizat = 1.09992
  Prefactor  = 1.02965
 **********
 **   18 **HESSE 
 **********

 FCN=   6324.719     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          33.654        33.094        .13820E-04   -1.4547    
   2  alpha         3.2536        .80631        .62082E-03    .30618    
   3  Normalizat    1.0999        .28193        .13444E-04   -.89755    
   4  Prefactor     1.0297        .19991        .48809E-04   -.91748    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.91681e-10
Minuit parameter uncertainties:
  1  33.1119
  2  0.822539
  3  0.282312
  4  0.200057
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/877964': 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) = 6324.71902692
delta logL = 0.799487234571

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  3.365e+01  3.311e+01  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  3.254e+00  8.225e-01  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.030e+00  2.001e-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.100e+00  2.823e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.35
Ra Dec: 204.976 -1.638
Photon Index (Free Index): 3.25 +/- 0.82
Photon Flux (Free Index): 4.98e-08 +/- 3.92e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.30e-05

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/877964/cmap_HighResolution_643420801_643680001_4FGL_J1339.9-0138_daily_bin1559.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.42e-05', comment='SUCCESS', photon_flux='2.18e-08', energy_flux2='1.97e-05', photon_flux_error='1.81e-08', dlogl='7.99e-01', energy_flux='1.77e-05', photon_flux2='4.98e-08', job_status='DONE', time_completed='2021-09-08 08:54:56.181693', photon_index_error2='0.82', photon_index2='3.25', ts='2.77', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='6.65e-08', energy_flux_error2='1.30e-05', EG='1.12', time_epoch_completed='1631116496.18', return_code='0', job_id='877964', GAL2='1.03', EG2='1.10', return_code2='0', energy_flux_error='1.47e-05', photon_flux_error2='3.92e-08', ts2='4.35', photon_index='2.12' WHERE bin_id='1559' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:54:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0187>
Subject: Job 877964: <4FGL_J1339.9-0138_daily_bin1559> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1559> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Wed Sep  8 08:40:50 2021
Job was executed on host(s) <bullet0187>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:44:03 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:44:03 2021
Terminated at Wed Sep  8 08:54:56 2021
Results reported at Wed Sep  8 08:54:56 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1559 204.976 -1.6378 643420801 643680001 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 :                                   628.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             288.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   653 sec.
    Turnaround time :                            846 sec.

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

