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


Performing analysis on: 4FGL_J1339.0-2400_daily_bin1138
RA = 204.756, Dec = -24.0085
tmin = 534297601, tmax = 534556801
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='856616', job_status='RUN', time_executed='2021-09-08 07:36:23.999667', time_epoch_executed='1631111784.0' WHERE source_name='4FGL J1339.0-2400' and cadence='daily' and bin_id='1138'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856616/ft1_4FGL_J1339.0-2400_daily_bin1138.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856616/ft1_4FGL_J1339.0-2400_daily_bin1138.fits outfile=/scratch/kocevski/856616/ft1_filteredMKT_4FGL_J1339.0-2400_daily_bin1138.fits ra=204.756 dec=-24.0085 rad=12.0 tmin=534297601.0 tmax=534556801.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.54
user 3.30
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits" evtable="EVENTS" scfile=/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits sctable="SC_DATA" outfile=/scratch/kocevski/856616/ltcube_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.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/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits
.....................!
real 15.32
user 14.90
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits sctable="SC_DATA" expcube=/scratch/kocevski/856616/ltcube_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits outfile=/scratch/kocevski/856616/expmap_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.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/856616/ltcube_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits
.....................!
real 191.72
user 186.06
sys 5.10

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
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 192 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1339.0-2400 @ 204.756 -24.0085

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits scfile=/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits outfile=/scratch/kocevski/856616/cmap_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.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.756 yref=-24.0085 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits scfile=/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits outfile=/scratch/kocevski/856616/cmap_HighResolution_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.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.756 yref=-24.0085 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits evtable="EVENTS" scfile=/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856616/Model_4FGL_J1339.0-2400_daily_bin1138.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits.....................!
real 116.43
user 114.86
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits', '/scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits', expMap='/scratch/kocevski/856616/expmap_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits', expCube='/scratch/kocevski/856616/ltcube_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856616/Model_4FGL_J1339.0-2400_daily_bin1138.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1339.0-2400'

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  8.627e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856616/ft1_filtered_4FGL_J1339.0-2400_daily_bin1138.fits
Spacecraft file(s): /scratch/kocevski/856616/ft2_4FGL_J1339.0-2400_daily_bin1138.fits
Exposure map: /scratch/kocevski/856616/expmap_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits
Exposure cube: /scratch/kocevski/856616/ltcube_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856616/Model_4FGL_J1339.0-2400_daily_bin1138.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) = 7216.11593817

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5397       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    5.3165       1.0000         .10000E-03   10000.    
     4 'norm      '    .10074E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.704       1.0000         .10000E-03   10000.    
     6 'norm      '    2.5024       1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    10.124       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.1176       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.0978       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    21.966       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0533       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.0186       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7216.106     FROM MIGRAD    STATUS=CONVERGED    574 CALLS     2934 TOTAL
                     EDM=   .48E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5398        2.0366       -.17422E-07   -.97465E-04
   2  Prefactor     .10000E-03    65.306        .24771E-04** at limit **
   3  norm          5.3167        7.5960       -.22588E-06   -.11466E-03
   4  norm          .10000E-03    3.1767       -.18400E-07** at limit **
   5  Prefactor     10.702        6.6272        .30592E-06   -.16845E-03
   6  norm          2.5026        2.6251       -.64983E-07   -.22238E-03
   7  norm          .10000E-03    5.2256        .56911E-07** at limit **
   8  Prefactor     .10000E-03    26.667        .34249E-04** at limit **
   9  norm          10.123        4.5542       -.65708E-06   -.19765E-02
  10  norm          .10000E-03    2.3189        .24999E-07** at limit **
  11  Prefactor     8.1198        11.365       -.48805E-06   -.91067E-04
  12  Prefactor     2.4190        99.019        .10943E-04   -.20564E-04
  13  Prefactor     .10000E-03    15.419       -.38018E-05** at limit **
  14  Prefactor     .10000E-03    12.311        .11559E-05** at limit **
  15  norm          .10000E-03    2.0566        .36959E-07** at limit **
  16  Prefactor     .10000E-03    117.59       -.60091E-05** at limit **
  17  norm          .10000E-03    7.5150       -.63994E-07** at limit **
  18  Prefactor     .10000E-03    31.717       -.46974E-04** at limit **
  19  norm          3.0997        9.2132       -.77554E-06   -.16522E-03
  20  Prefactor     .10000E-03    2.5760       -.17554E-07** at limit **
  21  Prefactor     .10000E-03    128.02       -.46590E-04** at limit **
  22  Prefactor     .10000E-03    64.510        .21321E-04** at limit **
  23  Prefactor     21.961        27.091       -.60463E-06   -.29922E-04
  24  Normalizat    1.0533        .25755       -.59370E-06   -.69976E-04
  25  Prefactor     1.0186        .11188        .88385E-07   -.79193E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.5398
  Prefactor  = 0.0001
  norm       = 5.31672
  norm       = 0.0001
  Prefactor  = 10.7024
  norm       = 2.5026
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 10.1228
  norm       = 0.0001
  Prefactor  = 8.1198
  Prefactor  = 2.41902
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.09973
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.961
  Normalizat = 1.0533
  Prefactor  = 1.0186
 **********
 **   18 **HESSE 
 **********

 FCN=   7216.106     FROM HESSE     STATUS=OK           419 CALLS     3353 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5398        2.0359        .71082E-04   -1.5237    
   2  Prefactor     .10000E-03    65.387        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          5.3167        7.5896        .17431E-03   -1.5247    
   4  norm          .10000E-03    3.1948        .14764E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     10.702        6.6143        .12246E-03   -1.5054    
   6  norm          2.5026        2.6232        .13630E-03   -1.5392    
   7  norm          .10000E-03    5.2803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    26.892        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          10.123        4.5593        .11775E-03   -1.5072    
  10  norm          .10000E-03    2.3224        .12625E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.1198        11.346        .14072E-03   -1.5138    
  12  Prefactor     2.4190        98.327        .26387E-03   -1.5397    
  13  Prefactor     .10000E-03    15.587        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.0695        .11894E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    118.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    7.5160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    31.642        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.0997        9.1925        .23041E-03   -1.5356    
  20  Prefactor     .10000E-03    2.6058        .13296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    128.34        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    64.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     21.961        27.108        .85463E-04   -1.4770    
  24  Normalizat    1.0533        .30359        .38912E-03   -.91266    
  25  Prefactor     1.0186        .13313        .17391E-03   -.92112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.49744e-10
