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


Performing analysis on: 4FGL_J1339.9-0138_daily_bin1243
RA = 204.976, Dec = -1.6378
tmin = 561513601, tmax = 561772801
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='876240', job_status='RUN', time_executed='2021-09-08 08:38:50.143685', time_epoch_executed='1631115530.14' WHERE source_name='4FGL J1339.9-0138' and cadence='daily' and bin_id='1243'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/876240

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/876240/ft1_4FGL_J1339.9-0138_daily_bin1243.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/876240/ft1_4FGL_J1339.9-0138_daily_bin1243.fits outfile=/scratch/kocevski/876240/ft1_filteredMKT_4FGL_J1339.9-0138_daily_bin1243.fits ra=204.976 dec=-1.6378 rad=12.0 tmin=561513601.0 tmax=561772801.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.82
user 3.58
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits" evtable="EVENTS" scfile=/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits sctable="SC_DATA" outfile=/scratch/kocevski/876240/ltcube_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.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/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits
.....................!
real 16.48
user 15.91
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits sctable="SC_DATA" expcube=/scratch/kocevski/876240/ltcube_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits outfile=/scratch/kocevski/876240/expmap_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.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/876240/ltcube_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits
.....................!
real 195.83
user 189.11
sys 4.56

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/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits scfile=/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits outfile=/scratch/kocevski/876240/cmap_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.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.55
user 0.39
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits scfile=/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits outfile=/scratch/kocevski/876240/cmap_HighResolution_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits evtable="EVENTS" scfile=/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/876240/Model_4FGL_J1339.9-0138_daily_bin1243.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/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits.....................!
real 22.87
user 21.41
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits', '/scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits', expMap='/scratch/kocevski/876240/expmap_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits', expCube='/scratch/kocevski/876240/ltcube_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/876240/Model_4FGL_J1339.9-0138_daily_bin1243.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/876240/ft1_filtered_4FGL_J1339.9-0138_daily_bin1243.fits
Spacecraft file(s): /scratch/kocevski/876240/ft2_4FGL_J1339.9-0138_daily_bin1243.fits
Exposure map: /scratch/kocevski/876240/expmap_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits
Exposure cube: /scratch/kocevski/876240/ltcube_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/876240/Model_4FGL_J1339.9-0138_daily_bin1243.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1291.5638354

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1289.0445999

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8713       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .31970       1.0000         .10000E-03   10000.    
     3 'norm      '    .42992E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    .58960E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .50022E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.6519       1.0000         .10000E-03   10000.    
     7 'Prefactor '    53.581       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33469E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    17.846       1.0000         .10000E-03   10000.    
    11 'norm      '    .83193       1.0000         .10000E-03   10000.    
    12 'norm      '    2.4225       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.5766       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10300       1.0000         .10000E-03   10000.    
    16 'norm      '    .10106E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .12004E-01   1.0000         .10000E-03   10000.    
    18 'norm      '    5.9504       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .42225E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .22594E-01   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .10981       1.0000         .10000E-01   10.000    
    22 'Prefactor '    2.1386       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   1289.042     FROM MIGRAD    STATUS=CONVERGED    158 CALLS      447 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8729        2.0673        .72563E-06   -.18591E-03
   2  Prefactor     .10000E-03    277.75       -.29385E-04** at limit **
   3  norm          .10000E-03    37.399       -.44651E-05** at limit **
   4  norm          .10000E-03    4.4344       -.57562E-04** at limit **
   5  Prefactor     .10022E-03    70.055       -.79114E-04** at limit **
   6  Prefactor     1.6519        1.0553         .0000         .0000    
   7  Prefactor     53.860        45.828       -.71300E-05   -.31104E-03
   8  Prefactor     .10000E-03    61.054       -.43925E-04** at limit **
   9  norm          .10000E-03    4.1108        .71447E-05** at limit **
  10  norm          17.729        9.9603        .78287E-05   -.18252E-02
  11  norm          1.1919        36.382       -.39307E-04    .37295E-03
  12  norm          2.5864        9.5751        .21131E-04    .76513E-04
  13  Prefactor     .10036E-03    6992.5       -.49263E-03** at limit **
  14  Prefactor     .10000E-03    3.8520       -.16807E-05** at limit **
  15  Prefactor     .10000E-03    142.68        .35685E-05** at limit **
  16  norm          .10000E-03    6.1500        .13202E-05** at limit **
  17  Prefactor     .10001E-03    50.165        .17086E-03** at limit **
  18  norm          5.9548        6.0856        .17774E-05   -.17443E-03
  19  Prefactor     .10008E-03    68.540        .56938E-04** at limit **
  20  norm          .10002E-03    49.677       -.12683E-03** at limit **
  21  Normalizat    .11170        1.8523       -.24365E-03   -.30926E-04
  22  Prefactor     2.1359        .58505        .29023E-04   -.12080E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.8729
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100218
  Prefactor  = 1.65186
  Prefactor  = 53.8598
  Prefactor  = 0.000100001
  norm       = 0.0001
  norm       = 17.7291
  norm       = 1.19186
  norm       = 2.58638
  Prefactor  = 0.000100365
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 5.95484
  Prefactor  = 0.00010008
  norm       = 0.000100023
  Normalizat = 0.111701
  Prefactor  = 2.13592
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1289.042     FROM HESSE     STATUS=FAILED        29 CALLS      476 TOTAL
                     EDM=   .22E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8729        2.0239        .45563E-02   -1.5266    
   2  Prefactor     .10000E-03    277.82        .10511E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    37.395        .92358E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    71.247        .10537E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10022E-03    80.762        .92702E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     574.98        573.16         .0000       -1.5451    
   7  Prefactor     53.860        1.0026       -.71300E-05   -1.4239    
   8  Prefactor     .10000E-03    .28470       -.43925E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .20571        .71447E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          17.729        .99710        .78287E-05   -1.4866    
  11  norm          1.1919        1.3709       -.39307E-04   -1.5490    
  12  norm          2.5864        1.0571        .21131E-04   -1.5386    
  13  Prefactor     .10036E-03    .17890       -.49263E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .20571       -.16807E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .22684        .35685E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .20571        .13202E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10001E-03    .20625        .17086E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.9548        1.0039        .17774E-05   -1.5220    
  19  Prefactor     .10008E-03    .21308        .56938E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10002E-03    .20864       -.12683E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .11170        .33181       -.24365E-03   -1.3687    
  22  Prefactor     2.1359        1.0159        .29023E-04   -.60994    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 2.18749e-10