Minuit parameter uncertainties:
  1  2.03594
  2  5.32646e-05
  3  7.59097
  4  6.34586e-06
  5  6.61474
  6  2.62329
  7  2.07503e-06
  8  2.69223e-05
  9  4.55941
  10  2.76888e-06
  11  11.3489
  12  30.899
  13  6.51511e-05
  14  2.95934e-05
  15  2.42907e-06
  16  6.3838e-05
  17  7.75639e-07
  18  4.7369e-05
  19  9.19665
  20  5.63567e-08
  21  0.000254772
  22  1.56252e-05
  23  27.1229
  24  0.304087
  25  0.133176
Done.

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

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  2.419e+00  3.090e+01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  2.302e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  1.019e+00  1.332e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  1.053e+00  3.041e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.01
Ra Dec: 204.756 -24.009
Photon Flux Upper Limit: 1.29e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.90e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/856616/likelihoodResults_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.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) = 7214.04757016
delta logL = 2.0587597573

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7213.96262925
delta logL = 2.14370067077

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .52589E-01   1.0000         .10000E-03   10000.    
     2 'Index     '    6.0867       1.0000          .0000       10.000    
     3 'Normalizat'    .83267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0816       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6360E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7213.963     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      264 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .51852E-01    .40617        .23569E-02    .42223E-02
   2  Index         6.0935        2.1622        .96134E-01    .21514E-03
   3  Normalizat    .83322        .73714E-01    .97538E-01    .33631E-04
   4  Prefactor     1.0813        .32489E-01    .38334E-01   -.14268E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.051852
  Index      = 6.09355
  Normalizat = 0.833219
  Prefactor  = 1.08131
 **********
 **   18 **HESSE 
 **********

 FCN=   7213.963     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      297 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .51852E-01    .81458        .10622E-04   -1.5662    
   2  Index         6.0935        3.2933        .38252E-02    .22049    
   3  Normalizat    .83322        .27129        .43218E-03   -.98848    
   4  Prefactor     1.0813        .11719        .16924E-03   -.90066    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.53038e-10
Minuit parameter uncertainties:
  1  0.410645
  2  3.61514
  3  0.271733
  4  0.117222
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856616': 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): 102
logL (Free Index) = 7213.96262135
delta logL = 2.14370857306

Extracting fit parameters...

4FGL J1339.0-2400
   Spectrum: PowerLaw
309    Prefactor:  5.185e-02  4.106e-01  1.000e-04  1.000e+04 ( 1.000e-13)
310        Index:  6.094e+00  3.615e+00  0.000e+00  1.000e+01 (-1.000e+00)
311        Scale:  1.047e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
633    Prefactor:  1.081e+00  1.172e-01  0.000e+00  1.000e+01 ( 1.000e+00)
634        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
635        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
632   Normalization:  8.332e-01  2.717e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.78
Ra Dec: 204.756 -24.009
Photon Index (Free Index): 6.09 +/- 3.62
Photon Flux (Free Index): 1.69e-07 +/- 9.66e-08
Energy Flux (Free Index): 2.10e-05 +/- 1.32e-05

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/856616/cmap_HighResolution_534297601_534556801_4FGL_J1339.0-2400_daily_bin1138.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.90e-03', comment='SUCCESS', energy_flux2='2.10e-05', dlogl='2.14e+00', photon_flux2='1.69e-07', job_status='DONE', time_completed='2021-09-08 07:51:03.456551', photon_index_error2='3.62', photon_index2='6.09', ts='0.01', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='1.29e-07', energy_flux_error2='1.32e-05', EG='1.05', time_epoch_completed='1631112663.46', return_code='0', job_id='856616', GAL2='1.08', EG2='0.83', return_code2='102', photon_flux_error2='9.66e-08', ts2='4.78', photon_index='2.30' WHERE bin_id='1138' AND source_name='4FGL J1339.0-2400' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 07:51:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 856616: <4FGL_J1339.0-2400_daily_bin1138> in cluster <slac> Done

Job <4FGL_J1339.0-2400_daily_bin1138> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep  8 07:35:18 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 07:35:33 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 07:35:33 2021
Terminated at Wed Sep  8 07:51:03 2021
Results reported at Wed Sep  8 07:51:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1339.0-2400_daily_bin1138 204.756 -24.0085 534297601 534556801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1339.0-2400 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   875.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             379.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            945 sec.

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