Minuit parameter uncertainties:
  1  2.02392
  2  0.00135927
  3  0.000239829
  4  0.000210174
  5  0.00840456
  6  1.05529
  7  1.00263
  8  3.1714e-05
  9  9.24965e-06
  10  0.997105
  11  1.37089
  12  1.05711
  13  0.000510739
  14  1.94863e-06
  15  3.2852e-05
  16  1.87191e-06
  17  0.000103945
  18  1.00395
  19  0.000261909
  20  0.000137664
  21  0.338186
  22  1.02656
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1289.04185761

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  2.586e+00  1.057e+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

GAL_V02
   Spectrum: PowerLaw
533    Prefactor:  2.136e+00  1.027e+00  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.117e-01  3.382e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 204.976 -1.638
Photon Flux Upper Limit: 2.38e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.94e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/876240/likelihoodResults_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.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) = 1289.04102955
delta logL = 0.00082806824139

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1289.03908804
delta logL = 0.002769571204

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.616       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6748       1.0000          .0000       5.0000    
     3 'Normalizat'    .11832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    2.1291       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=   1289.039     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      284 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.575        659.20        .10855E-03    .11992E-04
   2  alpha         1.6701        2.9424        .64887E-01   -.11707E-05
   3  Normalizat    .11835        1.9921        .12578E-01    .11493E-04
   4  Prefactor     2.1294        .62733        .24092E-03    .45561E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 13.5746
  alpha      = 1.67012
  Normalizat = 0.118346
  Prefactor  = 2.12936
 **********
 **   18 **HESSE 
 **********

 FCN=   1289.039     FROM HESSE     STATUS=OK            27 CALLS      311 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.575        599.78        .21710E-04   -1.4971    
   2  alpha         1.6701        3.0215        .25955E-02   -.33837    
   3  Normalizat    .11835        1.7013        .50314E-03   -1.3621    
   4  Prefactor     2.1294        .57635        .48184E-04   -.61154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89166e-11
Minuit parameter uncertainties:
  1  182.447
  2  4.61363
  3  0.890653
  4  0.578273
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/876240': 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) = 1289.03908716
delta logL = 0.00277045357166

Extracting fit parameters...

4FGL J1339.9-0138
   Spectrum: LogParabola
279         norm:  1.357e+01  1.824e+02  1.000e-04  1.000e+04 ( 1.000e-13)
280        alpha:  1.670e+00  4.614e+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:  2.129e+00  5.783e-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.183e-01  8.907e-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/876240/cmap_HighResolution_561513601_561772801_4FGL_J1339.9-0138_daily_bin1243.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.94e-04', job_status='DONE', photon_flux_upper_limit='2.38e-07', time_completed='2021-09-08 08:45:44.714059', job_id='876240', GAL2='2.13', fit_tolerance='1e-08', EG2='0.12', EG='0.11', time_epoch_completed='1631115944.71', return_code2='0', ts='0.00', comment='SUCCESS', return_code='101', GAL='2.14', dlogl='2.77e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.12' WHERE bin_id='1243' AND source_name='4FGL J1339.9-0138' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 08:45:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0090>
Subject: Job 876240: <4FGL_J1339.9-0138_daily_bin1243> in cluster <slac> Done

Job <4FGL_J1339.9-0138_daily_bin1243> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 08:36:00 2021
Job was executed on host(s) <bullet0090>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 08:36:28 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:36:28 2021
Terminated at Wed Sep  8 08:45:45 2021
Results reported at Wed Sep  8 08:45:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.9-0138_daily_bin1243 204.976 -1.6378 561513601 561772801 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 :                                   346.13 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             348.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   557 sec.
    Turnaround time :                            585 sec.

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

